| /* Random Boolean */ | |
| var randomNumber = Math.random() >= 0.5; | |
| console.log(randomNumber); |
| /* | |
| Copyright 2011 Martin Hawksey | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| #!/usr/bin/env ruby | |
| PRESUMPTIVE_RAILS_ROOT = "/data/[APP_NAME]/current" | |
| LOG_PATH = "/data/[APP_NAME]/shared/log/delayed_job_singleton.log" | |
| Dir.chdir PRESUMPTIVE_RAILS_ROOT | |
| require 'home_run' | |
| require "rubygems" | |
| require "bundler/setup" |