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
# -*- coding: utf-8 -*- | |
import logging | |
import urllib | |
import lxml.html | |
log = None | |
list_url = "http://www.comitia.co.jp/history/96list.html" |
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() { | |
var d = true, e = false; | |
try { | |
if (!google.doodle) | |
google.doodle = {}; | |
var f, g, j, | |
k = navigator.userAgent.indexOf("MSIE") >= 0, | |
o = { | |
"logo-blockheads": { | |
k: "blockheads.jpg", |
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
#hplogo { | |
height: 230px; | |
margin: 0 auto; | |
overflow: hidden; | |
position: relative; | |
width: 450px | |
} | |
#logo-blockheads, #logo-blockheads-hold, #logo-goo, #logo-goo-hold, #logo-gumby, #logo-gumby-hold, #logo-gumby-loop, #logo-pokey, #logo-pokey-hold, #logo-prickle, #logo-prickle-hold { | |
cursor: pointer; | |
position: absolute |
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
<div id=hplogo> | |
<div id=logo-gumby-hold></div> | |
<div id=logo-gumby></div> | |
<div id=logo-gumby-loop></div> | |
<div id=logo-blockheads-hold></div> | |
<div id=logo-blockheads></div> | |
<div id=logo-prickle-hold></div> | |
<div id=logo-prickle></div> | |
<div id=logo-goo-hold></div> | |
<div id=logo-goo></div> |
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 socket | |
import re | |
import urllib | |
socket.setdefaulttimeout(5) | |
def get_content(url): | |
try: | |
f = urllib.urlopen(url) | |
except IOError: |
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
# Boot from Live CD | |
root@ubuntu:~# dmesg | grep DMI | |
[ 0.000000] DMI 2.4 present. | |
[ 0.000000] DMI: Apple Inc. MacBookAir1,1/Mac-F42C8CC8, BIOS MBA11.88Z.00BB.B03.0803171226 03/17/08 | |
root@ubuntu:~# mount --bind /dev /mnt/dev | |
root@ubuntu:~# mount --bind /sys /mnt/sys | |
root@ubuntu:~# mount -t proc none /mnt/proc | |
root@ubuntu:~# chroot /mnt /bin/bash |
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
1. disable LP-PPA-gma500-emgd/ubuntu repository | |
2. create /etc/apt/preferences.d/xorg with the following content | |
Package: * | |
Pin: release o=Ubuntu | |
Pin-Priority: 1001 | |
Package: * | |
Pin: release o=LP-PPA-gma500-emgd |
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 transaction | |
from hgwiki import models | |
from hgwiki.security import make_digest | |
default_users = [ | |
("pyramid", "pylons") | |
] | |
def setup(env): |
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
INSTRUCTIONS | |
1. Put web.xml at /usr/share/tomcat6/webapps/jython_xmlrpc/WEB-INF/web.xml | |
2. Put jython.jar and servlet-api-2.4.jar at /usr/share/tomcat6/webapps/jython_xmlrpc/WEB-INF/lib/ | |
3. Put index.wsgi at /usr/share/tomcat6/webapps/jython_xmlrpc/index.wsgi | |
4. Download http://pypi.python.org/pypi/wsgi-xmlrpc/ and unpack, then put wsgi_xmlrpc directory at /usr/share/tomcat6/webapps/jython_xmlrpc | |
5. Restart your tomcat server |
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
Flow analysis | |
============== | |
in compress:: | |
diagram = Base64.encodeURI('\x78\x9c' + RawDeflate.deflate(diagram) + adler32(diagram)); | |
in decompress:: | |
source = Base64.decode(source) |
OlderNewer