Skip to content

Instantly share code, notes, and snippets.

View idlecool's full-sized avatar

Shiv Deepak idlecool

  • Aeroh, Inc.
  • Mountain View, CA
View GitHub Profile
if @profile.availabilities.length == 0
0.upto(6).each {|index| @profile.availabilities.build(:day_number => index)}
end
#!/bin/bash
# Start DHCPD Server
## Should be added to upstart, will do later
dhcpd
## <-- CONFIGURE NETWORK -->
LOCAL_ROUTER="172.16.0.1"
LOCAL_SUBNET="172.16.0.0/24"
LOCAL_INTERFACE="eth0"
Thinkpad T430s i7 3rd Gen, 128GB SSD, 16GB RAM, NVIDIA NVS 5200M 1GB, Free DOS
{"name": "Facebook",
"permalink": "facebook",
"crunchbase_url": "http://www.crunchbase.com/company/facebook",
"homepage_url": "http://facebook.com",
"blog_url": "http://blog.facebook.com",
"blog_feed_url": "http://blog.facebook.com/atom.php",
"twitter_username": "facebook",
"category_code": "web",
"number_of_employees": 1000,
"founded_year": 2004,
f = open('addmul.in', 'r')
lines = f.readlines()
for index in xrange(len(lines)):
tf = open('input'+str(index)+'.txt', 'w')
tf.write(lines[index].strip())
tf.close()
f.close()
% rake db:octopus --trace
rake aborted!
undefined method `announce' for class `Class'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:9:in `singletonclass'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:3:in `extended'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73:in `extend'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/ar-octopus-0.3.4/lib/octopus/migration.rb:73:in `<top (required)>'
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
diff --git a/app/assets/javascripts/backbone/templates/leaderboard.html b/app/assets/javascripts/backbone/templates/leaderboard.html
index 91aa99f..53fc73a 100644
--- a/app/assets/javascripts/backbone/templates/leaderboard.html
+++ b/app/assets/javascripts/backbone/templates/leaderboard.html
@@ -9,84 +9,14 @@
</div>
<% } %>
<section class="leaderboard container">
+ <ul class="breadcrumb unstyled horizontal">
+ <li><li><a href="<%= HR.appController.get_current_namespace() %>/" class="backbone">Challenges</a><i class="icon-right-open-big divider"></i></li></li>
if [ $(nslookup -query=ns sd.gs | grep linode | wc -l) -ne 0 ]
then
if [ ! -f /tmp/sdgsnotified ]
then
echo "Its Live" | mail -s "sd.gs status" idlecool@gmail.com
touch /tmp/sdgsnotified
fi
fi
[2012-12-26 16:02:30] [ruby-1.9.3-p194@railsdev]
idlecool@devbox:/Users/idlecool/Workspace/Projects/rails git:(master) ✗ 0
% bundle
Updating git://github.com/rails/arel.git
Updating git://github.com/brynary/rack-test.git
Updating git://github.com/rails/jquery-rails.git
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/idlecool/.rvm/gems/ruby-1.9.3-p194@railsdev/gems/bundler-1.2.3/lib/bundler.rb:294:in `block in load_gemspec_uncached': invalid byte sequence in US-ASCII (ArgumentError)
from /Users/idlecool/.rvm/gems/ruby-1.9.3-p194@railsdev/gems/bundler-1.2.3/lib/bundler.rb:291:in `chdir'
import random
party = ["a", "b", "c", "d", "e", "f"]
while len(party) != 0:
print party.pop(random.randint(0, len(party) - 1))