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:
# Temporarily redirects STDOUT and STDERR to /dev/null | |
# but does print exceptions should there occur any. | |
# Call as: | |
# suppress_output { puts 'never printed' } | |
# | |
def suppress_output | |
original_stderr = $stderr.clone | |
original_stdout = $stdout.clone | |
$stderr.reopen(File.new('/dev/null', 'w')) | |
$stdout.reopen(File.new('/dev/null', 'w')) |
# NOTE below gems are only for development purpose can be removed and commented out as per requirement | |
group :development do | |
gem 'rails-erd','1.0.0' | |
gem 'hirb','0.7.0' | |
gem 'railroady' | |
gem 'itslog','0.6.1' | |
gem 'quiet_assets' | |
gem 'sextant' # now included in Rails 4.0 | |
end |
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:
<select name="nationality"> | |
<option value="">-- select one --</option> | |
<option value="afghan">Afghan</option> | |
<option value="albanian">Albanian</option> | |
<option value="algerian">Algerian</option> | |
<option value="american">American</option> | |
<option value="andorran">Andorran</option> | |
<option value="angolan">Angolan</option> | |
<option value="antiguans">Antiguans</option> | |
<option value="argentinean">Argentinean</option> |
for(var key in objects) { | |
var value = objects[key]; | |
} | |
Object.values = function (obj) { | |
var vals = []; | |
for( var key in obj ) { | |
if ( obj.hasOwnProperty(key) ) { | |
vals.push(obj[key]); | |
} |
# $('.drink li').hover(function() { | |
# $(this).find('span').show(); | |
# }, function() { | |
# $(this).find('span').hide(); | |
# }); | |
$('.drink li').hover( | |
-> | |
$(@).find('span').show() | |
-> | |
$(@).find('span').hide() |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………