This file contains 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
MagicInput = React.createClass | |
onChange: (e) -> | |
state = @props.binding[0].state | |
Sonar.changeByArray state, @path, e.target.value | |
@props.binding[0].setState state | |
getValue: -> | |
value = @props.binding[0].state | |
@path ||= @props.binding[1].split('.') |
This file contains 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 'pry' | |
require 'pry-nav' | |
#CODE IS "RailsSchoolDevelop14" | |
phones = { | |
michael: '+1415PUTREALNUMBER' | |
} | |
require 'twilio-ruby' |
This file contains 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' | |
require 'pry' | |
require 'pry-nav' | |
include Warden::Test::Helpers | |
feature 'Propack Order', :js => true do | |
background do | |
user = Factory.create(:user) | |
login_as(user, :scope => :user) |
This file contains 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" | |
puts "Hello, world!" | |
feature %q{ | |
As a user | |
I want to be able to create | |
New Meetings | |
} do |
This file contains 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 'foursquare2' | |
require 'pry' | |
require 'pry-nav' | |
require 'colorize' | |
client = Foursquare2::Client.new(:client_id => 'the key', :client_secret => 'the key') | |
This file contains 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
def new_lined(text) | |
13.chr + 10.chr + text + 13.chr + 10.chr | |
end | |
posts = Post.all | |
posts.each do |p| | |
puts "Post.create(:title => '#{p.title}', :posted_on => '#{p.posted_on}' :author_id => '#{p.author_id}', :created_at => '#{p.created_at}', :updated_at => '#{p.updated_at}', :body => <<EOF"+new_lined(p.body)+"EOF)" | |
end |
This file contains 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 'twitter' | |
require 'google_translate' | |
# We using credentials of "Rails School" twitter account | |
Twitter.configure do |config| | |
# credentials here! | |
end | |
# for translator |
NewerOlder