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
for f in *mp3; do eyed3 --encoding=utf8 --to-v2.4 --add-image cover.jpg:OTHER $f; done |
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
# If applied, this commit will... | |
#........|.........|.........|.........|.........$ | |
# Why is this change being made? | |
#........|.........|.........|.........|.........|.........|.........|.$ | |
# Provide links to any relevant tickets, URLs or other resources | |
#........|.........|.........|.........|.........|.........|.........|.$ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
if [ -f ~/.zsh_nocorrect ]; then | |
while read -r COMMAND; do | |
alias $COMMAND="nocorrect $COMMAND" | |
done < ~/.zsh_nocorrect | |
fi |
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
body { | |
background-color: #002b36; | |
color: #839496; | |
font-size: 14px; | |
white-space: pre !important; | |
font-family: "Source Code Pro", monospace; | |
} | |
.property { | |
font-weight: bold; |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>test</title> | |
<script src="jquery-1.4.4.js"></script> | |
<script src="jquery.pubsub.js"></script> | |
<script> | |
// namespace |
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
function calcAge(YYYY,MM,DD) { | |
var today = new Date(), | |
todayYYYY = today.getFullYear(), | |
todayMM = today.getMonth() + 1, | |
todayDD = today.getDate(); | |
return (todayYYYY - YYYY) - (todayMM < MM || (todayMM == MM && todayDD < DD) ? 1 : 0); | |
} |
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
/** | |
* Package: jQuery PubSub | |
* a lightweight and fast jQuery Publish/Subscribe system | |
* based on the jQuery plugin by Peter Higgins (dante@dojotoolkit.org) | |
* http://higginsforpresident.net/js/jq.pubsub.js | |
*/ | |
(function(window) { | |
var subscriptions = {}, | |
cache = {}, | |
we, |