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
package com.twitter.scrooge | |
import org.apache.thrift.protocol._ | |
/** | |
* Autogenerated by Thrift | |
* | |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | |
*/ |
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
package com.twitter.node_registry | |
import scala.collection._ | |
import com.twitter.json.Json | |
import com.twitter.zookeeper.ZooKeeperClient | |
import net.lag.logging.Logger | |
import org.apache.zookeeper.Watcher.Event.KeeperState | |
import org.apache.zookeeper.{CreateMode, KeeperException, WatchedEvent} | |
trait Serializer { |
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 setup_sightings_for_rollup | |
timespans = [ # [start_time, end_time, quantity, values] | |
[1.minute.ago, Time.now, 250, [1]], | |
[1.hour.ago, 1.minute.ago, 5000, [1]], | |
[1.day.ago, 1.hour.ago, 1500, [1, 2]], | |
[1.week.ago, 1.day.ago, 1000, [1, 2]], | |
[3.weeks.ago, 1.week.ago, 500, [1, 2]] | |
] | |
cities = { # city => divisor (for quantity) | |
'Atlanta' => 1, |
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
$(function() { | |
$("a#portfolio_link_1").click(function() { | |
$("div#portfolio_float_1").fadeIn(); | |
return false; | |
}) | |
$("a#portfolio_link_2").click(function() { | |
$("div#portfolio_float_2").fadeIn(); | |
return false; | |
}) | |
$("a#portfolio_link_3").click(function() { |
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
class StringHolder | |
def initialize(a_string) | |
@the_string = a_string | |
end | |
def get_that_string | |
puts @the_string | |
end | |
def self.stupid_method(a_string) |
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
/* GLOBAL */ | |
* { margin: 0; } | |
.clearboth { clear: both; } | |
a:link, a:visited { text-decoration: none; font-family: arial; color: #ff3300; } | |
img { border: 0; } | |
body { | |
font-family: arial; | |
font-size: 11pt; |
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
diff --git a/public/stylesheets/styles.css b/public/stylesheets/styles.css | |
index 675dc8e..cef4fb0 100755 | |
--- a/public/stylesheets/styles.css | |
+++ b/public/stylesheets/styles.css | |
@@ -299,8 +299,8 @@ h3 { font-size: 18pt; } | |
float: right; | |
} | |
#place_top_1, #place_top_2, #place_top_3 { float: left; padding-bottom: 20px; } | |
-#place_top_1 { width: 58px; margin-right: 15px; } | |
-#place_top_2 { width: 277px; margin-right: 15px; font-size: 9pt; } |
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
ooga@placepop1 ~ $ sudo su -l ooga -c 'RAILS_ENV=production /usr/bin/rake -f /u/app/current/Rakefile --trace notifications:24hour' | |
(in /home/ooga) | |
** Invoke notifications:24hour (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute notifications:24hour | |
rake aborted! | |
can't convert nil into String | |
/u/app/releases/20090707220916/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb:551:in `quote' | |
/u/app/releases/20090707220916/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb:551:in `read_multipart' |
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
[~] $ rip install haml | |
Searching gems.github.com for haml... | |
ERROR: Could not find haml in any repository | |
Searching gems.rubyforge.org for haml... | |
running install hook for haml | |
Successfully installed haml (2.0.9) | |
[~] $ integrity launch | |
/Users/imownbey/.rip/active/lib/haml/version.rb:11:in `read': No such file or directory - /Users/imownbey/.rip/active/VERSION (Errno::ENOENT) | |
from /Users/imownbey/.rip/active/lib/haml/version.rb:11:in `version' | |
from /Users/imownbey/.rip/active/lib/haml.rb:1004 |
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
[~/src/rip] master $ integrity launch | |
/Users/imownbey/.rip/active/lib/integrity: Is a directory - /Users/imownbey/.rip/active/lib/integrity (Errno::EISDIR) | |
from /usr/local/bin/integrity:19:in `load' | |
from /usr/local/bin/integrity:19 |