Skip to content

Instantly share code, notes, and snippets.

View jjulian's full-sized avatar

Jonathan Julian jjulian

  • Ad Hoc LLC
  • MD
  • 08:03 (UTC -04:00)
View GitHub Profile
# 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" "$@"
}
@YumaInaura
YumaInaura / file0.txt
Last active November 14, 2016 17:53
iPhone系端末の InternalName と 一般名の対応表 ref: http://qiita.com/YumaInaura/items/31838a72678fa09d7e19
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
@yicr
yicr / Android Version API Level List.md
Last active December 31, 2019 14:43
* Android Version & API Level List on 2016/08/28

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
@rayners
rayners / drink_reminder
Last active August 29, 2015 13:56
Water reminder as a service
#!/bin/sh
/usr/local/bin/growlnotify -s -m "Drink water" -n "Water Reminder"
@jpmckinney
jpmckinney / utc_offset_to_friendly_identifier.rb
Created January 5, 2011 05:18
Changes from UTC offset to time zone identifier in Rails
# 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
@voldy
voldy / rspec-syntax-cheat-sheet.rb
Created November 27, 2010 16:03 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2.0 syntax Cheet Sheet
# 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")
@hannahwhy
hannahwhy / exists_with_scope.log
Created October 13, 2010 16:43
exists? with default_scope error (AR >= 2.3.9)
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