In your Gemfile, change the bwoken line to:
gem 'bwoken', :github => 'bendyworks/bwoken', :branch => 'deprecate_rake'
Then run bundle and try running:
bwoken test
See the flags available with:
| module MyApplication | |
| class Application < Rails::Application | |
| config.cache_store = :memory_store, {:size => 4.megabytes} | |
| end | |
| end |
In your Gemfile, change the bwoken line to:
gem 'bwoken', :github => 'bendyworks/bwoken', :branch => 'deprecate_rake'
Then run bundle and try running:
bwoken test
See the flags available with:
| $('.discussion-bubble').filter(function() { | |
| var body = $(this).find('.comment-body').text().trim(); | |
| return body === "+1" || | |
| body === '' && $(this).find('.comment-body img.emoji[title=":+1:"]').length > 0; | |
| }).each(function() { | |
| $(this).find('.comment-content').remove().end(). | |
| find('.comment-header-action-text a').html("+1'ed"); | |
| }); |
| func composeAndApply<T>(funcs: (T -> T)[], val: T) -> T { | |
| return funcs.reduce(val, combine: { (memo, aFunc) in aFunc(memo) }) | |
| } | |
| func square(val: Int) -> Int { | |
| return val * val | |
| } | |
| func double(val: Int) -> Int { | |
| return val * 2 |
| class Mutator { | |
| var mutated: Bool | |
| init() { | |
| mutated = false | |
| } | |
| func mutate() { | |
| mutated = true | |
| } | |
| } |
| # Exactly 140 characters! :) | |
| # We rescue StandardError and re-raise a RuntimeError | |
| # because that's nicer than getting NoMethodError or TypeError | |
| def play a, b | |
| t = %w(scissors paper rock lizard spock) | |
| ['tie', b, a, b, a][(t.index(a)-t.index(b)) % 5] | |
| rescue StandardError | |
| raise 'invalid' | |
| end |
| func unwrap<T>(wrapped: T?) throws -> T { | |
| guard let unwrapped = wrapped else { | |
| throw NSError(domain: "custom", code: 1, userInfo: nil) | |
| } | |
| return unwrapped | |
| } |
| // | |
| // Glob.swift | |
| // | |
| // Created by Brad Grzesiak on 6/25/15. | |
| // Copyright © 2015 Bendyworks Inc. | |
| // Released under the Apache v2 License. | |
| // | |
| import Foundation |
I hereby claim:
To claim this, I am signing this object: