This file contains 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
title: Request a file | |
description: Simple file request | |
Log(console/log) | |
Request(http/request) | |
Parse(json/parse) | |
Path(json/path) | |
'https://raw2.github.com/psichi/chix-platform/master/nodes/http/request.json' -> @url Request() |
This file contains 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
title: IRC Bot | |
description: Runs an IRC Client | |
Bot(irc/bot) | |
Msg(irc/message) | |
Log(console/log) | |
Say(irc/say) | |
# build by index | |
'irc.freenode.net' -> @server Bot() |
This file contains 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
function InstanceOf(obj, type) { | |
if(obj === null) return false; | |
var t = typeof obj; | |
if(t === 'object') { | |
if(obj.constructor.name === type) return true; | |
return InstanceOf(Object.getPrototypeOf(obj), type); | |
} else { | |
return t === type; | |
} | |
} |
This file contains 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
title: Just a Math example | |
description: Simple math example multiplying random things | |
5 -> ^y Multiply(math/multiply) | |
Random(math/random) out -> x Multiply out -> msg Log(console/log) | |
# Start several times | |
'' -> :start Random | |
'' -> :start Random |
This file contains 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
title: Infinity | |
description: Keeps on counting and logging | |
# multiply by 10 | |
10 -> @y Multiply(math/multiply) | |
IsFinite(object/isFinite) | |
# output of multiply goes to Log | |
Multiply out -> msg Log(console/log) |
This file contains 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
title: Object port example | |
description: Demonstrates the use of an object port | |
'author' -> path Has(object/has) | |
'Hello World!' -> [title] in Has | |
'This is a description' -> [body] in Has | |
'Rob Halff' -> [author] in Has | |
Has yes -> msg Log(console/log) | |
Has no -> msg Log(console/log) |
This file contains 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
title: Collect support | |
description: Collects an earlier created group | |
# Create an array | |
'This' -> [0] in Array(array/create) | |
'Is' -> [1] in Array | |
'Just ' -> [2] in Array | |
'A' -> [3] in Array | |
'Test' -> [4] in Array |
This file contains 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
title: Connecting to Github | |
description: Connect to github, read a file and fetch a tree. | |
Login(github/login), GetRepo(github/getRepo), Read(github/read) | |
Password(data/password), Log(console/log) | |
'rhalff' -> username Login | |
'******' -> password Login | |
Login github -> github GetRepo |
This file contains 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
title: Dom Counter | |
description: Simple Dom Counter | |
#'preview' -> id Preview(dom/getElementById) | |
'body' -> selector Preview(dom/querySelector) | |
#-> id Preview(dom/getElementById) | |
10 -> @timeout Wait(util/wait) |
This file contains 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
title: Rest Server | |
description: Begin of restserver | |
Db(mongojs/db) | |
Close(mongojs/close) | |
Insert(mongojs/insert) | |
Log(console/log) | |
# Express | |
Express(express/app), Listen(express/listen) |
OlderNewer