Skip to content

Instantly share code, notes, and snippets.

# 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
@maxleiko
maxleiko / pull.json
Created July 1, 2014 14:02
Kevoree groups protocol
{
"action": "pull",
"target": "<NODE_NAME>"
}
enum org.kevoree.DataType {
Byte
Short
Int
Long
Float
Double
Boolean
Char
String
@maxleiko
maxleiko / org.kevoree.mm
Created January 16, 2015 09:47
Kevoree MM v6 proposal
//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,*]
@maxleiko
maxleiko / package.json
Created June 23, 2015 09:42
Test case for node-red starting execution flow
{
"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"
},
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');
'use strict';
var StateJS = require('state.js');
StateJS.internalTransitionsTriggerCompletion = true;
/**
* Definition of the new type: TimerJS
**/
function TimerJS(name, root, debug) {
'use strict';
function MyType() {
this.id = null;
}
MyType.prototype.handler = function () {
console.log('handle ' + this.id);
};
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 () {
const hello = (msg) => console.log(`Message: ${msg}`);
hello('Hello world');