Skip to content

Instantly share code, notes, and snippets.

Kris Williams kriswill

Block or report user

Report or block kriswill

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
kriswill / npm-install.txt
Created Sep 14, 2015
sails-docker-boilerplate npm install
View npm-install.txt
kris git[master] ~/src/oss/sails-docker-boilerplate
→ docker-compose run sails npm install
Building sails...
Step 0 : FROM node:4.0.0
4.0.0: Pulling from library/node
8b49fe88b40b: Pull complete
20b348f4d568: Pull complete
16b189cc8ce6: Pull complete
116f2940b0c5: Pull complete
1c4c600b16f4: Pull complete
kriswill / pb.sublime-project
Created Sep 12, 2011
pb sublime-text 2 general project file
View pb.sublime-project
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
kriswill / chosen-ie7-prototype-js.diff
Created May 10, 2012
Chosen IE7 Prototype.js git-diff
View chosen-ie7-prototype-js.diff
diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js
index e5049b0..0200299 100644
--- a/chosen/chosen.proto.js
+++ b/chosen/chosen.proto.js
@@ -408,14 +408,15 @@ Copyright (c) 2011 by Harvest
Chosen.prototype.container_mousedown = function(evt) {
var target_closelink;
if (!this.is_disabled) {
- target_closelink = evt != null ?"search-choice-close") : false;
+ var target = evt != null && ? $( : null
kriswill / Smarty.tmLanguage
Created May 11, 2012
Smarty textmate syntax file, modified to work with SublimeText 2
View Smarty.tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
kriswill / kris.tmTheme
Created Jul 17, 2012
Kris' Railscast theme - modified for SublimeText2
View kris.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Kris - based on Railscasts</string>
View gist:3b855c6de3af654fe5a2
Verifying that +krisw is my blockchain ID.
kriswill / controllers.application.js
Created Aug 25, 2016
Testing saving Twiddle to Gist
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
kriswill /
Last active Sep 10, 2016
Prints information about the terminal application you are using
# prints information about the terminal application you are using
function terminfo() {
# make OPTIND local to prevent odd behaviour with getops when running a function multiple times
local OPTIND v
local _verbose=0
while getopts "v" OPTION
case $OPTION in
kriswill /
Last active Oct 12, 2016
Re-link all @gliffy/ember-* modules with NPM
kriswill /
Created Oct 9, 2017
Parse alpine apk package versions into a JSON blob
node -p "require('child_process').exec('apk info --verbose', (err, out) => { packages = {}; out.split('\n').filter(line => line.length).forEach(line => { const parts = line.split('-'); packages[parts[0]] = line.replace(parts[0]+'-', ''); }); console.log(JSON.stringify(packages, null, 2)); process.exit(0)}); '';"
You can’t perform that action at this time.