I hereby claim:
- I am ravicious on github.
- I am ravicious (https://keybase.io/ravicious) on keybase.
- I have a public key whose fingerprint is 0521 7C74 347E 6D6B 7882 728B FF5B 4F7D 53F3 19D9
To claim this, I am signing this object:
| $ ghci | |
| GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help | |
| Prelude> :t foldl | |
| foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b | |
| $ elm repl | |
| ---- elm-repl 0.17.1 ----------------------------------------------------------- | |
| :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl> | |
| -------------------------------------------------------------------------------- | |
| > List.foldl |
| # ruby reproduction.rb | |
| begin | |
| require 'bundler/inline' | |
| rescue LoadError => e | |
| $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
| raise e | |
| end | |
| gemfile(true) do |
| type alias TimesClicked = Int | |
| type alias Count = Int | |
| updateCount : Msg -> TimesClicked -> TimesClicked | |
| updateCount msg count = | |
| case msg of | |
| Increment -> | |
| if count < maxCount then count + 1 else count | |
| Decrement -> |
I hereby claim:
To claim this, I am signing this object:
| threads = concurrency_level.times.map { |i| | |
| -> { | |
| Thread.new do | |
| begin | |
| customers[i].buy_products([{quantity: 1, product: product}]) | |
| rescue Orders::CreateOrderService::Invalid | |
| fail_occurred = true | |
| end | |
| end | |
| } |
| let Person = (() = > { | |
| let firstNameProperty = Symbol('firstName'), | |
| lastNameProperty = Symbol('lastName'), | |
| renameProperty = Symbol('rename'); | |
| let rename = function(first, last) { | |
| this[firstNameProperty] = first; | |
| this[lastNameProperty] = last; | |
| return this; | |
| } |
| require 'benchmark/ips' | |
| DEFAULT_CHARSET = ('a'..'z').to_a + (0..9).to_a | |
| def random_symbol | |
| charset = ('a'..'z') | |
| random_string(charset).to_sym | |
| end | |
| def random_string(charset = DEFAULT_CHARSET) |
| ; different approaches to constructing handlers in re-frame | |
| ; which one's better? | |
| (register-handler | |
| :cell-clicked | |
| (fn [db _] | |
| (dispatch [:change-cell-owner]) | |
| (dispatch [:change-current-player]))) | |
| (register-handler |
<autogen> rule, as it makes typing uppercased words by holding the shift key a pretty terrible experience.| begin | |
| class_a_instance.do_something | |
| class_b_instance.do_something | |
| rescue A::NotEnoughMoney | |
| log_error | |
| cleanup | |
| rescue B::NotEnoughMoney | |
| just_send_email | |
| end |