This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import FactoryGuy, {manualSetup} from 'ember-data-factory-guy'; | |
export default Ember.Controller.extend({ | |
data: { fg: FactoryGuy, | |
text: 'Single child node (has tooltip)', | |
type: 'single-child', | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
init() { | |
this._super(...arguments); | |
let store = this.store; | |
console.log('HE', store.modelFor('car')) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
scrollLeft: null, | |
scrollTop: null, | |
actions: { | |
scrollChange(scrollLeft, scrollTop) { | |
this.set('scrollLeft', scrollLeft); | |
this.set('scrollTop', scrollTop); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y upgrade | |
# libxml2-dev libxslt1-dev are for nokogiri | |
apt-get -y install build-essential g++ libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev | |
apt-get -y install autoconf curl git-core bzip2 | |
apt-get -y autoremove | |
apt-get -y clean | |
cd /usr/local/src | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe Mongoid::Relations::Embedded::Many do | |
class Chef | |
include Mongoid::Document | |
embeds_many :menus | |
field :name | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Event < ActiveRecord::Base | |
belongs_to :business | |
serialize :schedule | |
EVENT = 0 | |
SPECIAL = 1 | |
ANNOUNCEMENT = 2 | |
attr_writer :start_date, :start_time_hour, :start_time_minute, | |
:start_time_am_pm,:end_date, :end_time_hour, :end_time_minute, |
NewerOlder