Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit a753915d645ed52e7d5b091683272de2378c5cd3 1 parent e7f5afe
@scottjacksonx authored
View
18 hu-notes.txt
@@ -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.
View
BIN  hu_currentlyplaying/__init__.pyc
Binary file not shown
View
BIN  hu_currentlyplaying/hu_currentlyplaying.pyc
Binary file not shown
View
BIN  hu_googleweather/__init__.pyc
Binary file not shown
View
BIN  hu_googleweather/hu_googleweather.pyc
Binary file not shown
View
BIN  hu_googleweather/pywapi.pyc
Binary file not shown
View
BIN  hu_lastfm/__init__.pyc
Binary file not shown
View
2  hu_lastfm/hu_lastfm.py
@@ -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
BIN  hu_lastfm/hu_lastfm.pyc
Binary file not shown
View
BIN  hu_lastfm/pylast.pyc
Binary file not shown
View
BIN  hu_openapps/__init__.pyc
Binary file not shown
View
BIN  hu_openapps/hu_openapps.pyc
Binary file not shown
View
BIN  hu_openbrowsertabs/__init__.pyc
Binary file not shown
View
BIN  hu_openbrowsertabs/hu_openbrowsertabs.pyc
Binary file not shown
View
BIN  hu_ssidname/__init__.pyc
Binary file not shown
View
2  hu_ssidname/hu_ssidname.py
@@ -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
BIN  hu_ssidname/hu_ssidname.pyc
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.