I hereby claim:
- I am tjmcewan on github.
- I am tjmcewan (https://keybase.io/tjmcewan) on keybase.
- I have a public key whose fingerprint is 77AB E45C 44A2 6B7E C691 2F1F C16A 1AC7 7FAF 79D6
To claim this, I am signing this object:
| # http://stackoverflow.com/a/19323467/320438 | |
| def plusone(x) | |
| x + 1 | |
| end | |
| [1,2,3].map(&:plusone) |
| it { is_expected.to have_many(:appointments).through(:outlets) } | |
| it { is_expected.to validate_presence_of(:outlet_id) } | |
| it { is_expected.to belong_to(:outlet) } |
| ~$ ruby -v *[master] | |
| ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0] | |
| ~$ irb *[master] | |
| irb(main):001:0> module I18nHelper | |
| irb(main):002:1> def custom_translate | |
| irb(main):003:2> "boo" | |
| irb(main):004:2> end | |
| irb(main):005:1> | |
| irb(main):006:1* module_function :custom_translate | |
| irb(main):007:1> alias_method :ct, :custom_translate |
| <html><head></head><body></body> | |
| <script type="text/javascript"> | |
| // italics for objects | |
| (function (values) { | |
| function toString(x) { | |
| var v = x; | |
| v = (v || v === "") ? JSON.stringify(v) : String(v); | |
| if (typeof x === 'object') v = v.italics(); | |
| return v; | |
| } |
| git log --pretty=oneline --abbrev-commit | awk '{print length() "\t" $1 }' | sort -rn | head -n 10 |
| require "spec_helper" | |
| NATION = "my-nation" | |
| EMAIL = "[email protected]" | |
| PASSWORD = "Password1" | |
| TAG_PATTERNS_TO_DELETE = [ | |
| /^mass_tag_/, | |
| /^valuable_member_/, | |
| ] |
I hereby claim:
To claim this, I am signing this object:
My org buys lots of domains and configure lots of records on AWS. Removing them is a pain though; you have to remove each record set before you can remove the hosted zone. This makes it much more straightforward.
Feel free to use this; but you're on your own. I am not responsible if you break something.
You'll need ruby/ruby-gems and your AWS API credentials.
| "default": { | |
| "statusCode": "200", | |
| "headers": { | |
| "Access-Control-Allow-Origin": { | |
| "type": "string" | |
| } | |
| }, | |
| "responseParameters": { | |
| "method.response.header.Access-Control-Allow-Origin": "'http://CORSdomain.com'" | |
| }, |
| #!/usr/bin/env ruby | |
| require 'optparse' | |
| options = {:subdomain => 'defaultdomain', :port => 3000} | |
| parser = OptionParser.new do|opts| | |
| opts.banner = "Usage: localtunnel [options]" | |
| opts.on('-s', '--subdomain subdomain', 'Subdomain') do |subdomain| | |
| options[:subdomain] = subdomain; |