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
#!/usr/bin/env python | |
import mpd # Import MPD Library | |
import pyosd # Import OSD Library | |
import time # Import Internal Time Module | |
client = mpd.MPDClient() # Init MPD Client | |
client.connect("localhost", 6600) # Connect to local MPD Server | |
cs = client.currentsong() # Get the currentsong dict | |
if 'title' in cs: # Check to see if "title" title exists in the dict |
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
drwxr-xr-x 21 leachim6 leachim6 4096 2008-07-25 20:58 . | |
drwxr-xr-x 27 leachim6 leachim6 4096 2008-07-21 23:20 .. | |
drwxr-xr-x 2 leachim6 leachim6 4096 2008-07-25 20:58 a | |
-rw-r--r-- 1 leachim6 leachim6 100 2008-05-03 08:01 ada.ada | |
-rw-r--r-- 1 leachim6 leachim6 53 2008-05-03 08:01 apc.apc | |
-rw-r--r-- 1 leachim6 leachim6 31 2008-05-03 08:01 applescript.scpt | |
-rw-r--r-- 1 leachim6 leachim6 47 2008-05-03 08:01 awk.awk | |
drwxr-xr-x 2 leachim6 leachim6 4096 2008-07-25 20:58 b | |
-rw-r--r-- 1 leachim6 leachim6 33 2008-07-25 20:27 bash.sh | |
-rw-r--r-- 1 leachim6 leachim6 27 2008-07-25 20:27 befunge.be |
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
from django.db import models | |
from django.contrib import admin | |
POST_TYPES = ( | |
('A', 'Audio'), | |
('V', 'Video'), | |
('U', 'URL'), | |
('Q', 'Quote'), | |
('I', 'Image'), | |
) |
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
Hello #World #in #Whitespace * # # * # # # | |
+ *[Space] | |
+ #is #marked #with"#" # #[tab] #with"*" *line-feed #with #"+" * # *so | |
+it #would | |
+be #easier #to #write #again... #All *the *non-whitespace-characters #are *ignored... * # # | |
+ * | |
+ # # # # # * * # * * # # | |
+ * | |
+ # # # # # * * # * * * * | |
+ * |
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
<?php | |
$filename = "data.txt"; | |
$whattoread = @fopen($filename, "r"); | |
$file_cnt = fread($whattoread, filesize($filename)); | |
$msg = "$file_cnt"; | |
fclose($whattoread); | |
?> | |
<html> | |
<head> | |
<meta http-equiv="refresh" content="7"> |
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
#!/usr/bin/env python | |
import web | |
import mpd | |
urls = ( | |
'/(.*)', 'index' | |
) | |
class index: |
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
#!/usr/bin/env python | |
import web | |
import mpd | |
urls = ( | |
'/(.*)', 'index' | |
) | |
class index: |
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
use WWW::Facebook::API; | |
use Data::Dumper; | |
my $client = WWW::Facebook::API->new( | |
desktop => 1, | |
api_key => 'api.key', | |
secret => 'api.secret', | |
); | |
$client->auth->get_session; |
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
from django.views.generic.list_detail import object_list | |
from djournell.notes.models import * | |
from django import newforms as forms | |
from django.newforms import form_for_instance | |
from django.shortcuts import * | |
from django.template import RequestContext | |
from django.http import HttpResponseRedirect | |
def notes_for_course(request, course_slug): | |
course = Courses.objects.get(slug=course_slug) |
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
from django.views.generic.list_detail import object_list | |
from djournell.notes.models import * | |
from django import newforms as forms | |
from django.newforms import form_for_instance | |
from django.shortcuts import * | |
from django.template import RequestContext | |
from django.http import HttpResponseRedirect | |
def notes_for_course(request, course_slug): | |
course = Courses.objects.get(slug=course_slug) |
OlderNewer