Skip to content

Instantly share code, notes, and snippets.

View BoyCook's full-sized avatar

Craig Cook BoyCook

View GitHub Profile
@BoyCook
BoyCook / .gitignore_global
Last active December 20, 2015 19:28
Git Ignore global config
# git config --global core.excludesfile ~/.gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
@BoyCook
BoyCook / config.json
Created August 8, 2013 08:47
Git all config
[{
"username": "BoyCook",
"dir": "/Users/boycook/code/boycook",
"protocol": "ssh"
},{
"username": "TiddlySpace",
"dir": "/Users/boycook/code/osmosoft/tiddlyspace",
"protocol": "ssh"
},{
"username": "tiddlyweb",
@BoyCook
BoyCook / .travis.yml
Created September 17, 2013 21:21
Istanbul configuration for Coveralls via Travis
before_script: 'npm install -g istanbul && npm install -g mocha'
script: 'make test-cov'
after_success: 'make coveralls'
@BoyCook
BoyCook / .travis.yml
Created October 1, 2013 13:55
Travis yml for TiddlySpace app with tsapp
node_js:
- "0.10"
language: node_js
before_script:
- npm install -g istanbul
- npm install -g mocha
- pip install -U tsapp
script: make test-cov
after_success:
- make coveralls
@BoyCook
BoyCook / Makefile
Created October 1, 2013 23:23
Makefile task for tsapp push
ASSETS := $(wildcard assets/*)
BAG = '' # Set bag name here
push:
@for asset in $(ASSETS); do tsapp push_hard $(BAG) `echo $$asset | cut -d '/' -f 2` ; done
tsapp push_hard $(BAG) index.html
@BoyCook
BoyCook / Makefile
Created October 4, 2013 15:59
Make tasks for Heroku
heroku-redeploy: heroku-stop heroku-push
heroku-stop:
heroku ps:stop web=1
heroku-push:
git push heroku master
heroku-open:
heroku open
@BoyCook
BoyCook / GitApp.js
Last active December 27, 2015 16:19
DevCon7 demo
function GitApp(account) {
this.account = account;
this.template = Handlebars.compile($('#repos-template').html())
this.github = 'https://api.github.com';
}
GitApp.prototype.loadRepos = function() {
var context = this;
var url = this.github + '/users/' + this.account + '/repos?per_page=100';
var callBack = function(data) {
@BoyCook
BoyCook / flower.logo
Created November 8, 2013 09:58
Flower created with logo
@BoyCook
BoyCook / Storage.js
Created January 9, 2014 14:46
localStorage overrides to get/set item as JSON
Storage.prototype.setItem = function(key, obj) {
return this.setItem(key, JSON.stringify(obj));
};
Storage.prototype.getItem = function(key) {
return JSON.parse(this.getItem(key));
};
@BoyCook
BoyCook / issue_link.sh
Created March 23, 2017 15:16
JIRA create issue link