Skip to content

Instantly share code, notes, and snippets.

Earthquake.init do
output do |item|
next unless item["_stream"]
if "#{item["text"]}".match(/^@jrgifford/)
notify "#{item["user"]["screen_name"]}: #{item["text"]}"
end
end
end
cd ruby-1.9.2-p180
./configure
make
sudo make install
cd ..
sudo ruby rubygems-1.8.2/setup.rb
cd ..
cd ruby-1.9.2-p180/ext/readline
ruby extconf.rb
make
Earthquake.init do
output do |item|
next unless item["_stream"]
if "#{item["user"]["screen_name"]}"!="leegeorg07"
notify "#{item["user"]["screen_name"]}: #{item["text"]}"
end
end
end
#!/usr/bin/env python3
import math
crimes=[(5,4), (6,3), (5,3), (7,3)]
phi=5
f, g= 2, 2
b=3
a=0
for j in range(10):
for i in range(10):
package PROJECT!;
import android.app.Activity;
import net.unto.twitter.Api;
import net.unto.twitter.TwitterProtos.Status;
import android.os.Bundle;
import android.widget.TextView;
public class inkstorm extends Activity
{
<!doctype html>
<html>
<head>
<title>canvas test</title>
<style>
#man1 {
width: 100px;
height: 100px;
}
</style>
<!doctype html>
<html>
<head>
<title>canvas test</title>
<style>
#man1 {
background-image: url(man1.png);
width: 100px;
height: 100px;
}
<html>
<head>
<style>
ul {
list-style: none;
padding: 0;
margin: 0;
}
.first, .second, .third{
width:100px;
<html><body>
<?php
function best_tweet($user){
$tweet_score=0;
$tweett="";
foreach ($user->tweets as $tweet){
if ($tweet->xp_value>$tweet_score){
$tweett=json_decode(file_get_contents("http://api.twitter.com/1/statuses/show/".$tweet->tweet_id.".json"))->text;
$tweet_score=$tweet->xp_value;
}
@Telltak
Telltak / game.py
Created December 9, 2010 21:31
first go at homework for lpthw ex 35
from sys import exit
items = ["swooping sword", "nutritious nuggets"]
options = ["help", "look around"]
health = 100
def start():
print "You wake up in a room.\nWhat do you do?"
start_options = options