Permalink
Browse files

I wasn't tested before my last push. Whoops.

  • Loading branch information...
scottjacksonx committed Jun 29, 2010
1 parent e7f5afe commit a753915d645ed52e7d5b091683272de2378c5cd3
View
@@ -0,0 +1,18 @@
+<hu>
+<entry time="Tue, 29 Jun 2010 13:04:13">
+<weather location="brisbane,australia" condition="Partly Cloudy" temp="16c"/>
+<ssid name="Simon" />
+<browser>
+<tab title="Stephen King - On Writing (Audiobook) (download torrent) - TPB" url="http://thepiratebay.org/torrent/4238993/Stephen_King_-_On_Writing_(Audiobook)" />
+<tab title="The.Pixar.Story.(2007).TV-RIP-PinkyBrainz.mp4 (download torrent) - TPB" url="http://thepiratebay.org/torrent/4171274/The.Pixar.Story.(2007).TV-RIP-PinkyBrainz.mp4" />
+<tab title="Welcome To Macintosh (2008) (download torrent) - TPB" url="http://thepiratebay.org/torrent/4758559/Welcome_To_Macintosh_(2008)" />
+</browser>
+<applications>
+<app name="Mail" />
+<app name="iTunes" />
+<app name="Terminal" />
+<app name="TextMate" />
+<app name="Safari" />
+</applications>
+</entry>
+</hu>
View
14 hu.py
@@ -31,6 +31,20 @@ class hu:
i hope you like me.
"""
+ def __init__(self):
+ """
+ hello, world.
+
+ this is the part where i find out all of the things you want me to record.
+ """
+ # get current directory
+
+ # get names of all folders in the current directory that start with "hu_", store as folder_name or similar
+
+ # execute 'import ' + $folder_name + '.' $folder_name
+
+ # execute 'plugin_modules.append(' + $folder_name + '.' $folder_name + ')'
+
def takeSnapshot(self):
"""
this is the part where i look at all of the things you want me to record.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -23,7 +23,7 @@ def getData():
if int(track[2]) + 600 > now: # track was played < 10 minutes (600 seconds) ago.
tracksFromLastTenMinutes.append(track)
return xmlify(tracksFromLastTenMinutes)
- else:
+ except:
return ""
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
@@ -5,6 +5,6 @@ def getData():
Returns the name of the SSID of the network the computer is currently connected to.
"""
ssid = commands.getoutput("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I|grep \" SSID: \"|cut -c 18-")
- if ssid != ""
+ if ssid != "":
return "<ssid name=\"" + ssid + "\" />"
return ""
View
Binary file not shown.

0 comments on commit a753915

Please sign in to comment.