Public Gists by xor0x35

Gravatar
Mon Apr 06 00:48:52 -0700 2009
1
2
3
#!/usr/bin/env python
# coding: utf-8
class FileWrapper(file):
Gravatar
Sun Apr 05 06:47:08 -0700 2009
1
2
3
#!/usr/bin/env python
# coding: utf-8
# basE91 encoding/decoding class
Gravatar
Tue Mar 31 23:01:43 -0700 2009
1
2
3
#!/usr/bin/env python
# coding: utf-8
import sys
Gravatar
Fri Mar 27 14:57:39 -0700 2009
1
2
3
#!/usr/bin/env python
# coding: utf-8
# Boyer-Moore法による文字列探索
Gravatar
Fri Mar 20 22:17:49 -0700 2009
1
2
3
#include <stdio.h>
#define TAB_STOP 8
int main(){
gist: 80344 任意の機械語列の実行
Gravatar
Mon Mar 16 23:16:28 -0700 2009
1
2
3
#include <stdio.h>
#include <windows.h>
 
Gravatar
Sat Mar 14 14:18:44 -0700 2009
1
2
3
#include <stdio.h>
int main (void)
{
Gravatar
Wed Mar 11 21:37:36 -0700 2009
1
2
3
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://saqoosha.net/lab/btiphone.html"><div style="margin:-1px -1px 0;padding:0;border:1px solid #999;background:#fff"><div style="margin:12px;padding:8px;border:1px solid #999;background:#ddd;font:13px arial,sans-serif;color:#000;font-weight:normal;text-align:left">これは Google に保存されている <a href="http://saqoosha.net/lab/btiphone.html" style="text-decoration:underline;color:#00c">http://saqoosha.net/lab/btiphone.html</a> のキャッシュです。 このページは 2009年3月11日 14:53:55 GMT に取得されたものです。 そのため、<a href="http://saqoosha.net/lab/btiphone.html" style="text-decoration:underline;color:#00c">このページの最新版</a>でない場合があります。 <a href="http://www.google.com/intl/ja/help/features_list.html#cached" style="text-decoration:underline;color:#00c">詳細</a><br><br><div style="float:right"><a href="http://72.14.235.132/search?q=cache:http://saqoosha.net/lab/btiphone.html&amp;hl=ja&amp;lr=lang_ja&amp;client=firefox-a&amp;rls=org.mozilla:ja:official&amp;hs=wWx&strip=1" style="text-decoration:underline;color:#00c">テキストのみのバージョン</a></div>
<div>&nbsp;</div></div></div><div style="position:relative">
Gravatar
Tue Mar 10 00:11:53 -0700 2009
1
2
3
#!/usr/bin/env python
class FizzBuzz(int):
def __add__(self, other):
Gravatar
Sat Feb 21 01:13:16 -0800 2009
1
javascript:window.open('http://b.hatena.ne.jp/add?mode=confirm&is_bm=1&title='+escape(document.title)+'&url='+escape(location.href), '_blank', 'width=550,height=600,resizable=1,scrollbars=1');undefined;
Gravatar
Sun Feb 15 02:08:26 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Sat Feb 14 16:29:10 -0800 2009
1
2
3
#!/usr/bin/env python
# coding: shift-jis
# python -i MyShell.py
gist: 64109 Twitter Watcher
Gravatar
Fri Feb 13 13:32:53 -0800 2009
1
2
3
#!/usr/bin/env python
# coding: shift-jis
import twitter
Gravatar
Fri Feb 13 02:19:17 -0800 2009
1
2
3
#!/usr/bin/python
#
# Copyright 2007 Google Inc. All Rights Reserved.
Gravatar
Fri Feb 13 01:56:28 -0800 2009
1
2
3
>>> hoge={'a','b','c'}
>>> fuga={'b','c','d'}
>>> hoge-fuga
Gravatar
Fri Feb 13 01:21:55 -0800 2009
1
2
3
#!/usr/bin/env python
class VariableSizeArray(list):
init_value = None
Gravatar
Thu Feb 05 19:06:57 -0800 2009
1
2
3
class Stack(list):
    def __init__(self, value=None):
        if not value:
Gravatar
Tue Jan 27 13:04:53 -0800 2009
1
2
3
nodes = urllib.urlopen("http://nynode.hp.infoseek.co.jp/2071/Noderef.txt")
nodes = nodes.read()
nodes = nodes.splitlines()
Gravatar
Tue Jan 27 02:26:23 -0800 2009
1
2
3
#!/usr/bin/env python
# coding: shift-jis
# Arcfour
Gravatar
Sat Jan 10 01:45:03 -0800 2009
1
2
3
http://www.pythonchallenge.com/pc/def/0.html
>>> 2**38
274877906944