A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| export function MyAwesomeMatcher ( url: UrlSegment[] ): UrlMatchResult { | |
| if (url.length === 0) { | |
| return null; | |
| } | |
| const reg = /^(awesome-path)$/; | |
| const param = url[ 0 ].toString(); | |
| if (param.match( reg )) { |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| # This config is used for Dreamhost which HTTP basic authoriztion is forbidden. | |
| # The PHP Server variable 'PHP_AUTH_USER' & 'PHP_AUTH_PW' could be implement by | |
| # this config via a CGI environment variable. | |
| # From [HTTP Authentication on PHP as CGI (like Dreamhost)](http://planetozh.com/blog/2009/04/http-authentication-on-php-as-cgi-like-dreamhost/) | |
| RewriteEngine on | |
| RewriteRule ^git-hook.*\.php - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] |
| ### | |
| FooBar jQuery Plugin v1.0 - It makes Foo as easy as coding Bar (?). | |
| Release: 19/04/2013 | |
| Author: Joe Average <joe@average.me> | |
| http://github.com/joeaverage/foobar | |
| Licensed under the WTFPL license: http://www.wtfpl.net/txt/copying/ | |
| ### | |
| (($, window, document) -> |
| web: ./node_modules/.bin/coffee app.coffee |
| /* | |
| * Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
| * These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
| * | |
| * Usage: | |
| * $ casperjs screenshots.js http://example.com | |
| */ | |
| var casper = require("casper").create(); |
| _ = require 'underscore' | |
| {Assign, Value, Literal, Access, Block, Class, Op, Obj, Arr, For, Index, Call, Return, If, Throw} = nodes = require '../nodes' | |
| exports.originals = originals = {} | |
| exports.codeblock = codeblock = (block) -> | |
| return block unless block? | |
| if typeof block is 'function' |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |