Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| .onepush { | |
| margin-left: 8.65%; | |
| } | |
| .twopush { | |
| margin-left: 17.3%; | |
| } | |
| .threepush { | |
| margin-left: 25.95%; |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| #!/usr/bin/env ruby | |
| # | |
| # Originally written by http://redartisan.com/tags/csv | |
| # Added and minor changes by Gavin Laking | |
| # Rewritten by Andrew Bennett for Ruby 1.9 | |
| # | |
| # Usage: ruby csv_to_fixture.rb file.csv [--json] | |
| # | |
| # "id","name","mime_type","extensions","icon_url" | |
| # "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Table Display test</title> | |
| <style> | |
| @media screen and (min-width: 30em) { | |
| body { | |
| display: table; | |
| caption-side: top; | |
| } |
| for (var i=1; i <= 20; i++) | |
| { | |
| if (i % 15 == 0) | |
| console.log("FizzBuzz"); | |
| else if (i % 3 == 0) | |
| console.log("Fizz"); | |
| else if (i % 5 == 0) | |
| console.log("Buzz"); | |
| else | |
| console.log(i); |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| #!/usr/bin/env perl | |
| # | |
| # http://daringfireball.net/2007/03/javascript_bookmarklet_builder | |
| use strict; | |
| use warnings; | |
| use URI::Escape qw(uri_escape_utf8); | |
| use open IO => ":utf8", # UTF8 by default | |
| ":std"; # Apply to STDIN/STDOUT/STDERR |