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
<html> | |
<head> | |
<title>Identi.ca » Real-Timeline</title> | |
<!--jQuery--> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> | |
<!--Main Script--> | |
<script> |
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 | |
/** | |
* ppaste - Quick paste pictures anytime anywhere | |
* | |
* @author Bela Hausmann <post@belahausmann.name> | |
* @link http://bitbucket.org/and3k/ppaste/ | |
* @version 1.0_rc1 | |
* @copyright Copyright (c) 2009 Bela Hausmann, see README | |
* @license http://opensource.org/licenses/agpl-v3.html GNU Affero General Public License version 3 | |
*/ |
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 | |
if(!@$PPASTE) die("Access Denied!"); | |
$PPASTE_VERSION = '0.1_rc1'; | |
$PPASTE_UPLOAD_DIR = 'p/'; | |
$PPASTE_UPLOAD_URL = 'p/'; | |
$PPASTE_CODE_LENGTH = 8; | |
$PPASTE_SHOW_TAIL = true; | |
$PPASTE_SHOW_FILETYPES = true; |
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
__license__ = """ | |
Sonata, an elegant GTK+ client for the Music Player Daemon | |
Copyright 2006-2008 Scott Horowitz <stonecrest@gmail.com> | |
This file is part of Sonata. | |
Sonata is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3 of the License, or |
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 | |
## MegaHAL XMPP bot version 0.1 | |
## | |
## Copyright (C) 2009 Shashi Gowda <connect2shashi@gmail.com> | |
## | |
## (Most part of the code in this file is derived from jabber-logger.py) | |
## This program is free software; you can redistribute it and/or modify | |
## it under the terms of the MIT Lisence |
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/python | |
# IRC Logger. | |
# By Shashi Gowda <http://identi.ca/shashi>. | |
import sys | |
import socket | |
import time | |
import os |
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
# Ugly hack for LyricWiki API. | |
# Steps: | |
# Open /usr/lib/python2.6/site-packages/sonata/info.py | |
# (python2.5, or any proper version should be substituted) | |
# Search for: | |
# "lyrics = self.lyricServer.getSong" | |
# Add this in the next line: | |
lyrics = urllib.urlopen("http://lyricwiki.org/"+self.lyricwiki_format(search_artist)+":"+self.lyricwiki_format(search_title)).read().split("<div class='lyricbox' >")[1].split("</div>")[0].replace('<br />',"\n") |
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
#include<stdio.h> | |
#include<string.h> | |
void main () { | |
int t, k[10],i,z,len[0]; | |
char s[10][50]; | |
scanf("%d",&t); | |
for(i=0;i<=t-1;i++){ | |
scanf("%s",&s[i]); scanf("%d",&k[i]); | |
} | |
// k-errorpairedcode should be found for each string |
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
# Script to get all xkcd comic pics | |
import urllib2 | |
tits={} | |
def zeropad(i): | |
plen=3-len(str(i)) | |
pstr='' | |
j=0 | |
while(j<plen): |
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
#!/bin/sh | |
# Bash dent function. | |
function dent () { | |
curl -s -u user:passwd \ | |
-d status="$1" \ | |
"http://identi.ca/api/statuses/update.xml"; | |
} | |
# Examples: |