Skip to content

Instantly share code, notes, and snippets.

@edom18
edom18 / README
Created September 30, 2012 14:57
ๅˆใ‚ใฆใฎWebGL
WebGLใ‚’ๆ›ธใ„ใฆใฟใ‚‹ใƒ†ใ‚นใƒˆใ€‚
ใŸใ ใฎใƒใƒชใ‚ดใƒณ1ๆžšใ‚’ๆ›ธใใ ใ‘ใ€‚
ใใ‚Œใงใ‚‚ใ ใ„ใถใ‚ฝใƒผใ‚นใŒ้•ทใ„ใƒปใƒปใ€‚
@edom18
edom18 / extend.js
Created October 16, 2012 14:55
JSใง็ถ™ๆ‰ฟใ‚’ใ™ใ‚‹ไป•็ต„ใฟใ€‚this._super() ใ ใ‘ใง่ฆชใ‚ฏใƒฉใ‚นใฎใ‚ณใƒณใ‚นใƒˆใƒฉใ‚ฏใ‚ฟใ‚’ๅ‘ผใณใŸใ„ใ€ใฃใฆใ“ใจใงไฝœๆˆใ€‚่‹ฅๅนฒใ‚ญใƒขใ„ใ‘ใฉใ„ใกใŠใ†ใฏๅ‹•ใใƒปใƒปใ‘ใฉใ€ใ‚‚ใฃใจใ‚นใƒžใƒผใƒˆใซใงใใชใ„ใ‚‚ใฎใ‹ใƒปใƒปใ€‚
(function (win, doc, exports) {
'use strict';
/**
* ใ‚ฏใƒฉใ‚น็ถ™ๆ‰ฟ็”จ้–ขๆ•ฐ
* child ... ๆดพ็”Ÿใ‚ฏใƒฉใ‚นใ‚’ๆŒ‡ๅฎš
* _super ... ๅŸบๅบ•ใ‚ฏใƒฉใ‚นใ‚’ๆŒ‡ๅฎš
*/
function extend(child, _super) {
@edom18
edom18 / jsdoit.css
Created November 22, 2012 09:04
CSS Flexbox Layout
@import "compass/reset";
li {
list-style: none;
}
$sideSize: 125px;
body, html {
height: 100%;
@edom18
edom18 / README
Created November 24, 2012 16:30
Animation Graph
# Animation Graph
ๆกˆไปถใงไฝฟใ†ใ‚ฐใƒฉใƒ•ใซใ‚ขใƒ‹ใƒกใƒผใ‚ทใƒงใƒณใ‚’ไป˜ๅŠ ใ™ใ‚‹ใŸใ‚ใซไฝœใฃใŸใƒขใƒƒใ‚ฏใ€‚
ๆ„ๅค–ใจใ„ใ„ๆ„Ÿใ˜ใซไป•ไธŠใŒใฃใŸใ€‚
@edom18
edom18 / jsdoit.css
Created January 30, 2013 01:29
forked: ็”ปๅƒใ‚’ไธ‰่ง’ๅˆ†ๅ‰ฒใงใƒฆใƒฉใƒฆใƒฉ
* {
padding: 0;
margin: 0;
}
canvas {
}
#wrapper {
width: 500px;
@edom18
edom18 / README
Created February 8, 2013 09:01
ใƒ†ใ‚ฏใ‚นใƒใƒฃใƒžใƒƒใƒ”ใƒณใ‚ฐใฎใƒ†ใ‚นใƒˆ
#ใƒ†ใ‚ฏใ‚นใƒใƒฃใƒžใƒƒใƒ”ใƒณใ‚ฐใฎใƒ†ใ‚นใƒˆ
Refer to: [2009-02-11 - ๆœ€้€Ÿใƒใƒฅใƒ‘ใ‚ซใƒ–ใƒฉ็ ”็ฉถไผš](http://d.hatena.ne.jp/gyuque/20090211#1234364019)
---
ๅฐ‘ใ—ใ ใ‘ใƒกใƒƒใ‚ทใƒฅไฝœๆˆใ€ๆ“ไฝœ้ƒจๅˆ†ใ‚’ๆœ€้ฉๅŒ–ใ€‚
็”ปๅƒใ‚’ๅˆ†ๅ‰ฒใ™ใ‚‹ๅ ดๅˆใฏ้ ‚็‚นใ‚’็ตใถ้ †็•ชใฏๅ›บๅฎšใซใชใ‚‹ใŸใ‚ใ€
้ ‚็‚นใฎใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นใฏ็‰นใซใชใ—ใ€‚
@edom18
edom18 / README
Created February 14, 2013 00:13
ใƒ†ใ‚ฏใ‚นใƒใƒฃใƒžใƒƒใƒ”ใƒณใ‚ฐใ‚’ไฝฟใฃใฆๅ‹•็š„ใซ่ƒŒๆ™ฏใ‚’ไฝœใ‚‹ใƒ†ใ‚นใƒˆ
#ใƒ†ใ‚ฏใ‚นใƒใƒฃใƒžใƒƒใƒ”ใƒณใ‚ฐใฎใƒ†ใ‚นใƒˆใ‹ใ‚‰็™บๅฑ•ใ—ใฆใ€ใกใ‚‡ใฃใจ็ซ‹ไฝ“็š„ใซ่ฆ‹ใˆใ‚‹่ƒŒๆ™ฏใฎ็”Ÿๆˆใ‚’ใ‚„ใฃใฆใฟใŸใ€‚
ๅ‹•็š„ใซ็”ปๅƒใ‚’็”Ÿๆˆใ—ใ€ใใ‚Œใ‚’ใƒ‘ใƒฉใƒ‘ใƒฉๆผซ็”ป้ขจใซ่กจ็คบใ™ใ‚‹ใŸใ‚ใ€ๅˆๆœŸๅŒ–ๅ‡ฆ็†ใŒๅฐ‘ใ—้‡ใ„ใงใ™ใ€‚
@edom18
edom18 / jsdoit.css
Created February 19, 2013 00:19
forked: Flocking Boids
body { background-color: #FFFFFF; font: 30px sans-serif; margin:0px;}
@edom18
edom18 / Cakefile
Last active December 14, 2015 01:59
This is a Cakefile by coffee script to watch and compile cofee scripts.
{spawn, exec} = require 'child_process'
option '-o', '--output [DIR]', 'Output directory.'
option '-t', '--target [DIR]', 'Watch target directory.'
stdout_handler = (data) ->
console.log data.toString().trim()
build = (watch, output = 'js', target = '_src/coffee') ->
console.log 'Watching coffee scripts'
@edom18
edom18 / SimpleEventDispatcher.coffee
Last active December 14, 2015 07:59
Simple Event dispatcher with CoffeeScript.
class Disposal
constructor: ->
dispose: ->
@el?.parentNode?.removeChild @el
@el = null
@off?()
@disposeInternal.apply @, arguments
disposeInternal: ->