I hereby claim:
- I am jasonroelofs on github.
- I am jasonroelofs (https://keybase.io/jasonroelofs) on keybase.
- I have a public key whose fingerprint is 97E0 6FE4 76E9 6B2E 1C02 03FA 9EB6 09A6 1157 F583
To claim this, I am signing this object:
| ] rake benchmark:run benchmark:strict profile:run profile:strict | |
| ruby ./performance/benchmark.rb lax | |
| Rehearsal ------------------------------------------------ | |
| parse: 4.420000 0.030000 4.450000 ( 4.455098) | |
| parse & run: 9.050000 0.030000 9.080000 ( 9.078304) | |
| -------------------------------------- total: 13.530000sec | |
| user system total real | |
| parse: 4.320000 0.020000 4.340000 ( 4.339127) | |
| parse & run: 8.810000 0.020000 8.830000 ( 8.832378) |
| Ruby 2.1.2 -- Master | |
| $ ruby ./performance/benchmark.rb lax | |
| Rehearsal ------------------------------------------------ | |
| parse: 4.180000 0.030000 4.210000 ( 4.205455) | |
| parse & run: 8.670000 0.010000 8.680000 ( 8.687521) | |
| -------------------------------------- total: 12.890000sec | |
| user system total real | |
| parse: 4.100000 0.020000 4.120000 ( 4.112649) |
| class Something | |
| def | |
| def my_method | |
| puts "I got: #{my_method}" | |
| end | |
| end | |
| s = Something.new | |
| s.def("something") |
I hereby claim:
To claim this, I am signing this object:
| // Using raw java.net.* | |
| URL obj = new URL("https://nosnch.in/[snitch code]?m=[message]"); | |
| HttpURLConnection con = (HttpURLConnection) obj.openConnection(); | |
| con.setRequestMethod("GET"); | |
| con.getResponseCode(); | |
| // Apache HttpComponents http://hc.apache.org/httpcomponents-client-ga/quickstart.html | |
| CloseableHttpClient httpclient = HttpClients.createDefault(); | |
| HttpGet httpGet = new HttpGet("https://nosnch.in/[snitch code]?m=[message]"); | |
| CloseableHttpResponse response1 = httpclient.execute(httpGet); |
| # Ripped from recurly.js | |
| createObject = (o) -> | |
| F = -> | |
| F.prototype = o | |
| return new F() | |
| $ -> | |
| $(".recurly-form").submit (e) -> | |
| e.preventDefault() | |
| $form = $(this) |
| # The ones I've tried (almost all from http://www.awesomecommandlineapps.com/gems.html): | |
| # | |
| # OptParse -- Doesn't support commands | |
| # Commander -- Everything is about procs | |
| # Trollop -- Doesn't support commands | |
| # GLI -- Relies on calling a proc | |
| # Methadone -- See GLI | |
| # Main -- Seems to require the use of a #run method or proc | |
| # Thor -- Focused on running methods, resulting code very difficult to read | |
| # CRI -- Requires #run method or proc (seeing a pattern here...) |
| require 'celluloid' | |
| class TestActor | |
| include Celluloid | |
| def initialize | |
| @handlers = [] | |
| end | |
| def add_handler(&block) |
| class Minitest::Test | |
| alias assert_not_nil refute_nil | |
| alias assert_not refute | |
| end |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| parse_git_dirty () { | |
| if [[ $((git status 2> /dev/null) | tail -n1) = "" ]]; then | |
| echo "" | |
| elif [[ $((git status 2> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]]; then | |
| echo "✗" | |
| else |