Skip to content

Instantly share code, notes, and snippets.

View FSMExample.scala
package examples
import scala.concurrent.duration._
import scala.collection.immutable
// Master case classes
case object Start
View nodeEvents2.js
var util = require('util'),
eventEmitter = require('events').EventEmitter,
fs = require('fs');
function inputChecker(name, file) { = name;
this.writeStream = fs.createWriteStream('./'+ file + ".txt",
'flags': 'a',
'encoding': 'utf8',



Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
         xAxis:{type:'Category',field: "Month",orderRule:'Date'},
View gist:8490745
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
View main-structure.json
"agent": {
"active": true|false,
"recipes": {
"-KMYW_ER79aPDAe3mJuY": {...},
"-KMYW_ER79aPDAe1234Y": {...},
"-KMYW_DGADaPDAe3mJuZ": {...}

Reviewer's checklist - How to boost your code review skills

Purpose of my lightning talk is to present insights I've reached as a reviewer/ reviewee in the last couple of months.

I will answer these questions:

  • What makes a good code review good?
  • How to build guidelines? Dos and Don'ts.
  • How to educate dev/team members about the code review process?
View test-data.json
"lat": 50.076191,
"lng": 14.514925,
"minutes": 15
"lat": 50.068435,
"lng": 14.507169,
"minutes": 49

Keybase proof

I hereby claim:

  • I am vire on github.
  • I am vire ( on keybase.
  • I have a public key whose fingerprint is 5EDA 5161 27AF 15DE 2CFC CB07 A69B 3F60 DD22 97D1

To claim this, I am signing this object:

View rxjs5-ws-example.ts
// @author Markus Werle @daixtrose
// snippet based on RxJS5+WebSockets discussion in room
import * as io from '';
export class SocketService {
public url : string;
private _receivedMessagesRelay: Subject<{}>;
public receivedMessages: Observable<{}>;
vire / .flowconfig
Created Mar 9, 2017 — forked from MoOx/.flowconfig
flow config webpack adjustements to avoid the "Required module not found" for png, css, svg etcc
View .flowconfig
# ...
# webpack loaders
module.name_mapper='.*\.css$' -> '<PROJECT_ROOT>/flow/stub/css-modules.js'
module.name_mapper='.*\.\(svg\|png\|jpg\|gif\)$' -> '<PROJECT_ROOT>/flow/stub/url-loader.js'