Bootcampの領域を壊さずに内蔵SDカードリーダーのSDメモリへインストールしてみた。
- /dev/disk0s1: EFIシステム
- /dev/disk0s2: HFS+ OS X Lion (rEFItをインストール済)
- /dev/disk0s3: Recovery (OS X Lion)
- /dev/disk0s4: Windows 7
#coding: utf-8 | |
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template | |
@route('/') | |
@route('/index.html') | |
def index(): | |
return '<a href="/hello">Go to Hello World page</a>' | |
@route('/hello') | |
def hello(): |
#!/usr/bin/python | |
# vim:set fileencoding=utf-8 sw=2 ai: | |
import sqlite3 | |
import datetime | |
import re | |
SQL = ''' | |
select | |
name, version, time, author, text |
tracking_id = "hitoriblog0c-22"; | |
pf = "http://www.amazon.co.jp/exec/obidos/ASIN/"; | |
d = document; | |
u = d.location.href; | |
re = new RegExp("^http://www.amazon.co.jp/gp/aw/d/([0-9A-Z]{10})"); | |
res = u.match(re); | |
if (res) { | |
asin = res[1]; | |
afurl = pf + asin + "/" + tracking_id + "/ref=nosim/"; | |
tmp = d.evaluate('//div[@class="dpProductTitle"]', d, null, 7, null).snapshotItem(0); |
C:\minimal-root-jp>ebook_msc name PRS-T1 info | |
Sony Reader MSC utility 1.06 (c) 2009 Igor Skochinsky, Vladimir Boroda | |
avail: 0 | |
openDrive [\\.\F:]: 1 | |
usbInitCheck: 0 | |
USB protocol versions:0 (?): 01000000 | |
1 (Device): 01000010 | |
2 (Updater):00000000 | |
3 (?): 01000000 | |
UsbGetDevProperty: 0 |
CadsoftのEagleでは、ユーザープログラム(User Language Program,ULP)内で#requireディレクティブを使うことにより、ULPの動作するEagleのバージョンを制限することができます。 | |
EagleのバージョンごとにULPの動作を変えたいときなどにバージョン番号が必要となるため、取得する方法を載せておきます。 | |
定数EAGLE_VERSION、EAGLE_RELEASE、EAGLE_SIGNATUREを参照して文字列を作り、ダイアログボックスに表示します。 | |
Eagleが提供している組み込み定数の詳細はulpマニュアル(ulp640_en.pdf.pdf)の67ページ以降(Builtin Constantsの章)を参照してください。 |
#!/bin/sh | |
export PATH=/usr/sbin:/sbin:$PATH | |
export TZ=Asia/Tokyo | |
export LANG=en | |
SERVERHOST=mybackupserver.example.com | |
SERVERLOGIN=mybackup | |
SERVER="$SERVERLOGIN@$SERVERHOST" | |
WEEKDAY=$(date +%a) |
# http://d.hatena.ne.jp/haru-s/20110405/1302006637 に答えがそのままあるが、一応メモ | |
# github fork 追従 で見つけた | |
$ git remote | |
origin | |
# 本家のリモートリポジトリの短縮名を登録する. | |
$ git remote add github git://github.com/liquidz/misaki.git | |
# 本家の更新をローカルで反映させる. |
/* | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# | |
# Copyright (C) 2013 Yoshihiro TSUBOI <ytsuboi-at-gmail.com> | |
# | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. | |
# |