Skip to content

Instantly share code, notes, and snippets.

View kjunichi's full-sized avatar

Junichi Kajiwara kjunichi

View GitHub Profile
@kjunichi
kjunichi / gist:3897461
Created October 16, 2012 06:06
CoffeScriptってどうやんだっけ

#準備

<script src="http://jashkenas.github.com/coffee-script/extras/coffee-script.js"></script>

#Compile cs2js

var js = CoffeeScript.compile(data);
@kjunichi
kjunichi / gist:3897861
Created October 16, 2012 07:45
IISってaspx.vbファイルを変更した場合
IISってaspx.vbファイルを変更した場合どうなんだ!
まさにそのxxx.aspxにアクセスしているユーザがいたら、そもそも
ファイル使用中で置き換えられないのか?
こちらに一番都合がよい動き
アクセスしているユーザいたら、そのリクエストにたいするレスポンスを返すまで
旧版で動かし、アクセスが来ていても、待たせて、新版に入れ替えて、受付
、待たされていたアクセスの先頭はコンパイルを待つ
@kjunichi
kjunichi / gist:3902992
Last active October 11, 2015 18:47
MacRuby入門
@kjunichi
kjunichi / gist:3904648
Created October 17, 2012 09:22
カートのタブブラウザ対応が気になり
amazonで試したら、カートを共有してた。
しかも、非同期で定期的にカートの情報を更新しているページもあるような動きも
ページによっては更新されなかったりだったので、何かのトリガーでチェックしているのかもしれないが、
@kjunichi
kjunichi / gist:3907958
Created October 17, 2012 20:29
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-12
- GEM PATHS:
@kjunichi
kjunichi / gist:3908098
Created October 17, 2012 20:51
ivy fail
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/ivy/2.3.0-rc1/apac
Error: undefined class/module Timeout::
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula_installer.rb:245:in `load'
/usr/local/Library/Homebrew/formula_installer.rb:245:in `build'
/usr/local/Library/Homebrew/utils.rb:223:in `ignore_interrupts'
/usr/local/Library/Homebrew/formula_installer.rb:241:in `build'
/usr/local/Library/Homebrew/formula_installer.rb:115:in `install'
/usr/local/Library/Homebrew/cmd/install.rb:79:in `install_formulae'
@kjunichi
kjunichi / gist:3909312
Created October 18, 2012 01:13
style.removeAttributeはIE固有
@kjunichi
kjunichi / gist:3909354
Created October 18, 2012 01:26
GistをAPIで叩く
@kjunichi
kjunichi / gist:3916255
Created October 19, 2012 04:33
google.visualization.LineChart のオプション
interpolateNulls:true 間のデータをつないでくれる
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, {
interpolateNulls:true,
curveType:"none",
width: 600, height: 384, title: 'EUR Performance'});
}