I hereby claim:
- I am neilmiddleton on github.
- I am neilmiddleton (https://keybase.io/neilmiddleton) on keybase.
- I have a public key whose fingerprint is BDA8 5D45 2BCB 1205 66A7 7567 1A72 C599 9F27 98C2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <div ng-include="'/assets/application/_header.html'"></div> | |
| <div class="container"> | |
| <form ng-submit="submit()"> | |
| <div class="form-group"> | |
| <input class="form-control" id="latitude" max="90" min="-90" ng-model="waypoint.latitude" placeholder="Latitude" required step="any" type="number"> | |
| </div> | |
| <div class="form-group"> | |
| <input class="form-control" id="longitude" max="180" min="-180" ng-model="waypoint.longitude" placeholder="Longitude" required step="any" type="number"> | |
| </div> |
| [ | |
| { | |
| "name": "test", | |
| "dataclip": "https://dataclips.heroku.com/xxxcgvztxgjwfcatoebjqhnpohhebch", | |
| "type": "value", | |
| "source": "paid" | |
| } | |
| ] |
| require 'unicorn' | |
| require 'json' | |
| config = Unicorn::Configurator.new(config_file: 'config/unicorn.rb') | |
| config_hash = { | |
| "timeout" => config[:timeout], | |
| "worker_processes" => config[:worker_processes], | |
| "preload_app" => config[:preload_app], | |
| } |
| my_hash = {} | |
| my_hash[:one] = 'foo' | |
| my_hash[:two] = 'bar' | |
| my_hash[:three] = 'baz' | |
| my_hash.keys.each{|k| puts k} | |
| my_hash = {} | |
| my_hash[:three] = 'baz' | |
| my_hash[:two] = 'bar' |
| class MyHarmlessBot < RTanque::Bot::Brain | |
| NAME = 'Fred West' | |
| include RTanque::Bot::BrainHelper | |
| CORNERS = [:NW, :NE, :SE, :SW] | |
| TURRET_FIRE_RANGE = RTanque::Heading::ONE_DEGREE * 3.0 | |
| SWITCH_CORNER_TICK_RANGE = (200..400) | |
| def tick! | |
| self.hide_in_corners |
| $ curl -H 'Accept: application/json' http://foaas.herokuapp.com/off/cancer/everyone | prettyjson | |
| message: Fuck off, cancer. | |
| subtitle: - everyone |
TUTORIAL_KEY=`(echo -n ":" ; heroku auth:token) | base64` ; echo $TUTORIAL_KEY
curl -X GET https://api.heroku.com/apps -H "Accept: application/vnd.heroku+json; version=3" -H "Authorization: $TUTORIAL_KEY"
curl -X GET https://api.heroku.com/apps/neilmiddleton/formation -H "Accept: application/vnd.heroku+json; version=3" -H "Authorization: $TUTORIAL_KEY"
| [ | |
| { | |
| "name": "support.triage_paid", | |
| "data_point": "views/26629566/count.json", | |
| "type": "count", | |
| "source": "zendesk" | |
| }, | |
| { | |
| "name": "support.triage_free", | |
| "data_point": "views/26626052/count.json", |
| module HealthReport | |
| module LogStreamer | |
| def stream(url, timeout) | |
| Timeout::timeout(20) do | |
| EventMachine.run do | |
| EventMachine::PeriodicTimer.new(15) { out << "\0" } | |
| http = EventMachine::HttpRequest.new(url, keepalive: true, connection_timeout: 0, inactivity_timeout: 0).get | |
| buffer = "" | |
| http.stream do |chunk| |