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
| 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 |
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
| 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 |
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
| 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 |
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
| #!/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): |
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 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 | |
| { |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>canvas test</title> | |
| <style> | |
| #man1 { | |
| width: 100px; | |
| height: 100px; | |
| } | |
| </style> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>canvas test</title> | |
| <style> | |
| #man1 { | |
| background-image: url(man1.png); | |
| width: 100px; | |
| height: 100px; | |
| } |
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
| <html> | |
| <head> | |
| <style> | |
| ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .first, .second, .third{ | |
| width:100px; |
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
| <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; | |
| } |
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
| 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 | |