Skip to content

Instantly share code, notes, and snippets.

View june29's full-sized avatar
🚿

june29 june29

🚿
View GitHub Profile
# -*- coding: utf-8 -*-
require "date"
class Date
(1..5).each { |n|
define_method("第#{n}?") { (self.day.to_f / 7.to_f).ceil == n }
}
%w(日 月 火 水 木 金 土).each_with_index { |曜日, index|
# -*- coding: utf-8 -*-
require "date"
class Date
(1..5).each { |n|
define_method("第#{n}?") { (self.day.to_f / 7.to_f).ceil == n }
}
%w(日 月 火 水 木 金 土).each_with_index { |曜日, index|
source "http://jigokuno.com"
boy "∞(ルシフェル)(33)"
boy "なかじ(19)"
boy "代官山(?)"
group :development do
boy "masa(34)"
end
require "pathname"
Dir["app/assets/stylesheets/**/*"].each do |path|
pathname = Pathname.new(path)
basename = pathname.basename
extname = pathname.extname
next if pathname.directory?
next unless extname.to_s == ".scss"
next if basename.to_s.start_with?("_")
@june29
june29 / slide.md
Last active December 24, 2015 11:19
My first Glide presentation http://glide.so/june29/6790144

june29's first Glide

My name is

  • june29

My home is

  • Hokkaido
@june29
june29 / tashitari-kaketari.coffee
Created June 3, 2013 02:46
callbackを使って協調的に動作するクラスの例を示すためのコード
class TasuHito
constructor: (base) ->
@base = base
@tashitaAto = null
tasu: (number) =>
result = number + @base
console.log result
setTimeout =>
@june29
june29 / kosenconfs.tsv
Created June 2, 2013 21:50
Just for @hush_in
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 3. in line 1.
001tokyo 2008-06-14 第1回 高専カンファレンス
002hokkaido 2008-09-13 高専カンファレンス in 北海道
003tokyo 2008-12-07 高専カンファレンス2008 Winter in 東京
004fukui 2009-02-28 高専カンファレンス in 福井
006tokyo 2009-04-04 高専カンファレンス 東京 第3回 LT
005kyushu 2009-05-16 高専カンファレンス in 九州
008tohoku 2009-08-29 高専カンファレンス in 東北
009tokyo 2009-11-07 高専カンファレンス 2009秋 in 東京
011nagano 2009-12-19 高専カンファレンス in 長野
012hachinohe 2010-01-30 高専カンファレンス in 八戸
@june29
june29 / maximizeldrview.user.js
Created March 14, 2013 09:15
Maximize LDR view
// ==UserScript==
// @id maximizeldrview
// @name LDR View Maximizer
// @version 1.0
// @namespace http://june29.jp/
// @author june29
// @description Maximize LDR view
// @include http://reader.livedoor.com/reader*
// @run-at document-end
// ==/UserScript==
@june29
june29 / ldr29.user.js
Last active December 14, 2015 22:39
LDR customizer just for june29
// ==UserScript==
// @id ldr29
// @name ldr29
// @version 1.0
// @namespace http://june29.jp/
// @author june29
// @description LDR customizer just for june29
// @include http://reader.livedoor.com/reader*
// @run-at document-end
// ==/UserScript==
twitter:
my_screen_name:
june29
consumer_key:
xxxxx
consumer_secret:
xxxxx
access_key:
xxxxx
access_secret: