Skip to content

Instantly share code, notes, and snippets.

View closer's full-sized avatar
🎯
Focusing

closer closer

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name Rakuten Real Price
// @namespace https://gist.github.com/closer
// @version 0.1
// @description 楽天市場の商品価格ナビでポイント還元を加味した価格に補正します。
// @author closer
// @match https://product.rakuten.co.jp/product/-/*
// @grant none
// ==/UserScript==
package main
import (
"fmt"
"log"
"os"
"github.com/sideshow/apns2"
"github.com/sideshow/apns2/token"
)
class Hoge
def test
test1 test2 test3
end
def test3
self.class.send :define_method, :test2 do |a|
self.class.send :define_method, :test1 do |a|
a
end
@closer
closer / file0.txt
Created September 16, 2015 12:23
Ruby で super を呼んだ時の呼ばれる順番 ref: http://qiita.com/closer/items/5b90aaf115b4d113fe2a
("A".."H").each do |name|
eval <<-MODULE
module #{name}
def hoge
"#{name} -> " + super
end
end
MODULE
end
class Hoge
def initialize
p "class"
end
end
def Hoge
p "method"
end
def l
"method"
end
p l #=> "method"
1.times do
l = "variable"
p l #=> "variable"
p l() #=> "method"
class RevPolish
def initialize(expression)
@expression = expression.split
@stack = []
end
def result
@expression.each{|n| add n }
raise SyntaxError, @expression unless @stack.size == 1
@stack.last

北島生花店写真撮影

ほしい写真

  • トップページにあるような店のイメージを伝える写真
  • トップページは大きい写真を何枚かスライドショーで見せる
  • 各ページにアクセント的に入れる
  • レタッチなどもできれば
#!/bin/bash
# Install Homebrew
if [ ! /usr/local ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
COMMANDS=( git hub go zsh tmux )
for cmd in ${COMMANDS[@]}; do
if ! type $cmd > /dev/null 2>&1; then