:note

mg:note

ちらしのうらがきです

jsとrubyで構文解析

構文解析 polygonplanet/Chiffon A very small ECMAScript parser, tokenizer and minify written in JavaScript. var Chiffon = require('chiffon'); var code = "#target 'InDesign'\nvar doc = app.documents[0];\nvar foo=1;\t\tif (foo === 0){ doc.textFrames.add() }"; var tokens = Chiffon.tokenize(code); console.log(tokens); var unto = Chiffon.untokenize ( tokens ); console.log(unto); var minim = Chiffon.minify(code); console.log(minim); // % node index.js // [ { type: 'Identifier', value: '#target' }, // { type: 'String', value: '\'InDesign\''

diffコマンドで +− 表記

diff コマンドの比較 デフォルトだと < と > で旧新を表現している git diff のときみたいに - と + にしたい % diff OLDFILE NEWFILE % diff OLD.txt NEW.txt 10,15c10,15 < 68.9999999997305, < 94.4999999999361], < visibleBounds:[20, < 20, < 68.9999999997305, < 94.4999999999361], --- > 90, > 89.2499999999361],

p5jsでcanvasサイズの可変

canvasサイズの可変 function setup() { createCanvas(windowWidth, windowHeight); } function draw() { background(0, 100, 200); } function windowResized() { resizeCanvas(windowWidth, windowHeight); } Beyond the canvas · processing/p5.js Wiki

back to top