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
# Snippet to syntax-highlight source code files matching a certain pattern in Quicklook | |
# See see http://seandenigris.com/?p=412 for more info for more info | |
# Used with the qlcolorcode plugin | |
# Insert into QLColorCode.qlgenerator/Contents/Resources/colorize.sh | |
# Works for files in languages known to highlight (see qlcolorcode docs), but because of their filename, aren't recognized by Quicklook | |
#The commented lines are already in the file | |
# | |
# debug Handling special cases |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
get '/' do | |
haml :index, :layout => false #=> Don't use layout.haml. | |
end | |
get '/about' do | |
haml :about, :layout => 'layout2' #=> Use layout2.haml. |
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
module Jekyll | |
Page.class_eval { | |
def clone | |
Page.new(@site, @base, @dir, @name) | |
end | |
} |
require 'rubygems' | |
require 'rake' | |
require 'rake/clean' | |
require 'rake/gempackagetask' | |
require 'rake/testtask' | |
LANG = "ru_RU.UTF-8" | |
SET_CMD = case RUBY_PLATFORM | |
when /mingw32/ then "set" |
-- click on icon | |
try | |
tell application "Finder" | |
set currentPath to (POSIX path of (target of front window as alias)) | |
set the clipboard to currentPath | |
end tell | |
on error | |
my finderErrorMsg() | |
end try | |
-- drop folder on icon |
module Jekyll | |
# Sass plugin to convert .scss to .css | |
# | |
# Note: This is configured to use the new css like syntax available in sass. | |
require 'sass' | |
class SassConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) |
#!/usr/bin/env ruby -wKU | |
# Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
# Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
# Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
# – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
# – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
# – make smart typography processing optional (set SMARTY to 'false' to bypass processing; | |
# note smart typography cannot be disabled in MMD 3.0 and 3.0.1 | |
# – handle both smart typography processing scripts (ie. SmartyPants.pl) |
module Jekyll | |
class RawTag < Liquid::Block | |
def parse(tokens) | |
@nodelist ||= [] | |
@nodelist.clear | |
while token = tokens.shift | |
if token =~ FullToken | |
if block_delimiter == $1 | |
end_tag |
/* | |
* Customize Footnotify on your site by adding custom css. | |
* | |
* This file is NOT loaded by the script and must be | |
* implemented on the site in order to apply. | |
* | |
* More info: https://gist.github.com/1046538 | |
* | |
*/ |