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
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
kriswill / pb.sublime-project
Created Sep 12, 2011
pb sublime-text 2 general project file
View pb.sublime-project
{
"folders":
[
{
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
},
{
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
@kriswill
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 ? evt.target.hasClassName("search-choice-close") : false;
+ var target = evt != null && evt.target ? $(evt.target) : null
@kriswill
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>tpl</string>
<string>html</string>
</array>
<key>foldingStartMarker</key>
@kriswill
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Kris - based on Railscasts</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
View gist:3b855c6de3af654fe5a2
Verifying that +krisw is my blockchain ID. https://onename.com/krisw
@kriswill
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
kriswill / terminfo.sh
Last active Sep 10, 2016
Prints information about the terminal application you are using
View terminfo.sh
# 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
do
case $OPTION in
@kriswill
kriswill / link-gliffy-modules.sh
Last active Oct 12, 2016
Re-link all @gliffy/ember-* modules with NPM
View link-gliffy-modules.sh
@kriswill
kriswill / apk-info-json.sh
Created Oct 9, 2017
Parse alpine apk package versions into a JSON blob
View apk-info-json.sh
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.