[ Launch: Tributary inlet ] 5520982 by hushin
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
// -------------------------------------------------------------------------------- | |
// Timeline で FizzBuzz | |
xjsfl.init(this); | |
var context = Context.create(); | |
clear(); | |
//trace(context); | |
//inspect(context.timeline); | |
for (var i = 0; i < 100; i++) { | |
context.timeline.insertKeyframe(i); | |
var keyframe = context.keyframes[i]; |
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
xjsfl.init(this); //init xJSFL | |
const STAR_NAME = "star"; | |
var dom = $dom; | |
var lib = $dom.library; | |
var tl = $timeline; | |
var context = Context.create(); | |
makeStar(); //星を作る | |
lib.addItemToDocument({x:100 , y:100}, STAR_NAME); //ステージに配置 |
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
ls | sed -e "s|\([^ .]*\)*\.jpg|../hoge/\1.NEF|g" | xargs -J % cp % ../fuga |
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
xjsfl.init(this); //xJSFL init | |
clear(); //出力パネルをクリア | |
deleteAllLayers(); //タイムラインにあるフレームなどすべて消す | |
for (var i = 0; i < 10; i++) | |
{ | |
//描いてはフレームを進める | |
draw(); | |
$timeline.insertKeyframe(i); | |
} |
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
/* Gistの表示を直すやつ */ | |
.line-numbers, .line-pre > .line { | |
font-size: 12px; | |
line-height: 1.4; | |
} |
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
//xjsfl.reload(); | |
xjsfl.init(this); // using xJSFL | |
clear(); | |
fl.runScript(xjsfl.file.find('lib', 'underscore.js')); | |
trace(_.map([1, 2, 3], function(num){ return num * 3; })); | |
trace(_.some([null, 0, 'yes', false])); | |
trace(_.invoke([[5, 1, 7], [3, 2, 1]], 'sort')); |
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
xjsfl.init(this); // init xJSFL | |
;(function(){ | |
function scriptFolderURI() { | |
return fl.scriptURI.replace(/[¥/][^¥/]*?$/,"/"); | |
} | |
// use Lo-Dash | |
fl.runScript(scriptFolderURI() + "jsload/lib/lodash.compat.js"); | |
})(); | |
function benchmark(name, times, callback){ |
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
xjsfl.init(this); // init xJSFL | |
;(function(){ | |
function scriptFolderURI() { | |
return fl.scriptURI.replace(/[¥/][^¥/]*?$/,"/"); | |
} | |
// use Lo-Dash | |
fl.runScript(scriptFolderURI() + "jsload/lib/lodash.compat.js"); | |
})(); | |
function benchmark(name, times, callback){ |
[ Launch: Tributary inlet ] 5523439 by hushin[ Launch: Tributary inlet ] 5520982 by hushin
OlderNewer