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
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; |
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
@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; } | |
} |
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
/// <reference path="../d.ts/DefinitelyTyped/jquery/jquery.d.ts" /> | |
/// <reference path="../d.ts/DefinitelyTyped/threejs/threejs.d.ts" /> | |
class Sample{ | |
camera : THREE.PerspectiveCamera; | |
scene : THREE.Scene; | |
renderer : THREE.CanvasRenderer; | |
geometry : THREE.CubeGeometry; | |
material : THREE.MeshBasicMaterial; | |
mesh : THREE.Mesh; |
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
class Path{ | |
private static function encode_special_text($path){ | |
$path = str_replace(':/','{{ptcl_sep}}',$path); | |
return $path; | |
} | |
private static function decode_special_text($path){ | |
$path = str_replace('{{ptcl_sep}}',':/',$path); | |
return $path; | |
} | |
// ========================================================================= |
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(app){ | |
let instance = null; | |
let listener = {}; | |
let callback = {}; | |
let nonameListener = 'event'; | |
let nonameListenerNum = 0; | |
class Event{ | |
constructor(){ |
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
- Backtraking | |
- Knight's tour problem | |
- N Queens Problem | |
- Cryptography | |
- Affine Cipher | |
- Caesar Cipher | |
- Dynamic Programming | |
- Catalan Number | |
- Fibonacci Sequence | |
- Integer Partition |