I hereby claim:
- I am emerson on github.
- I am emerson (https://keybase.io/emerson) on keybase.
- I have a public key ASAZOcyWjU61HeiLF04Ox2ffn7uFqXPh2nG6oP0esJ_xZAo
To claim this, I am signing this object:
| <p>blah blah content blah blah - this is shown on the outside</p><!--break--> | |
| <p>inside article content not shown on the front</p> |
| guard 'minitest' do | |
| # with Minitest::Unit | |
| watch(%r|^test/(.*)\/?test_(.*)\.rb|) | |
| watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" } | |
| watch(%r|^test/test_helper\.rb|) { "test" } | |
| # Rails 4 - App Files | |
| watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" } | |
| watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" } |
| module RelationExtensions | |
| extend ActiveSupport::Concern | |
| included do | |
| # -- Constants ------------------------------------------------------------ | |
| # -- Attributes ----------------------------------------------------------- | |
| attr_accessor :relation_identifier, :relation_position | |
| # -- AR Extensions -------------------------------------------------------- |
| { | |
| "directory": "vendor" | |
| } |
| require 'twitter' | |
| class AllTweets | |
| attr_accessor :tweets | |
| def initialize(username, config) | |
| @username = username | |
| @config = config | |
| @tweets = [] |
| account_params = dict( | |
| name = params['company']['name'], | |
| email = params['from'], | |
| first_name = params.get('first_name', 'First'), | |
| last_name = params.get('last_name', 'Last'), | |
| currency_code = params['currency'], | |
| address = dict( | |
| street1 = params['company']['street'], | |
| city = params['company']['city'], | |
| province = params['company']['state'], |
| #!/bin/bash | |
| NC='\033[0m' | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| function assert_success() { | |
| request=`curl -s --head $1` | |
| success=`grep "HTTP/1.1 200 OK" <<< "${request}"` | |
| if [ -z "${success}" ] |
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| tagName: 'input', | |
| type: 'text', | |
| attributeBindings: ['value'], | |
| input(e) { | |
| let val = this.readDOMAttr('value'); | |
| /* | |
| * this.attrs.update(val) |
I hereby claim:
To claim this, I am signing this object:
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| filteredItems: Ember.computed('[email protected]', function() { | |
| return this.get('model').filter(function(item) { | |
| if(item.get('legs') >= 2) { | |
| return item; | |
| } | |
| }) |