This file contains 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
class SVG | |
def self.rect(width, height, x, y) | |
"<rect width=\"#{width}\" height=\"#{height}\" x=\"#{x}\" y=\"#{y}\"/>" | |
end | |
def self.build(width, height, &block) | |
rect_output = instance_eval(&block) | |
"<svg width=\"#{width}\" height=\"#{height}\" xmlns=\"http://www.w3.org/2000/svg\">\n" + | |
" #{rect_output}\n" + |
This file contains 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
#!/bin/bash | |
sudo mkdir /run/postgresql 2>/dev/null | |
sudo chown postgres.postgres /run/postgresql | |
[ `whoami` = postgres ] || exec sudo -u postgres -g postgres -s <<HEREDOC | |
echo SUDOING | |
cd /dev/shm | |
mkdir /dev/shm/postgresql | |
echo initializing db | |
initdb --locale=en_GB.UTF-8 -D /dev/shm/postgresql 1> /dev/null |
This file contains 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
The PGconn, PGresult, and PGError constants are deprecated, and will be | |
removed as of version 1.0. | |
You should use PG::Connection, PG::Result, and PG::Error instead, respectively. | |
Called from /home/user/.rvm/gems/ruby-2.3.1@potok/gems/activesupport-5.0.0.rc2/lib/active_support/dependencies.rb:259:in `load_dependency' | |
Run options: include {:focus=>true, :last_run_status=>"failed"} | |
Randomized with seed 21832 | |
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2017-07-12T09:31:03.650Z 26352 TID-749nc ERROR: wrong number of arguments (given 2, expected 1) |
This file contains 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
./spec/acceptance/resumes_spec.rb[1:1:1] | failed | 0.17699 seconds | | |
./spec/acceptance/resumes_spec.rb[1:2:1] | failed | 0.65453 seconds | | |
./spec/acceptance/resumes_spec.rb[1:3:1] | failed | 0.91787 seconds | | |
./spec/controllers/analytics/declination_controller_spec.rb[1:1:1] | failed | 1.41 seconds | | |
./spec/controllers/analytics/efficiency_controller_spec.rb[1:2:1] | failed | 0.59922 seconds | | |
./spec/controllers/analytics/flow_controller_spec.rb[1:1:1] | failed | 0.19287 seconds | | |
./spec/controllers/analytics/flow_controller_spec.rb[1:1:2] | failed | 0.2091 seconds | | |
./spec/controllers/analytics/sources_controller_spec.rb[1:1:1] | failed | 0.16692 seconds | | |
./spec/controllers/analytics/sources_controller_ |
This file contains 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
/* | |
* robot.js | |
* | |
* You'll need three keys in order to unlock the | |
* Algorithm: the red key, the green key, and the | |
* blue key. Unfortunately, all three of them are | |
* behind human-proof barriers. | |
* | |
* The plan is simple: reprogram the maintenance | |
* robots to grab the key and bring it through |