Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /** | |
| * so here the thing ... you go in your github page | |
| * as example I go here: https://github.com/WebReflection | |
| * you open your console | |
| * you copy and paste this shit | |
| * then you write and execute in the console | |
| * write("Hi There!"); | |
| * NOTE: Pixel Font from a 2006 project of mine :-) http://devpro.it/pixelfont/ | |
| */ | |
| function write(text, color, start) { |
| #!/bin/sh | |
| # A pre-commit hook for git to lint JavaScript files with jshint | |
| # @see https://github.com/jshint/jshint/ | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
| ps axc -o pid | grep -v PID | ruby -e 'puts STDIN.read.split("\n").shuffle.join("\n")' | head -1 | xargs kill |
| require 'date' | |
| class ExpiredTodoError < StandardError; end | |
| # Implementation # | |
| def todo(what, by_date) | |
| if production? || (Date.parse(by_date) >= Date.today) | |
| yield | |
| else | |
| raise ExpiredTodoError, "TODO: #{what}" |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
| /* | |
| * Minimal classList shim for IE 9 | |
| * By Devon Govett | |
| * MIT LICENSE | |
| */ | |
| if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') { | |
| Object.defineProperty(HTMLElement.prototype, 'classList', { | |
| get: function() { |
| (function(d){ | |
| var asin = d.getElementById('ASIN'), url; | |
| if (asin) { | |
| url = 'http://' + d.domain + '/dp/' + asin.value; | |
| if (prompt('Short Amazon URL (hit OK to load):', url)) { | |
| window.location.href = url; | |
| } | |
| } else { | |
| alert("Can't find an Amazon product ID."); |
| Hi David, | |
| I came across your profile online and wanted to reach out about Development | |
| Opportunities here at Groupon. The company is growing, and we're always | |
| looking for folks with solid skills that can make positive contribution to | |
| our continued success. Any chance you'd be open to a quick conversation | |
| about opportunities, or for any possible networking potential? If so, let me | |
| know when you're free and we can set up a time to chat. Also, if you are | |
| interested, it would be great if you could forward a current resume over | |
| that I can take a look at. I look forward to hearing back from you! Please | |
| let me know if you have any questions. |
| #!/usr/bin/env ruby | |
| # Usage: gitio URL [CODE] | |
| # | |
| # Turns a github.com URL | |
| # into a git.io URL | |
| # | |
| # Copies the git.io URL to your clipboard. | |
| url = ARGV[0] | |
| code = ARGV[1] |