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
| ruby -e "require 'rubygems'; require 'open-uri'; require 'rss'; require 'cgi'; puts CGI.unescapeHTML(RSS::Parser.parse(open('http://www.rapquote.com/rss')).items.last.description).gsub('<br/>', \"\\n\").gsub(/<(\\/?)\\w+>/i, '').gsub('“', '\"').gsub('”', '\"').gsub('’', '\'').gsub(' ', ' ')" | cowsay -g | lolcat | |
| _________________________________________ | |
| / "Used to have a crush on Dawn from En \ | |
| | Vogue. | | |
| | | | |
| | It's not like honey dip would wanna get | | |
| | with me, | | |
| | | | |
| | But just in case I own more condoms | | |
| | than TLC." | |
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
| def apply(iprot: TProtocol) = { | |
| var field: TField = null | |
| var message: String = null | |
| var another: Int = 0 | |
| while(true) { | |
| field = iprot.readFieldBegin | |
| if(field.`type` == TType.STOP) { | |
| break | |
| } | |
| field.id match { |
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
| 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 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
| 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 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
| 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 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
| $(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 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 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 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
| /* 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 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
| 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 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
| 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' |