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
<!doctype html> | |
<title>NGTable layout examples</title> | |
<style> | |
h3 { | |
font-size: medium; | |
border-top: 1px solid gray; | |
padding-top: 6px; | |
} | |
table { | |
border: 1px solid black; |
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 re | |
import itertools | |
import gdb | |
from gdb.FrameDecorator import FrameDecorator | |
from gdb.FrameDecorator import SymValueWrapper | |
# | |
# Pretty printing for layoutng | |
# | |
# 1) NGBlockNode -> prints layout_box_->debugName() |
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
exports.randomString = function (len, charSet) { | |
charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
var randomString = ''; | |
for (var i = 0; i < len; i++) { | |
var randomPoz = Math.floor(Math.random() * charSet.length); | |
randomString += charSet.substring(randomPoz,randomPoz+1); | |
} | |
return randomString; | |
}; |
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
// ==UserScript== | |
// @name Palo Alto Library And Amazon | |
// @namespace http://www.totic.org/ | |
// @version 1.0.1 | |
// @description Link Amazon Books to Palo Alto library | |
// @copyright 2012+ [email protected] | |
// @match http://www.amazon.com/* | |
// @match https://www.amazon.com/* | |
// @require http://code.jquery.com/jquery-1.9.1.min.js | |
// ==/UserScript== |
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
#!/usr/bin/python | |
# prerequisite: http://www.exiv2.org/download.html | |
import sys | |
import os.path | |
import re | |
import subprocess | |
def process_ini(fname): | |
# print "found ini " + fname + "\n" |