I hereby claim:
- I am dandorman on github.
- I am dandorman (https://keybase.io/dandorman) on keybase.
- I have a public key ASD7AYlqEB-6ty7h79xKGLDMRKAeee586Fqhi7EPOZr7YAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| braces = /\A([^(){}\[\]<>]*)(\((\g<1>\g<2>*\g<1>)\)|\{\g<3>\}|\[\g<3>\]|<\g<3>>)*\g<1>\z/ |
| // ---- | |
| // Sass (v3.4.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| .btn { | |
| font-weight: bold; | |
| &:focus { | |
| font-style: italic; | |
| } |
| module Enumerable | |
| def map_into(callable, *args) | |
| map { |value| | |
| value, args = yield(value, *args) if block_given? | |
| callable.call value, *args | |
| } | |
| end | |
| end | |
| require "uri" |
| BLURGH = "outer blurgh" | |
| module Foo | |
| BLURGH = "foo blurgh" | |
| class Bar | |
| def blurgh | |
| BLURGH | |
| end | |
| end |
| var Route = React.createClass({ /* magic */ }); // not necessary, handled my Routed's magic | |
| var Link = React.createClass({ /* magic */ }); | |
| var Routed = { /* magic */ }; | |
| var App = React.createClass({ | |
| mixins: [Routed], | |
| render: function() { | |
| return ( | |
| <Root path="/"> |
| #!/bin/sh | |
| # | |
| # Compile health-tracking javascript if necessary. | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
| require 'erb' | |
| def interpolate(template, values = {}) | |
| template.gsub(/\{\{(.+?)\}\}/) { |token| values.fetch($1) { ERB.new("<%= #{token} %>").result(binding) } } | |
| end |
| require 'minitest/autorun' | |
| class EmptyArray | |
| def self.new | |
| @instance ||= super | |
| end | |
| private :initialize | |
| def method_missing(*args, &block) |
| require 'spec_helper' | |
| describe FeaturePool do | |
| it "creates a new instance given valid attributes" do | |
| Fabricate :feature_pool | |
| end | |
| it "is not valid without a name" do | |
| Fabricate.build(:feature_pool, :name => "").should_not be_valid | |
| end |