Skip to content

Instantly share code, notes, and snippets.

yokota kenji yokotak0527

Block or report user

Report or block yokotak0527

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yokotak0527
yokotak0527 / gist:7020366
Last active Dec 25, 2015
ベンダープレフィックスを付ける即席のあれ。
View gist:7020366
@mixin keyframes($name){
@-webkit-keyframes #{$name}{@content;}
@-moz-keyframes #{$name}{@content;}
@-ms-keyframes #{$name}{@content;}
@keyframes #{$name}{@content;}
}
@mixin apply-vendor($type,$val...){ @each $prefix in $vendors{
#{$prefix}#{$type} : $val; }
}
@yokotak0527
yokotak0527 / gist:6274466
Last active Dec 21, 2015
射影変換 ( ホモグラフィ )
View gist:6274466
     bx + by + c
u = -------------
     gx + yh + 1

     dx + ey + f
v = -------------
     gx + hy + 1

平面射影変換

@yokotak0527
yokotak0527 / gist:6157009
Created Aug 5, 2013
TypeScript 関数の書き方メモ
View gist:6157009
// function 文の型注訳
function func0(str:string):string{
return str;
}
// ------------------------------------------------
// function 式の型注訳
var func1:(str:string) => string = function(str){
return str;
View gist:5956263
/*
var shadow_cvs,shadow_ctx,box_blur,bounds;
shadow_cvs = document.createElement('canvas');
shadow_ctx = shadow_cvs.getContext('2d');
this.body.draw(shadow_ctx,true);
this.shadow_body = new cjs.Bitmap(shadow_cvs);
this.shadow_body.set({
x:7,
y:5,
scaleX:1.1,
View gist:5953858
import js.Lib;
class Main{
static function main(){
js.Lib.alert('hoge');
}
}
@yokotak0527
yokotak0527 / gist:5924800
Created Jul 4, 2013
JSで気になる書き方
View gist:5924800
var obj = {};
(obj.Func = function(){}).prototype = {};
@yokotak0527
yokotak0527 / gist:5235458
Created Mar 25, 2013
IE6で画像リサイズ
View gist:5235458
img{
max-width:250px;
width: expression(this.width >= this.height ? '250px' : 'auto');
}
@yokotak0527
yokotak0527 / gist:5211058
Created Mar 21, 2013
WordPressのエディターを強制的にHTMLモードにする
View gist:5211058
add_action('admin_head','page_editor');
function page_editor(){
global $post_type;
global $user_ID;
// 固定ページの場合HTMLエディターに
if($post_type == 'page'){
add_filter('user_can_richedit','__return_false');
}
};
@yokotak0527
yokotak0527 / gist:5193203
Created Mar 19, 2013
macからNASへのアクセスが多い場合 参考 -> http://ymkn.hatenablog.com/entry/2012/09/24/002517
View gist:5193203
/etc/sysctl.confに
net.inet.tcp.delayed_ack=0
@yokotak0527
yokotak0527 / gist:5166676
Last active Dec 14, 2015
orig_concat動かす為にexecを使うのはなんか違う気がする。後で調べる
View gist:5166676
'use strict';
module.exports = function(grunt){
var config = grunt.config,
exec = require('child_process').exec,
say = 'say -v kyoko ';
var jsDir = 'sample/build/'; // jsのディレクトリ
var jsDestDir = 'sample/';
You can’t perform that action at this time.