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:
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:
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = 'EMAIL@provider.com' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
| #!/usr/bin/env ruby | |
| require 'webrick' | |
| require 'optparse' | |
| include WEBrick | |
| options = {:Port => 9090, | |
| :DocumentRoot => './', | |
| :Bonjour => false} | |
| optparser=OptionParser.new do |opts| | |
| opts.banner = "Usage: #{File.basename(__FILE__)} [options]" |
| # NAME: authinabox | |
| # VERSION: 1.01 (Dec 27, 2008) | |
| # AUTHOR: Peter Cooper [ http://www.rubyinside.com/ github:peterc twitter:peterc ] | |
| # DESCRIPTION: An "all in one" Sinatra library containing a User model and authentication | |
| # system for both session-based logins OR HTTP Basic auth (for APIs, etc). | |
| # This is an "all in one" system so you will probably need to heavily tailor | |
| # it to your own ideas, but it will work "out of the box" as-is. | |
| # COMPATIBILITY: - Tested on 0.3.2 AND the latest rtomayko Hoboken build! (recommended for the latter though) | |
| # - NEEDS DataMapper! | |
| # - Less work needed if you use initializer library -- http://gist.github.com/40238 |
| <?php | |
| // Use in the "Post-Receive URLs" section of your GitHub repo. | |
| if ( $_POST['payload'] ) { | |
| shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
| } | |
| ?>hi |