Public Gists by nelix

Gravatar
Fri Jul 10 23:06:45 -0700 2009
1
2
3
//Derived from http://people.mozilla.org/~dietrich/ubiquity.js
 
var sources = ["history", "bookmarks", "starred", "tagged", "session"];
Gravatar
Thu Jul 09 12:28:31 -0700 2009
1
2
3
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
Gravatar
Thu Jul 09 12:26:01 -0700 2009
1
2
3
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
Gravatar
Thu Jul 09 12:24:48 -0700 2009
1
2
3
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
Gravatar
Thu Jul 09 12:23:00 -0700 2009
1
2
3
from scrapy import log
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
Gravatar
Tue Jul 07 10:11:43 -0700 2009
1
2
3
// TARGET.pid のファイルを削除で終了
if ( WScript.Count == 0 ) {
WScript.Echo("対象ファイルをD&Dしてください");
Gravatar
Tue Jul 07 10:03:35 -0700 2009
1
2
3
from itty import *
import Queue
import threading
Gravatar
Tue Jul 07 09:40:41 -0700 2009
1
2
3
/*
 * Copyright (c) 2009 Gaute Hope <eg@gaute.vetsj.com>
 * Distributed under the terms of the GNU General Public Licence v2
Gravatar
Sun Jul 05 09:11:58 -0700 2009
1
2
3
#! /usr/bin/env python
from scapy import *
 
Gravatar
Sun Jul 05 05:21:12 -0700 2009
1
2
3
prices = {'apple': 0.40, 'banana': 0.50}
my_purchase = {
    'apple': 1,
Gravatar
Sat Jul 04 21:49:08 -0700 2009
1
2
3
>>> d = {k:v for k,v in enumerate('ABCD') if v not in 'CB'}
>>> print(d)
{0: 'A', 3: 'D'}
Gravatar
Sat Jul 04 18:32:50 -0700 2009
1
2
3
import socket
 
 
Gravatar
Fri Jul 03 08:35:31 -0700 2009
1
2
3
LUAOBJECT_GRAMMAR = %q{
grammar LuaObject
 
Gravatar
Fri Jul 03 08:34:01 -0700 2009
1
2
3
## Function
 traverse("object", obj, function(key, val) {console.log(key, val)});
 
Gravatar
Fri Jul 03 08:33:11 -0700 2009
1
2
3
// 同時実行されてしまう
for (var i:uint = 0; i < len; i++) {
    var loader:URLLoader = new URLLoader();
Gravatar
Thu Jul 02 21:54:33 -0700 2009
1
2
3
 
define ppystack
    while $pc < Py_Main || $pc > Py_GetArgcArgv
Gravatar
Thu Jul 02 07:39:18 -0700 2009
1
scheme, host, path, params, query, fragment = urlparse.urlparse(uri)
Gravatar
Wed Jul 01 21:07:11 -0700 2009
1
2
3
import threading, os, sys, time
 
class autolock(threading._RLock):
Gravatar
Tue Jun 30 22:10:43 -0700 2009
1
2
3
import asyncore, socket
from dns import resolver, rdatatype, rdataclass, message
 
Gravatar
Tue Jun 30 22:09:10 -0700 2009
1
2
3
#!/usr/bin/env python
 
"""