a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| do ($ = jQuery) -> | |
| $.fn.zebraTable = (options) -> | |
| defaults = | |
| evenColor: '#ccc' | |
| oddColor : '#eee' | |
| options = $.extend(defaults, options) | |
| @each -> | |
| $("tr:even", @).css('background-color', options.evenColor) | |
| $("tr:odd", @).css('background-color', options.oddColor) |
| # Cookbook Name:: mongodb | |
| # Recipe:: default | |
| case node['platform'] | |
| when "ubuntu" | |
| execute "apt-get update" do | |
| action :nothing | |
| end | |
| execute "add gpg key" do |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| // If you need a handy color picker try http://hslpicker.com | |
| // Or look at octopress/sass/base/solarized.scss for inspiration. The colors in there are excellent. | |
| // The following are ordered in terms of vague importance. | |
| //Pick your favorite color. If you picked a thoughtful blue, try again. | |
| $main-color: #6c71c4; | |
| //This controls the background. | |
| $page-bg: lighten($main-color,20); |
| /* | |
| * Extends Handlebars with a basic get method for loading external | |
| * Handlebars templates. Simply pass an options object which contains | |
| * the following properties: | |
| * - path (required) : Path to the external template file to be loaded | |
| * - success (required) : Callback invoked with the compiled loaded template. | |
| * - cache (optional) : true if the template is to be cached, otherwise false. | |
| * | |
| * In addition to the above arguments, any jQuery/Zepto.ajax options argument | |
| * can be specified as well. |
| directory "tmp" | |
| file "tmp/hello.tmp" => "tmp" do | |
| sh "echo 'Hello' > 'tmp/hello.tmp'" | |
| end | |
| task :default => 'morning:turn_off_alarm' | |
| namespace :morning do | |
| desc "Turn off alarm." |
| # Example of .jrubyrc | |
| # Set compilation mode. JIT = at runtime; FORCE = before execution. (JIT, FORCE, OFF, OFFIR) | |
| # compile.mode = FORCE | |
| # Dump to console all bytecode generated at runtime. | |
| # compile.dump = true | |
| # Enable verbose JIT logging (reports failed compilation) | |
| # jit.logging.verbose = true |