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> | |
/* BEGIN HACKERY */ | |
typedef struct field { | |
enum { | |
TABLE_NAME, | |
TABLE_FIELD, | |
TABLE_TERMINATOR | |
} tag; |
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
# 30 minutes Lisp in Ruby | |
# Hong MinHee <http://dahlia.kr/> | |
# | |
# This Lisp implementation does not provide a s-expression reader. | |
# Instead, it uses Ruby syntax like following code: | |
# | |
# [:def, :factorial, | |
# [:lambda, [:n], | |
# [:if, [:"=", :n, 1], | |
# 1, |
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
/* begin table creation */ | |
create table department | |
(dept_id smallint unsigned not null auto_increment, | |
name varchar(20) not null, | |
constraint pk_department primary key (dept_id) | |
); | |
create table branch | |
(branch_id smallint unsigned not null auto_increment, |
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
(function (a) { | |
a.browserTest = function (e, g) { | |
var f = "unknown", | |
d = "X", | |
b = function (k, j) { | |
for (var c = 0; c < j.length; c = c + 1) { | |
k = k.replace(j[c][0], j[c][1]) | |
} | |
return k | |
}, |
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
import urllib, urllib2 | |
def getsource(pagereq): | |
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' | |
header = {'User-Agent': user_agent} | |
req = urllib2.Request(pagereq, None, header) | |
response = urllib2.urlopen(req) | |
page = response.read() | |
return page | |
NewerOlder