This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
now ls | grep FROZEN | awk '{print $1}' | xargs now rm -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const latestAttrs = { | |
"*": [ | |
"className", | |
"dangerouslySetInnerHTML", | |
"dir", | |
"draggable", | |
"hidden", | |
"htmlFor", | |
"id", | |
"is", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# power cycle wifi because Apple laptops crap out when waking from sleep | |
# might need to replace 'airport' with 'en0' - the first attempt will stdout the one that worked | |
alias wtf='networksetup -setairportpower airport off; networksetup -setairportpower airport on' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# checkout a pull request by ID into a new branch like: gcopr 123 new-branch-name | |
gcopr() { | |
numRegex='^[0-9]+$' | |
if ! [[ $1 =~ $numRegex ]]; then | |
echo "No ID for PR given" | |
else | |
branchname=${2-pr-$1} | |
git fetch origin pull/$1/head:$branchname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'click .cancel-edit-section': function(e) { | |
var parent = $(e.currentTarget).closest('.section'); | |
$(parent).find('#section-title input').val(this.title); | |
$(parent).find('#section-content textarea').val(this.content); | |
$(parent).toggleClass('editing'); | |
return false; | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.route('report', { | |
path: '/reports/:_id', | |
template: 'report', | |
data: function () { | |
return { | |
reports:Reports.findOne({_id:this.params._id}) | |
}; | |
}, | |
waitOn: function(){ | |
return subscriptionHandles.singlereport(this.params._id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UI.registerHelper('escapeURL', function(route, id) { | |
var path = Meteor.absoluteUrl() + Router.routes[route].path({_id: id}).substring(1); | |
return encodeURIComponent(path); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
'prettify': { | |
options: { | |
indent: 4, | |
indent_char: ' ', | |
wrap_line_length: 0, |
NewerOlder