This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{:ticket=>253812, :num_comments=>0}, | |
{:ticket=>253814, :num_comments=>0}, | |
{:ticket=>253901, :num_comments=>0}, | |
{:ticket=>253821, :num_comments=>0}, | |
{:ticket=>253822, :num_comments=>0}, | |
{:ticket=>253845, :num_comments=>0}, | |
{:ticket=>253897, :num_comments=>0}, | |
{:ticket=>253913, :num_comments=>0}, | |
{:ticket=>253929, :num_comments=>0}, | |
{:ticket=>253933, :num_comments=>0}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo touch /etc/profile.d/torquebox.sh | |
echo 'export TORQUEBOX_HOME=/opt/torquebox/torquebox-3.1.1' | sudo tee -a /etc/profile.d/torquebox.sh | |
echo 'export JBOSS_HOME=$TORQUEBOX_HOME/jboss' | sudo tee -a /etc/profile.d/torquebox.sh | |
echo 'export JRUBY_HOME=$TORQUEBOX_HOME/jruby' | sudo tee -a /etc/profile.d/torquebox.sh | |
echo 'export PATH=$JRUBY_HOME/bin:$PATH' | sudo tee -a /etc/profile.d/torquebox.sh | |
export TORQUEBOX_HOME=/opt/torquebox/torquebox-3.1.1 | |
export JBOSS_HOME=$TORQUEBOX_HOME/jboss | |
export JRUBY_HOME=$TORQUEBOX_HOME/jruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Baseline. | |
joins{runner}. | |
where{runner.event_id.in [123, 456]}. | |
update_all("price = runners.price") | |
# => The multi-part identifier "runners.price" could not be bound |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill -9 $(cat tmp/pids/server.pid) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Rack::Static, | |
:urls => ["/img", "/js"], | |
:root => "public" | |
run lambda { |env| | |
[ | |
200, | |
{ 'Content-Type' => 'text/html' }, | |
File.open('public/index.html', File::RDONLY) | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handlebars.registerHelper 'merge', (context, args..., options) -> | |
context[args[i]] = args[i+1] for i in [0...args.length] by 2 | |
options.fn context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
$("#accName").val("ZhTst" + Math.round(Math.random() * 1000000)); | |
$("#pwd, #pwdConfirm").val("ZhTest1234"); | |
$("#securityQuestionID")[0].selectedIndex=1; | |
$("#securityAnswer").val("櫧櫋瀩櫧櫋瀩"); | |
$("#firstName").val("鶷鷇鶾"); | |
$("#lastName").val("晛桼桾潧潧"); | |
$("#genderMale").attr("checked", true); | |
$("#birthMonth, #birthDate, #birthYear").each(function(){this.selectedIndex=1;}); | |
$("#state, #city").each(function(){this.selectedIndex=1;}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I -w "%{time_total}" www.example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load_paths = [ | |
'../this/**/*.rb', | |
'../that/**/*.rb', | |
'../other/**/*.rb' | |
] | |
load_paths.each do |path| | |
path = File.join(File.dirname(__FILE__), path) | |
Dir[path].each do |file| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map('/') {run API::Base} | |
map('/clients') {run API::Clients} | |
map('/tech') {run API::Tech} |
NewerOlder