Perlin Noise 関連のメモ
http://www.iquilezles.org/www/articles/morenoise/morenoise.htm
参考になる。が、ここで紹介されているテクニックは、実際には Perlin noise に適用できない。
| [ | |
| // how to move in the filer with hjkl | |
| { "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] | |
| }, | |
| { "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] | |
| }, | |
| { "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
| [ {"key": "control", "operand": "sidebar_tree"} ] |
| #!/bin/sh | |
| set -e | |
| if [ $# -ne 2 -a $# -ne 3 ]; then | |
| echo 'Usage:' | |
| echo ' $ git export-diff <commit> <output_dir>' | |
| echo ' $ git export-diff <commit> <commit> <output_dir>' | |
| exit 1 | |
| fi |
Perlin Noise 関連のメモ
http://www.iquilezles.org/www/articles/morenoise/morenoise.htm
参考になる。が、ここで紹介されているテクニックは、実際には Perlin noise に適用できない。
| GID_TABLE = { | |
| 'od6': 0, | |
| 'od7': 1, | |
| 'od4': 2, | |
| 'od5': 3, | |
| 'oda': 4, | |
| 'odb': 5, | |
| 'od8': 6, | |
| 'od9': 7, | |
| 'ocy': 8, |
| " ----------------------------------------------------------------------- | |
| " CSS3PropertyDuplicate(): {{{ | |
| " - Origin: https://gist.github.com/972806 | |
| " - Forked: https://gist.github.com/1901182 | |
| " | |
| " "" -> 無名レジスタ(YなどでYankしたテキストが入る) | |
| " @" -> 無名レジスタの内容を実行する | |
| " @@ -> 直前に実行したレジスタを再実行する | |
| " ""P -> 無名レジスタの内容をペースト | |
| " |
| /* | |
| * Minimal classList shim for IE 9 | |
| * By Devon Govett | |
| * MIT LICENSE | |
| */ | |
| if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') { | |
| Object.defineProperty(HTMLElement.prototype, 'classList', { | |
| get: function() { |
| var express = require('express') | |
| , mapRouter = require('./express-mapRouter') | |
| , app = express.createServer() | |
| , routesDir = __dirname + '/routes'; | |
| // 'GET /' : 'root:index' はこれと同じ | |
| // var root = require('./routes/root'); | |
| // app.get('/', root.index); | |
| var routesMap = { | |
| 'GET /' : 'root:index' |
| function! Sass_convert() | |
| let scss = expand('%:p') | |
| let css = substitute(scss, 'scss$', 'css', '') | |
| let cmd = printf('sass %s %s', scss, css) | |
| let res = system(cmd) | |
| if res != '' | |
| echo res | |
| endif | |
| endfunction |
| /** | |
| * node.js/express twitter oauth integration sample | |
| */ | |
| var express = require('express'), | |
| connect = require('connect'); | |
| var MemoryStore = require('connect/middleware/session/memory'); | |
| var OAuth= require('oauth').OAuth; | |
| var app = express.createServer(); |