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)
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| /* ~/Library/KeyBindings/DefaultKeyBinding.dict */ | |
| { | |
| /* Additional Emacs bindings */ | |
| "~f" = "moveWordForward:"; /* M-f */ | |
| "~b" = "moveWordBackward:"; /* M-b */ | |
| "~<" = "moveToBeginningOfDocument:"; /* M-< */ | |
| "~>" = "moveToEndOfDocument:"; /* M-> */ | |
| "~v" = "pageUp:"; /* M-v */ | |
| "^v" = "pageDown:"; /* C-v */ |
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)
This gist assumes:
These patches provide basic support for the Bootstrap grid system in Internet Explorer 6. The JavaScript code requires jQuery.
Feel free to fork & improve.
| #!/bin/bash | |
| echo "Generating an SSL private key to sign your certificate..." | |
| openssl genrsa -des3 -out myssl.key 1024 | |
| echo "Generating a Certificate Signing Request..." | |
| openssl req -new -key myssl.key -out myssl.csr | |
| echo "Removing passphrase from key (for nginx)..." | |
| cp myssl.key myssl.key.org | |
| openssl rsa -in myssl.key.org -out myssl.key |
Got nested columns in your grid-based Jekyll site?
Wondered why you didn't have a way to calculate the modulo inside your posts loop to open and close your 'rows' containing those nested columns?
Add this filter to your _plugins directory, and use it like so:
{{ x | mod:y }}
| #!/usr/bin/env ruby | |
| # | |
| # Generate css for the pro glyphicons. | |
| # Run this script in the glyphicons_pro/glyphicons/png folder | |
| # from the purchased zip file. | |
| # | |
| # see http://glyphicons.com/ for purchase/license information. | |
| # | |
| render = (ARGV.include? "--html") ? :html : :css |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| if (!document.querySelectorAll) { | |
| document.querySelectorAll = function(selector) { | |
| var doc = document, | |
| head = doc.documentElement.firstChild, | |
| styleTag = doc.createElement('STYLE'); | |
| head.appendChild(styleTag); | |
| doc.__qsaels = []; | |
| styleTag.styleSheet.cssText = selector + "{x:expression(document.__qsaels.push(this))}"; | |
| window.scrollBy(0, 0); |