Skip to content

Instantly share code, notes, and snippets.

View kn9ts's full-sized avatar
🌠
I am one with the force!

Eugene Mutai kn9ts

🌠
I am one with the force!
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@kn9ts
kn9ts / env.sh
Created February 10, 2017 10:07 — forked from nicinabox/env.sh
Pack Chrome extensions from the command line
# $ crx `pwd`
function crx() {
~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=$@ --pack-extension-key=$@/key.pem
}
@kn9ts
kn9ts / introrx.md
Created December 27, 2016 13:44 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@kn9ts
kn9ts / gist:bcc1c8730127bd9e5d50fa1a0880de07
Created October 23, 2016 11:21 — forked from illerucis/gist:4586359
Server-side Python + MongoDB + Flask implementation for DataTables
from collections import namedtuple
from pymongo import MongoClient
from flask import request
from core.web.site import app
from core.web.site.views_master import *
import json
'''
$('#companies').dataTable( {
"bProcessing": true,
@kn9ts
kn9ts / basicServiceWorker.js
Created March 28, 2016 12:51 — forked from adactio/basicServiceWorker.js
A basic Service Worker, for use on, say, a blog.
'use strict';
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
(function() {
// Update 'version' if you need to refresh the cache
var staticCacheName = 'static';
var version = 'v1::';
@kn9ts
kn9ts / karma.conf.js
Created December 15, 2015 08:25 — forked from koba04/.gitignore
karma + mocha + browserify + babel + power-assert
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'browserify'],
@kn9ts
kn9ts / AngularJS-ES6-Test-Skeleton
Created October 8, 2015 15:45 — forked from busypeoples/AngularJS-ES6-Test-Skeleton
AngularJS - Karma, Jasmine, Browserify, Stringify - ES6 Test Setup
We couldn’t find that file to show.
@kn9ts
kn9ts / app.js
Last active September 7, 2015 10:01 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@kn9ts
kn9ts / in_array.go
Created July 16, 2015 06:57 — forked from anonymous/untitled
// Function to check if the the string given is in the array
inArray := func(str string, list []string) bool {
for _, v := range list {
if v == str {
return true
}
}
return false
}
@kn9ts
kn9ts / tim.js
Last active August 29, 2015 14:20 — forked from bruntonspall/tim.js
/*
== Tim ==
A tiny JavaScript micro-templating script.
http://gist.github.com/521352
You can use Tim to write simple templates that use JavaScript's
familiar dot notation to replace template tags with JSON object
properties.