bx + by + c
u = -------------
gx + yh + 1
dx + ey + f
v = -------------
gx + hy + 1
This file contains 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
'use strict'; | |
// ============================================================================= | |
// 変更点 | |
// ============================================================================= | |
// '<config:prop.subprop>' → '<%= prop.subprop %>' | |
// '<json:file.json>' → grunt.file.readJSON('file.json') | |
// '<file_template:file.js>' → grunt.template.process(grunt.file.read('file.js')) | |
module.exports = function(grunt){ |
This file contains 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
'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/'; |
This file contains 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
/etc/sysctl.confに | |
net.inet.tcp.delayed_ack=0 |
This file contains 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
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'); | |
} | |
}; |
This file contains 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
img{ | |
max-width:250px; | |
width: expression(this.width >= this.height ? '250px' : 'auto'); | |
} |
This file contains 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
var obj = {}; | |
(obj.Func = function(){}).prototype = {}; |
This file contains 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
import js.Lib; | |
class Main{ | |
static function main(){ | |
js.Lib.alert('hoge'); | |
} | |
} |
This file contains 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
/* | |
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, |
This file contains 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
// function 文の型注訳 | |
function func0(str:string):string{ | |
return str; | |
} | |
// ------------------------------------------------ | |
// function 式の型注訳 | |
var func1:(str:string) => string = function(str){ | |
return str; |