This file contains hidden or 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
# A small python snippet to parse identi.ca replies for a particular user..in this case, it is HJ91 | |
# (c) 26 April 2011, Harshad Joshi | |
import urllib2 | |
import feedparser | |
a=urllib2.urlopen("http://identi.ca/api/statuses/mentions/hj91.rss") | |
b=feedparser.parse(a) | |
for i in range(len(b.entries)): |
This file contains hidden or 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
# This code is meant to show how to get latest notifications on sms using python-gammu library | |
# Very simple and primitive code.. | |
# To Do - Create a mysql backend and run this program every 10 minutes. The notifications sent before shoudent be sent on sms again (i need someone to write code for that ;) | |
import feedparser | |
import gammu | |
import urllib2 | |
import gammu | |
sm = gammu.StateMachine() |
This file contains hidden or 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 | |
# * coding: utf-8 * | |
# (c) Harshad Joshi, 2011 | |
# Post on identi.ca using CLI | |
import json, urllib2 | |
from urllib import urlencode | |
import sys,feedparser |
This file contains hidden or 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 feedparser,urllib2 | |
#this is my user id..it will be different for you | |
a=urllib2.urlopen("http://identi.ca/api/statusnet/app/subscriptions/32987.atom") | |
b=feedparser.parse(a) | |
c=[] | |
for i in b.entries: | |
print i.title,i.id |
This file contains hidden or 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 | |
# * coding: utf-8 * | |
# (c) Harshad Joshi, 2011 | |
# http://identi.ca/hj91 | |
import json, urllib2 | |
from urllib import urlencode | |
import sys,feedparser | |
This file contains hidden or 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 | |
# * coding: utf-8 * | |
# (c) Harshad Joshi, 18 Jul 2011 | |
# Little refactoring done | |
# ToDo | |
# Give it some error and exception handling and make it as versatile as it can become. | |
import json, urllib2 | |
from urllib import urlencode | |
import sys,feedparser |
This file contains hidden or 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 | |
#(c) Harshad Joshi, 2011 | |
#firewalrus [AT] gmail DOT com | |
import sys | |
import tweepy | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' |
This file contains hidden or 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
10 REM | |
20 PLAY "CDGFABC" | |
30 END |
This file contains hidden or 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
' Q B a s i c G o r i l l a s | |
' | |
' Copyright (C) IBM Corporation 1991 | |
' | |
' Your mission is to hit your opponent with the exploding banana |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/time.h> | |
#include <sys/param.h> | |
#include <sys/ioctl.h> | |
#ifndef __USE_BSD | |
#define __USE_BSD |
OlderNewer