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
# ZSH Theme | |
# Based on gnzh theme | |
# load some modules | |
autoload -U colors zsh/terminfo # Used in the colour alias below | |
colors | |
setopt prompt_subst | |
# make some aliases for the colours: (coud use normal escap.seq's too) | |
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do |
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
{ | |
"action": "pull", | |
"target": "<NODE_NAME>" | |
} |
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
enum org.kevoree.DataType { | |
Byte | |
Short | |
Int | |
Long | |
Float | |
Double | |
Boolean | |
Char | |
String |
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
//KMF_VERSION=4.8.1 | |
//VERSION=6.0.0-SNAPSHOT | |
class org.kevoree.Model { | |
@contained | |
nodes : org.kevoree.Node[0,*] | |
@contained | |
channels : org.kevoree.Channel[0,*] | |
@contained | |
groups : org.kevoree.Group[0,*] |
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
{ | |
"name": "nodered-test", | |
"version": "1.0.0", | |
"description": "Test case for node-red starting execution flow", | |
"main": "test.js", | |
"dependencies": { | |
"expect.js": "^0.3.1", | |
"express": "^3.21.0", | |
"node-red": "^0.10.10" | |
}, |
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 MyType() { | |
// this is the constructor: init shit here | |
this.foo = 'bar'; | |
this.id = 42; | |
} | |
// define MyType prototype (available methods for each instances with this bound to proper context) | |
MyType.prototype = { | |
init: function init() { | |
console.log('init'); |
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
'use strict'; | |
var StateJS = require('state.js'); | |
StateJS.internalTransitionsTriggerCompletion = true; | |
/** | |
* Definition of the new type: TimerJS | |
**/ | |
function TimerJS(name, root, debug) { |
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
'use strict'; | |
function MyType() { | |
this.id = null; | |
} | |
MyType.prototype.handler = function () { | |
console.log('handle ' + this.id); | |
}; |
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 MyType() { | |
this.id = null; | |
} | |
function privateMethod(foo, bar) { | |
console.log('private work on instance: ' + this.id); | |
console.log(foo, bar); | |
} | |
MyType.prototype.publicMethod = function () { |
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
const hello = (msg) => console.log(`Message: ${msg}`); | |
hello('Hello world'); |
OlderNewer