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
'#' + Math.floor(Math.random() * 0xffffff).toString(16); |
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
/* | |
Module $1 | |
${7:Description of $1.} | |
@author ${TM_FULLNAME} | |
created `date +%Y-%m-%d` | |
*/ | |
var ${1:module} = (function (${2:\$}) { | |
var ${5:bar}; | |
${4:function foo () { return bar; \} |
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
<!-- | |
Don't forget to add: | |
<html xmlns:v="urn:schemas-microsoft-com:vml"> | |
--> | |
<!--[if gte mso 9]> | |
<v:image xmlns:v="urn:schemas-microsoft-com:vml" style='behavior: url(#default#VML); | |
display: inline-block; | |
position: absolute; | |
height: ${1:100}px; | |
width: ${2:100}px; |
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
#!/usr/bin/env php | |
<?php | |
# John Hunter <https://github.com/johnhunter> | |
$path = getenv('TM_DROPPED_FILE'); | |
$path_parts = pathinfo($path); | |
$info = getimagesize($path); |
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
#!/usr/bin/env php | |
<?php | |
# John Hunter <https://github.com/johnhunter> | |
$path = getenv('TM_DROPPED_FILE'); | |
$path_parts = pathinfo($path); | |
$info = getimagesize($path); |
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
# git aliases | |
alias gs='git status' | |
alias ga='git add $1' | |
alias gb='git branch $1' | |
alias gcl='git clone $1' | |
alias gco='git checkout $1' | |
alias gm='git commit -m $1' | |
alias gma='git commit -am $1' | |
alias gph='git push' | |
alias gpl='git pull' |
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 charset="utf-8"> | |
<title>Bookmarklets</title> | |
<style> | |
body { | |
background: #eee; | |
} |
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 charset="utf-8"> | |
<title>ajax-error</title> | |
</head> | |
<body> | |
<pre id="output"></pre> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js"></script> | |
<script> |
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
/* | |
Module Date.to - Static Date methods for formatting js Date objects to strings. | |
@author John Hunter | |
created 2010-03-30 | |
use: Date.to.ddmmyyyy(new Date(), '^') => '30^03^2010' | |
*/ | |
Date.to = (function () { |
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
/* | |
* FancyBox - jQuery Plugin | |
* Simple and fancy lightbox alternative | |
* | |
* Examples and documentation at: http://fancybox.net | |
* | |
* Copyright (c) 2008 - 2010 Janis Skarnelis | |
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. | |
* | |
* Version: 1.3.4 (11/11/2010) |