This file contains 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
{ | |
"name": "grunt-my-custom-webfont", | |
"version": "0.0.0", | |
"dependencies": {}, | |
"devDependencies": { | |
"grunt": "0.4.1", | |
"grunt-webfont": "0.4.8", | |
} | |
} |
This file contains 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 | |
# usage: git-push-master branchname | |
# script to pull the latest master of current repo and merge it into the specified branch and push that branch back to the remote | |
set -x #echo on | |
BRANCHNAME=$1 | |
git checkout master | |
git pull | |
git checkout $BRANCHNAME |
This file contains 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
#Add git branch to terminal | |
#Git prompt | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
GREEN="\[\033[0;32m\]" | |
WHITE="\[\033[0;37m\]" | |
YELLOW="\[\033[0;33m\]" |
This file contains 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
// Cross browser shims | |
// Return appropriate browser transitionend event(s) | |
// defined as an IIFE because it only ever needs to run once | |
// See http://stackoverflow.com/questions/5023514/how-do-i-normalize-css3-transition-functions-across-browsers | |
utils.transitionEvent = (function(){ | |
var t; | |
var el = document.createElement('fakeelement'); | |
var transitions = { | |
'transition':'transitionEnd transitionend', |
This file contains 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
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> | |
<key>kind</key> | |
<string>software-package</string> |
This file contains 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
root=$(pwd) | |
movieset=$1 | |
echo $root | |
for file in $root/*.mkv | |
do | |
filepath="${file%.*}.nfo" | |
filename=$(basename $file) | |
echo "Processing $filename" | |
echo "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n" > $filepath | |
echo "<movie>" >> $filepath |
This file contains 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
GREEN="\[\033[0;32m\]" | |
WHITE="\[\033[0;37m\]" | |
YELLOW="\[\033[0;33m\]" | |
function parse_git_dirty() { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ (\1)$(parse_git_dirty)/" |