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
D, [2010-10-13T12:06:16.254575 #16142] DEBUG -- : SQL (0.3ms) select sqlite_version(*) | |
D, [2010-10-13T12:06:16.255374 #16142] DEBUG -- : SQL (0.5ms) CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "accessory_id" integer) | |
D, [2010-10-13T12:06:16.255771 #16142] DEBUG -- : SQL (0.1ms) CREATE TABLE "accessories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) | |
D, [2010-10-13T12:06:16.271467 #16142] DEBUG -- : SQL (0.1ms) SELECT name | |
FROM sqlite_master | |
WHERE type = 'table' AND NOT name = 'sqlite_sequence' | |
D, [2010-10-13T12:06:16.275491 #16142] DEBUG -- : SQL (0.1ms) INSERT INTO "accessories" VALUES(NULL) | |
D, [2010-10-13T12:06:16.281336 #16142] DEBUG -- : SQL (0.1ms) INSERT INTO "widgets" ("accessory_id") VALUES (1) | |
D, [2010-10-13T12:06:16.286909 #16142] DEBUG -- : Widget Load (0.1ms) SELECT "widgets"."id" FROM "widgets" WHERE ("widgets"."accessory_id" = 1) LIMIT 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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
# blog post: http://blog.slashpoundbang.com/post/2605632137/changing-from-utc-offset-to-time-zone-identifier-in | |
identifier = { | |
-11 => 'Samoa',#International Date Line West, Midway Island | |
-10 => 'Hawaii', | |
-9 => 'Alaska', | |
-8 => 'Pacific Time (US & Canada)',#Tijuana | |
-7 => 'Mountain Time (US & Canada)',#Arizona, Chihuahua, Mazatlan | |
-6 => 'Central Time (US & Canada)',#Central America, Guadalajara, Mexico City, Monterrey, Saskatchewan | |
-5 => 'Eastern Time (US & Canada)',#Bogota, Indiana (East), Lima, Quito |
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
#!/bin/sh | |
/usr/local/bin/growlnotify -s -m "Drink water" -n "Water Reminder" |
Androidのバージョン表記及びAPI Level
Version | Code Name | Level | Build.VERSION_CODES. |
---|---|---|---|
1.0 | 1 | BASE | |
1.1 | 2 | BASE_1_1 | |
1.5 | Cupcake | 3 | CUPCAKE |
1.6 | Donut | 4 | DONUT |
2.0 | Eclair | 5 | ECLAIR |
2.0.1 | 6 | ECLAIR_0_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
iPhone : iPhone1,1 | |
iPhone 3G : iPhone1,2 | |
iPhone 3GS : iPhone2,1 | |
iPhone 4 : iPhone3,1 | |
iPhone 4 : iPhone3,2 | |
iPhone 4 : iPhone3,3 | |
iPhone 4S : iPhone4,1 | |
iPhone 5 : iPhone5,1 | |
iPhone 5 : iPhone5,2 | |
iPhone 5c : iPhone5,3 |
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
# many settings from https://raw.githubusercontent.com/mathiasbynens/dotfiles/master/.macos | |
# many settings from https://raw.githubusercontent.com/thoughtbot/laptop/master/mac | |
# my previous install notes at https://gist.github.com/llimllib/ee591266e05bd880629a4e7511a61bb3 | |
fancy_echo() { | |
local fmt="$1"; shift | |
# shellcheck disable=SC2059 | |
printf "\n$fmt\n" "$@" | |
} |