This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mapLimit, auto, constant } from 'async' | |
import request from 'request' | |
import analyzer from './analyze' | |
import logger from './log' | |
const data = [ | |
'http://example.com/item/0' | |
'http://example.com/item/1' | |
'http://example.com/item/2' | |
'http://example.com/item/3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "The AWS CloudFormation template for this Serverless application", | |
"Resources": { | |
"ServerlessDeploymentBucket": { | |
"Type": "AWS::S3::Bucket" | |
}, | |
"CloudwatchUnderscoretoUnderscoreelasticsearchLogGroup": { | |
"Type": "AWS::Logs::LogGroup", | |
"Properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication4 | |
{ | |
class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component c1 { | |
function receive(message: string) { // handles "receive" messages | |
print(message) | |
} | |
} | |
component c2 { | |
var running: bool | |
function run() { // Handles the "run" message | |
if(!running) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IObject | |
{ | |
string Name { get; } | |
IObject Parent { get; } | |
void Add(string name, IComponent component); | |
void Add(IObject child); | |
void Remove(IObject child); | |
IComponent GetComponent(string name); | |
IEnumerable<IObject> GetChildren(); |