Skip to content

Instantly share code, notes, and snippets.

View shield-9's full-sized avatar

Daisuke Takahashi shield-9

View GitHub Profile
@shield-9
shield-9 / config
Created March 8, 2014 10:46
GitでPullを高速化する方法。.git/configを次のように編集
[remote "origin"]
+ url = git://github.com/shield-9/opcache-dashboard.git
+ pushurl = [email protected]:shield-9/opcache-dashboard.git
- url = [email protected]:shield-9/opcache-dashboard.git
@shield-9
shield-9 / detect-resize.js
Created February 27, 2014 14:53
あんまり使う場面はないだろうけれど、ドキュメントの横幅が変更されたら特定の挙動をするためのJS
$(window).resize(function() {
if(!isset() or $(document).width() != document_width) {
/* Actions.... */
var document_width = $(document).width();
}
});
function isset() {
if(typeof(document_width) == 'undefined')
return false;