Skip to content

Instantly share code, notes, and snippets.

View devotox's full-sized avatar
💻
Innovating

Devonte devotox

💻
Innovating
View GitHub Profile
function () {
'use strict';
var cluster = require('cluster'),
http = require('http'),
os = require('os'),
ClusterServer,
@devotox
devotox / gist:7ff1638c166f4f1f7c18
Last active August 29, 2015 14:26 — forked from dsibilly/gist:2992412
Node.js clustered HTTP server example
(function () {
'use strict';
var cluster = require('cluster'),
http = require('http'),
os = require('os'),
/*
* ClusterServer object
@devotox
devotox / config.fish
Last active August 29, 2015 14:04 — forked from jimmed/config.fish
# Aliases to common git methods
function gs; git status --short $argv; end;
function gd; git diff --color $argv; end;
function gf; git fetch -p; end;
function gpl; git pull $argv; end;
function gps; git push $argv; end;
function gch; git checkout $argv; end;
function gb; git branch $argv; end;
function ga; git add $argv; end;
function gco; git commit -m $argv; end;
@devotox
devotox / Radio2_Check2.js
Last active December 20, 2015 04:19
Like Select2 ... for radios and checkboxes
(function ($, window, undefined) {
$.fn.extend({
check2: function(option){
option = option || 'create';
var conf = {
check2Class: 'check2',
offscreenClass: 'offscreen',
fontSize: '1.2em'
};