Skip to content

Instantly share code, notes, and snippets.

View ruslanchek's full-sized avatar
🎯
Focusing

Mike Burton ruslanchek

🎯
Focusing
View GitHub Profile
@ruslanchek
ruslanchek / nodejs
Created September 24, 2012 13:02
node.js init.d script for CentOS
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="nodejs"
@ruslanchek
ruslanchek / AppDispatcher.ts
Last active April 23, 2016 10:40 — forked from tgroshon/AppDispatcher.js
A Flux Dispatcher with an Action Queue sitting on top to allow dispatching actions at any time.
import {Dispatcher} from 'flux';
const DELAY_TIME = 100;
export class QDispatcher {
private dispatcher:Dispatcher = null;
private isProcessing:boolean = false;
private actionQueue:any[] = [];
constructor() {