Skip to content

Instantly share code, notes, and snippets.

$ emerge -pv rxvt-unicode
These are the packages that would be merged, in order:
Calculating dependencies \
!!! Problem resolving dependencies for x11-terms/rxvt-unicode
... done!
!!! The ebuild selected to satisfy "rxvt-unicode" has unmet requirements.
\begin[h!]{figure}
\centering
\includegraphics[scale=0.4]{unnamed.png}
\captionof{figure}{Test}
\end{figure}
if re.match('^[0-9\.]*$', sys.argv[1], re.I):
key = ''
xmlsauce = 'http://api.ipinfodb.com/v3/ip-city/?key=' + key + '&ip=' + sys.argv[1] + '&format=xml'
parser = BeautifulSoup(urllib.urlopen(xmlsauce), features = 'xml')
if parser.statusCode.text == 'OK':
data = dict({'ccode': parser.countryCode.text, 'country':parser.countryName.text,
'region':parser.regionName.text, 'city': parser.cityName.text, 'zipcode':parser.zipCode.text,
'time':parser.timeZone.text})
* Blizz (~Blizz@68.48.171.204) has joined #ausgather
<Blizz> i just want to let you all know
<Blizz> potatoe is super homosexual
<Blizz> he tried to hit on me
<Blizz> and offered me cyber anal sex through query :S
<potatoe> ^
<potatoe> we did it too
<Blizz> <potatoe> you want to fuck pls?
<Blizz> pls warn him, i am scared
… … … … … … … … … … … … … … … … …,---,
… … … … … … … … … … … … … … … .,--""'… /
… … … … … … … … … … … … … … ..,-'… … ..|
… … … … … … … … … … … … … …,-'"… …,-----'"""'-,
… … … … … … … … … … … … … ..,-'… … … … ,--'"'
… … … … … … … … … … … .,-'-,… /,,,,… … .'"'"~~--,,
… … … … … … … … … … …,-'../,-'"''/'"-,,''-,,,,,,------~~""
… … … … … … … … ..,---~'"''/… … .''...,--"'"'"--,… … ,-'"'-,
… … … … … … ..,-,..,-'"… …/… … .,-~"… … …'--,,../… ..\
… … … … … ..,--,|..\-"… .,…/… .,-~"… … … … … ..\… … \… … … ..,,,,,,
def parse_for_channel(self, row):
out = ''
for i in row:
if(i):
out += i[3] + ' ' + i[4].replace('http://', 'www.') + ' (' + str(i[6]) + ') '
# www. to make it clickable in many clients
return out
#include <stdio.h>
#include <math.h>
int main(int argc, char** argv){
int a = atoi(argv[1]);
int b = atoi(argv[2]);
int c = ((a+b)-abs(a-b))/2;
printf("%d %d %d", a, b, c);
return 0;
}
for module in c.get('modules', 'modules').split(','):
try:
__import__("modules." + module.strip())
except ImportError:
print "No module named modules.%s found." % (module.strip())
@spaghetti-
spaghetti- / gist:3330606
Created August 12, 2012 08:05
stoned idiot talking to cleverbot
15:52 * CleverBot Getting a starter message from CleverBot
15:52 * CleverBot CleverBot replied, connecting to Omegle.
15:52 * Omegle Connected to Omegle [shard3:2wl00txmhdgwgknimu65lzim2gfzih, http://ferengi.omegle.com/]
15:52 * Omegle found a partner.
15:52 < CleverBot> I know you.
15:52 <&Omegle> thank god
15:52 < CleverBot> I know.
15:52 <&Omegle> who am i
15:52 < CleverBot> I boy how is 14.
15:52 <&Omegle> i just woke
@spaghetti-
spaghetti- / gist:3388026
Created August 18, 2012 16:08
simplest of makefiles
CC=gcc
CFLAGS=-Wall
BIN=alice
SRC=$(wildcard src/*.c)
all:
$(CC) $(CFLAGS) $(SRC) -o $(BIN)
clean:
rm $(BIN)