Skip to content

Instantly share code, notes, and snippets.

View leachim6's full-sized avatar

Mike Donaghy leachim6

View GitHub Profile
#!/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
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
from django.db import models
from django.contrib import admin
POST_TYPES = (
('A', 'Audio'),
('V', 'Video'),
('U', 'URL'),
('Q', 'Quote'),
('I', 'Image'),
)
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... * # #
+ *
+ # # # # # * * # * * # #
+ *
+ # # # # # * * # * * * *
+ *
<?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">
#!/usr/bin/env python
import web
import mpd
urls = (
'/(.*)', 'index'
)
class index:
#!/usr/bin/env python
import web
import mpd
urls = (
'/(.*)', 'index'
)
class index:
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;
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)
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)