Skip to content

Instantly share code, notes, and snippets.

Kenny Smith kjs3

Block or report user

Report or block kjs3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kjs3 /
Last active Aug 14, 2017
Markdown link processing
git config --global checkout
git config --global branch
git config --global commit
git config --global status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global push.default current
View Preferences.sublime-settings
"file_exclude_patterns": [

Slack, please for the love of God stop ingesting my gists as snippets.

kjs3 / module-testing.js
Last active Jul 6, 2016
Babel rewire and expect.js testing
View module-testing.js
// my-module.js
function privateFunc () {
console.log("Some convoluted logic.")
return 1 + 2
export default function () {
console.log("Hey! I'm the public interface for this module")
kjs3 / server.js
Created Dec 3, 2015
Reloading express routes/middleware on file change WITHOUT restarting node process.
View server.js
if ( process.env.NODE_ENV === 'production' ) {
// dev runs with babel-node so this isn't necessary
require('babel-core/register'); // this includes the polyfill
import 'source-map-support/register'
import Debug from 'debug'
import express from 'express'
kjs3 / gist:047c1a2467a6d62bf223
Created Jun 16, 2015
Trying to set Parse User ACL
View gist:047c1a2467a6d62bf223
var user = new Parse.User({
name: name,
username: email,
email: email,
password: password
function() {
var user = Parse.User.current();
kjs3 / gist:11f2032228de0f5a23bb
Created May 19, 2015
Async mapi calls with ruby
View gist:11f2032228de0f5a23bb
require 'typhoeus'
require 'pry'
Typhoeus::Config.memoize = false
t1 =
base_url = ""
limit = 20
kjs3 / gist:a3c17b6e97b1f94948ee
Created May 19, 2015
Async mapi calls with js
View gist:a3c17b6e97b1f94948ee
var request = require('superagent');
var async = require('async');
var _ = require('lodash');
console.time('Execution Time');
baseUrl = ""
limit = 20
View gist:65a5316566101b89847f
+__rvm_make:0> make -j 1
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin14 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -install_name /Users/kjs3/.rvm/rubie
You can’t perform that action at this time.