I hereby claim:
- I am omghax on github.
- I am draylacy (https://keybase.io/draylacy) on keybase.
- I have a public key whose fingerprint is 2EC2 6761 8CA5 B64D 3306 D1BA C31B 71C6 8ED5 C150
To claim this, I am signing this object:
import Component from 'ember-component'; | |
import { StyleSheet } from 'aphrodite'; | |
export default Component.extend({ | |
styles: StyleSheet.create({ | |
red: { | |
backgroundColor: 'red' | |
}, | |
blue: { |
I hereby claim:
To claim this, I am signing this object:
def self.text_search(query) | |
if query.present? | |
fulltext_columns = ['vechicles.make', 'vehicles.model'] | |
fulltext_columns += columns.select do |col| | |
col.type == :string || col.type == :text | |
end.collect do |col| | |
"lot_vehicles.#{col.name}" | |
end | |
conditions = fulltext_columns.collect { |col| "#{col} @@ :q" }.join(' OR ') | |
joins(:vehicle).where(conditions, :q => query) |
require 'active_support/json' | |
module Visitor | |
DISPATCH = Hash.new do |hash, klass| | |
hash[klass] = "visit_#{klass.name.gsub('::', '__')}" | |
end | |
def visit(object, options={}) | |
send(DISPATCH[object.class], object, options) | |
rescue NoMethodError |
require 'cgi' | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
require 'ostruct' | |
class DonorsChoose | |
def initialize(api_key) | |
@api_key = api_key | |
end |
config :app, :required => ['sproutcore', 'sproutcore/experimental/split_view'] |
#!/usr/bin/ruby | |
require 'fileutils' | |
require 'pathname' | |
account = ARGV.first | |
unless account | |
puts "Usage: #{File.basename(__FILE__)} <account>" | |
exit(1) | |
end |
MyApp.ItemsListView = SC.TemplateCollectionView.extend( | |
/** @scope MyApp.ItemsListView.prototype */ { | |
itemView: SC.TemplateView.extend({ | |
tagsBinding: '.content.tags', // SC.ManyArray | |
tagNames: function() { | |
var tags = this.get('tags'); | |
if (tags) return tags.mapProperty('name').join(', '); | |
}.property('tags.@each.name').cacheable() | |
}) |