Skip to content

Instantly share code, notes, and snippets.

View 5509's full-sized avatar

Kazunori Tokuda 5509

  • PixelGrid, Inc.
  • Tokyo, Japan
View GitHub Profile
@sigwyg
sigwyg / css3-property-duplicate
Created February 24, 2012 14:13 — forked from edom18/css3-property-duplicate
CSSのプロパティを、ベンダープレフィクス付きで複製するスクリプト。(インデントも引き継ぐよう修正+直前のレジスタを保持)
" -----------------------------------------------------------------------
" CSS3PropertyDuplicate(): {{{
" - Origin: https://gist.github.com/972806
" - Forked: https://gist.github.com/1901182
"
" "" -> 無名レジスタ(YなどでYankしたテキストが入る)
" @" -> 無名レジスタの内容を実行する
" @@ -> 直前に実行したレジスタを再実行する
" ""P -> 無名レジスタの内容をペースト
"
@Takazudo
Takazudo / Cakefile
Created February 17, 2012 18:14
Cakefile to concatenate, minify coffee
# ==================================================================
# Cakefile - compile, concatenate, minify coffee
# ==================================================================
# ├─ Cakefile
# ├─ lib
# │   ├─ all.js
# │   └─ all.min.js
# └─ src
# ├─ fuga.coffee
# └─ hoge.coffee
@Takazudo
Takazudo / widgetBind.js
Created April 5, 2011 12:17
jQuery ui widget bind args
$.widget('ui.orewidget', {
...
_create: function(){
this.widgetEventPrefix = 'ore.';
this._eventify();
return this;
},
_eventify: function(){
var self = this;
this.element.bind('click', function(e){
@Takazudo
Takazudo / jQueryUiWidget-factoryMethod.js
Created March 6, 2011 19:07
add factory method to jQuery UI's widget.
/* === jQuery UI widget way === */
$.widget('ui.dashboard', {
_create: function(){
alert('hey widget was created!');
console.log(this.element); // this is what you attached.
}
});
$('#div1').dashboard(options);
@protocool
protocool / caveatPatchor.js
Created February 11, 2011 01:00
Sample Propane caveatPatchor.js file
/**
Sample Propane caveatPatchor.js file based on tmm1's avatar hack.
You'll need at least version 1.1.1 to experiment with this:
http://propaneapp.com/appcast/Propane.1.1.1.zip
Once I'm sure exposing this hack-injection point doesn't cause problems
I'll do an official auto-updating version.
As of version 1.1.1, Propane will load and execute the contents of
@terkel
terkel / clearfix.css
Last active October 24, 2022 07:46
Clearfix
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;