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
var ranges = { | |
'cero': [0, 0], | |
'white': [1, 21], | |
'red': [22, 100]}; | |
var value = 11; | |
for (x in ranges) { | |
if (value >= ranges[x][0] && value <= ranges[x][1]) { | |
console.log(x) | |
break; |
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
/* line 5, /Users/emmanueldelgado/Projects/hybridgroup/gh/app/assets/stylesheets/users.css.scss */ | |
#account-settings { | |
padding: 20px; | |
} | |
/* line 8, /Users/emmanueldelgado/Projects/hybridgroup/gh/app/assets/stylesheets/users.css.scss */ | |
#account-settings .left-column { | |
display: inline; | |
float: left; | |
margin-right: 4px; | |
width: 50px; |
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
# Access USER info without authenticating yourself | |
ruby-1.8.7-p334 :003 > client = Octokit::Client.new(:login => 'clutchapp') | |
=> #<Octokit::Client:0x10514a568 @endpoint="https://github.com/", @user_agent="Octokit Ruby Gem 0.6.3", @format=:json, @adapter=:net_http, @version=2, @oauth_token=nil, @token=nil, @password=nil, @login="clutchapp", @proxy=nil> | |
ruby-1.8.7-p334 :004 > client.user | |
Octokit::Unauthorized: GET https://github.com/api/v2/json/user/show: 401: <#Hashie::Mash error="not authorized"> | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/hybridgroup-octokit-0.6.3/lib/faraday/response/raise_error.rb:11:in `on_complete' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:9:in `call' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:62:in `on_complete' | |
from /Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call' | |
from /Users |
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
undefined local variable or method `class_name' for GitTracker:Class | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/rpm_contrib-2.1.3/lib/rpm_contrib/instrumentation/resque.rb:7:in `around_perform_with_monitoring' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:139:in `send' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:139:in `perform' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `call' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `perform' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-lock-0.1.1/lib/resque/plugins/lock.rb:62:in `around_perform_lock' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `send' | |
/home/ubuntu/.rvm/gems/ruby-1.8.7-p330@clutch/gems/resque-1.17.1/lib/resque/job.rb:135:in `perform' |
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
## My spec | |
context 'when demo user is logged in' do | |
before do | |
@user = User.make | |
login_as @user | |
end | |
it 'should be redirected' do | |
delete '/user/logout', {}, 'rack.session' => {:someval => 123} | |
last_response.status.should == 302 |
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
Octokit::Forbidden | |
Error | |
GET https://github.com/api/v2/json/issues/comments/rails/rails/584: 403: <#Hashie::Mash error=["API Rate Limit Exceeded for xn"]> | |
/app/.bundle/gems/ruby/1.8/gems/hybridgroup-octokit-0.6.3/lib/faraday/response/raise_error.rb:13:in `on_complete' | |
/app/.bundle/gems/ruby/1.8/gems/faraday-0.6.1/lib/faraday/response.rb:9:in `call' | |
/app/.bundle/gems/ruby/1.8/gems/faraday-0.6.1/lib/faraday/response.rb:62:in `on_complete' | |
/app/.bundle/gems/ruby/1.8/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call' | |
/app/.bundle/gems/ruby/1.8/gems/faraday-0.6.1/lib/faraday/request.rb:88:in `run' | |
/app/.bundle/gems/ruby/1.8/gems/faraday-0.6.1/lib/faraday/request.rb:28:in `run' |
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
SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/connection.rb:118:in `request' | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/connection.rb:79:in `get' | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/connection.rb:217:in `with_auth' | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/connection.rb:79:in `get' | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/base.rb:857:in `find_every' | |
/app/.bundle/gems/ruby/1.8/gems/activeresource-3.0.7/lib/active_resource/base.rb:777:in `find' | |
/app/.bundle/gems/ruby/1.8/gems/ticketmaster-kanbanpad-0.3.3/lib/provider/comment.rb:22:in `search' | |
/app/.bundle/gems/ruby/1.8/gems/ticketmaster-kanbanpad-0.3.3/lib/provider/comment.rb:18:in `find_by_attributes' |
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
** [18:00:39 2011-05-08] 2778: resque-1.15.0: Forked 2787 at 1304895639 | |
Tracker '4dc72078cdaa390a01000016', '4dc7207bcdaa390a01000018' failed: wrong number of arguments (2 for 1) | |
/Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/ticketmaster-0.5.6/lib/ticketmaster/common.rb:78:in `respond_to?' | |
/Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/ticketmaster-0.5.6/lib/ticketmaster/common.rb:78:in `respond_to?' | |
/Users/emmanueldelgado/Projects/hybridgroup/clutch/lib/models/ticket.rb:44:in `create_from' | |
/Users/emmanueldelgado/Projects/hybridgroup/clutch/lib/models/tracked_project.rb:88:in `ticket!' | |
/Users/emmanueldelgado/Projects/hybridgroup/clutch/lib/models/ticket_master_tracker.rb:54:in `wiretap!' | |
/Users/emmanueldelgado/Projects/hybridgroup/clutch/lib/models/ticket_master_tracker.rb:51:in `each' | |
/Users/emmanueldelgado/Projects/hybridgroup/clutch/lib/models/ticket_master_tracker.rb:51:in `wiretap!' | |
/Users/emmanueldelgado/.rvm/gems/ruby-1.8.7-p334@clutch/gems/mongo_mapper-0.8.6/lib/mongo_ma |
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
User.ensure_index [[:email, 1], [:login_token, 1]] | |
User.ensure_index :api_key | |
User.ensure_index :updated_at | |
#TrackedProject.ensure_index :updated_at | |
#GitTracker.ensure_index :track_at | |
Project.ensure_index :change_ids | |
# ({:project_id=>BSON::ObjectId('4dc4304f25faf20bcc000002'), | |
# :$or=>[ |
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
rvm 1.9.2@rack-examples --create |