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/ruby | |
require 'time' | |
ATOM_HEADER_SIZE = 8 | |
# difference between Unix epoch and QuickTime epoch, in seconds | |
EPOCH_ADJUSTER = 2082844800 | |
def get_creation_time(fname) | |
ctime = `GetFileInfo -d '#{fname}'`.strip |
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/ruby | |
require 'optparse' | |
require 'fileutils' | |
$verbose_mode = false | |
$update_mode = false | |
$exclude_patterns = [] | |
$exclude_suffixes = [] | |
$files = [] |
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
from kay.ext.testutils.gae_test_base import GAETestBase | |
from google.appengine.api import apiproxy_stub_map | |
from google.appengine.datastore import datastore_stub_util | |
class TestSuite(GAETestBase): | |
def setUp(self): | |
stub = apiproxy_stub_map.apiproxy.GetStub('datastore_v3') | |
stub.SetConsistencyPolicy( | |
datastore_stub_util.TimeBasedHRConsistencyPolicy()) |
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== | |
// @description maximize image by double-click instead of auto resizing. | |
// @author Chihiro Ito | |
// ==/UserScript== | |
if(document.querySelector("head>link[rel='stylesheet'][href='opera:style/image.css']")) { | |
window.donotrun=true; | |
document.body.style='margin:0; padding:0;'; | |
var img = document.getElementsByTagName('img')[0]; | |
if(img) { |