Skip to content

Instantly share code, notes, and snippets.

View hisaju's full-sized avatar

菊本 久寿 hisaju

View GitHub Profile
def self.meets_all(user)
Meet.where(relationship_id: user.relationship_id).order(meet_day_start: :desc)
end
current_user.parter.meets.order(meet_day_start: :desc)
user.rb
--
def partner_meets
partner.meets.order(meet_day_start: :desc)
names = ['オレンジジュース', 'コカコーラ', '烏龍茶', '緑茶', 'レッドブル']
juices = names.map{|n| {name: n, stock: 10} }
while(true) do
p '10円、50円、100円、500円、1000円、いずれかのお金を入れてください'
money = 0
while(coin = gets.chomp.to_i) do
case coin.to_i
when 10, 50, 100, 500, 1000
money = money + coin
@hisaju
hisaju / gist:9d38426401a08b6be6e5
Created August 18, 2015 09:35
引越し買い物リスト

概要

  • 引越しにあたって、必要なものをリスト化していきます

買い物リスト

  • プロジェクター
@hisaju
hisaju / mix245cloud
Last active August 29, 2015 14:11
bookmarklet of mixcloud to 245cloud
javascript:document.location='http://245cloud.com/?ad=true#mixcloud:'+ location.pathname
@hisaju
hisaju / README.md
Last active January 3, 2016 05:39
みんなでGitHubグッズを買おう!

みんなでGitHubグッズを買おう!

というわけで、例によって送料と関税高いからみんなでgithubグッズ買おうよ!& 集まるついでに飲み会やろうよのコーナーです。

http://shop.github.com/

乗っかりたい人はコメントに

  • 商品
  • 個数