I hereby claim:
- I am davefp on github.
- I am davefp (https://keybase.io/davefp) on keybase.
- I have a public key whose fingerprint is 3ABF B586 F553 4C5C B6D8 FED4 BC7B B853 4735 E097
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #One liner? | |
| assert_requested(:post, url, body: hash_including({name: 'web', events: ['release'], active: true, config: {url: 'http://example.com/webhooks/release', content_type: 'json'}})) | |
| # Params aligned with the structure they're part of? | |
| assert_requested(:post, url, | |
| body: hash_including({name: 'web', events: ['release'], active: true, | |
| config: {url: 'http://example.com/webhooks/release', content_type: 'json'}})) | |
| # Something else? |
| puts 'Jonathan' |
This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Many thanks to funny-falcon for the performance patches.
| setScore = min(science1, science2, science3)*7 |
| for (int i = 0; i < totals.length; ++i) { | |
| for (int j = 0; j < scores[i].length; ++j) { | |
| totals[i] += scores[i][j]; | |
| } | |
| } |
| class Dashing.Weather extends Dashing.Widget | |
| ready: -> | |
| # This is fired when the widget is done being rendered | |
| onData: (data) -> | |
| # Handle incoming data | |
| # You can access the html node of this widget with `@node` | |
| # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. |
| require 'net/http' | |
| require 'xmlsimple' | |
| # Get a WOEID (Where On Earth ID) | |
| # for your location from here: | |
| # http://woeid.rosselliot.co.nz/ | |
| woe_ids = {"weather-ottawa" => 3369, "weather-toronto" => 123, "weather-montreal" => 456} | |
| # Temerature format: | |
| # 'c' for Celcius |
| GEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| backports (3.1.0) | |
| coffee-script (2.2.0) | |
| coffee-script-source | |
| execjs | |
| coffee-script-source (1.4.0) | |
| daemons (1.1.9) | |
| dashing (1.0.4) |
| curl -i -d '{ "auth_token": "YOUR_AUTH_TOKEN", "event": "reload"}' http://localhost:3030/dashboards/sample |