This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| </body> | |
| <script> | |
| function num(px) { | |
| return Number(px.replace('px', '')) | |
| } | |
| function px(num) { | |
| return num + "px"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 家のテーブルを作成するときの | |
| # 脚の設置位置を計算するためのスクリプト | |
| # 変わりそうな値は定数にしてる | |
| module Math | |
| def self.radians(degree) | |
| degree * Math::PI / 180 | |
| end | |
| end | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 鹿の王(上下合本版) (角川書店単行本) | |
| 鶏むね、鶏もも、俺に任せろ! (レタスクラブMOOK) | |
| Developer's Code 本物のプログラマがしていること | |
| サーバサイドJavaScript Node.js入門 (アスキー書籍) | |
| フルスクラッチから1日でCMSを作る シェルスクリプト高速開発手法入門 (アスキー書籍) | |
| 高速スケーラブル検索エンジン ElasticSearch Server | |
| 【全巻セット】機動警察パトレイバー 全5巻セット〈豪華特典版〉 (富士見ファンタジア文庫) | |
| プログラマの考え方がおもしろいほど身につく本 問題解決能力を鍛えよう! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class KaraokeMachine | |
| OCTAVE = %w(C C# D D# E F F# G G# A A# B) | |
| def initialize(melody) | |
| @melody = melody | |
| end | |
| def transpose(t) | |
| transposed = transpose_octave(t) | |
| @melody.gsub(/[A-G]#?/) do |m| | |
| transposed[m] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 接続ホスト接続数 接続時間 | |
| select left(host, 20) host_prefix, command, count(*), max(time)/3600 from INFORMATION_SCHEMA.PROCESSLIST group by host_prefix, command order by host_prefix; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mandrill' | |
| m = Mandrill::API.new | |
| message = { | |
| :subject=> "Hello from the Mandrill API", | |
| :from_name=> "Your name", | |
| :text=>"Hi message, how are you?", | |
| :to=>[ | |
| { | |
| :email=> "[email protected]", | |
| :name=> "fukajun Test user" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ws.add_data_validation("C12", { :type => :list, :formula1 => 'A1:A2', :showDropDown => true}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 16.times do |r| | |
| - 16.times do |g| | |
| - 16.times do |b| | |
| - if (r + 1) % 4 == 0 && (g + 1) % 4 == 0 && (b + 1) % 4 == 0 | |
| %span{:style => "background-color:##{'%01x'%r + '%01x'%g + '%01x'%b}"} | |
| hoge | |
| - k = 0 | |
| - (0..15).each do |r| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "========Check old type hash statement=========" | |
| git diff --cached | grep ":[^ ]* *=> *:[^ ]*" | |
| result=$? | |
| ret=0 | |
| if [ $result -eq 0 ]; then | |
| echo "!!!!!!!!Include old type hash statement!!!!!!!" | |
| ret=1 | |
| fi |