Skip to content

Instantly share code, notes, and snippets.

-*- org -*-

app/views/layouts とは?

app/assets って全体に効くの?

rails g uploader Picture の uploader って?

carrierwave のコマンド(?) か?

_form.html.erb って render ‘form’ を置換するの?

render

lsbom /var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom | awk '{print $1}' | xargs -s 2048 tar cvf /tmp/hoge.tar
[alias]
l = log --date=short --pretty=format:\"%h\t%an\t%ai %s\"
s = status
d = diff
a = add
b = branch
c = commit
co = checkout
@higaki
higaki / clt.sh
Last active August 29, 2015 14:25
# Yosemite 用 MacPorts をインストール
MacPorts-2.3.3-10.10-Yosemite.pkg
# Yosemite 用 command line tools をインストール
xcode-select --install
port outdated
# ...
# => zlib 1.2.8_0 < 1.2.8_0 (platform darwin 12 != darwin 14)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>date picker</title>
<link rel="stylesheet" href="pikaday.css">
<link rel="stylesheet" href="site.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
def fizzbuzz
Enumerator.new do |y|
i = 1
loop do
y << case
when i % 15 == 0 then "FizzBuzz"
when i % 5 == 0 then "Buzz"
when i % 3 == 0 then "Fizz"
else i
end
kintsuba_sweets:
hosted_by_en: 'Kintsuba Sweets (#kintsuba)'
hosted_by_ja: 'きんつばスイーツの会 (#kintsuba)'
name_en: 'Kintsuba Sweets'
name_ja: 'きんつばスイーツの会'
dtstart: '2011-07-02 13:30'
dtend: '2011-07-02 17:30'
url: 'https://gist.github.com/1043321'
location: 'Seika-cho, Kyoto, JAPAN'
@higaki
higaki / .irbrc
Created June 29, 2012 11:12
.irbrc
# -*- ruby -*-
require 'rubygems'
require 'irb/completion'
IRB.conf[:SAVE_HISTORY] = 65535
IRB.conf[:AUTO_INDENT] = true
def ri(keywd = '')
print `ri #{keywd}`
end
@higaki
higaki / learn.md
Created July 12, 2012 09:30
learn

markdown


h1

h2

h3

h4

h5
h6
@higaki
higaki / .skk
Created July 19, 2012 12:45
.skk
(setq skk-rom-kana-rule-list
'(("hh" "h" ("ッ" . "っ"))
("mm" "m" ("ン" . "ん"))
(";" nil (";" . ";"))
(":" nil (":" . ":"))
("?" nil ("?" . "?"))))