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
import requests | |
req = requests.get('http://worldcup.sfg.io/matches') | |
for match in [m for m in req.json() if m['status'] == 'completed']: | |
print match['home_team']['country'], match['home_team']['goals'], 'v', match['away_team']['country'], match['away_team']['goals'] |
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
{ | |
"query": { | |
"count": 1, | |
"created": "2014-04-08T03:29:02Z", | |
"lang": "en-US", | |
"diagnostics": { | |
"publiclyCallable": "true", | |
"url": { | |
"execution-start-time": "1", | |
"execution-stop-time": "368", |
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
ice cats are cold cats |
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
ice cats are cold cats |
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
<h1>To Do</h1> | |
<h2> Add a to do item</h2> | |
<div class='formdiv'> | |
<form class="todo" action="<%= items_url %>" method="post"> | |
<input class="submission" type="text" name="item[name]" size='50'> | |
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>"> | |
<input class="newitem" type="submit" value="New Item"> |
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
sudo rm -rf /usr/share/pulseaudio | |
sudo rm -rf /usr/lib/pulseaudio | |
sudo rm -rf /usr/lib/pulse-2.0 | |
sudo rm /usr/lib/libpulse* | |
wget http://download.raspbmc.com/downloads/bin/pulse-2.1-noX.tar.gz -O /tmp/pulseaudio-2.1-hardfp.tgz | |
cd / | |
sudo tar xzf /tmp/pulseaudio-2.1-hardfp.tgz | |
sudo wget http://svn.stmlabs.com/svn/raspbmc/testing/oscore/lirc/lib/udev/rules.d/30-sound.rules -O /lib/udev/rules.d/30-sound.rules | |
sudo wget http://svn.stmlabs.com/svn/raspbmc/testing/oscore/lirc/lib/udev/set_volume -O /lib/udev/set_volume | |
sudo chmod 755 /lib/udev/set_volume |
NewerOlder