:note

mg:note

ちらしのうらがきです

brew-caskを新しいシステムに移行させる

brew caskの仕組みが変わったようなので新しいシステムに移行させる caskroom/homebrew-cask brew-cask: move to using tap cmd directory. by mikemcquaid · Pull Request #15381 · caskroom/homebrew-cask Changes to homebrew-cask installation behaviour · Issue #13201 · caskroom/homebrew-cask % brew doctor Please note that these warnings are just used to

native extensionなgemを探す

native extensionなgemを探す List gems with native extensions irb(main):008:0> Gem::Specification.each.select{|spec|spec.extensions.any?} [ [ 0] #<Gem::Specification:0x3fe2b180b564 bigdecimal-1.2.6>, [ 1] #<Gem::Specification:0x3fe2b18128dc binding_of_caller-0.7.2>, [ 2] #<Gem::Specification:0x3fe2b1481218 byebug-6.0.2>, [ 3] #<Gem::Specification:0x3fe2b14708f0 debug_inspector-0.0.2>, [ 4] #<Gem::Specification:0x3fe2b145b0b8 eventmachine-1.0.8>, [ 5] #<Gem::Specification:0x3fe2b144b2d0 ffi-1.9.10>, [ 6] #<Gem::Specification:0x3fe2b1437f78 hpricot-0.8.6>, [ 7] #<Gem::Specification:0x3fe2b142a364 http_parser.rb-0.6.0>, [ 8] #<Gem::Specification:0x3fe2b180fb14 io-console-0.4.3>, [ 9] #<Gem::Specification:0x3fe2b141764c json-1.8.3>, [10] #<Gem::Specification:0x3fe2b10519a4 json-1.8.2>, [11] #<Gem::Specification:0x3fe2b10451cc

IllustratorでSVGのtext-anchorが無視される

<?xml version="1.0"?> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"> <line x1="150" y1="20" x2="150" y2="280" style="stroke-width:0.3; stroke:#900;"/> <text x="150" y="100" style="text-anchor:start; stroke:none; fill:#000;" font-family="ShinGoPro-Light-83pv-RKSJ-H" font-size="7">START</text> <text x="150" y="150" style="text-anchor:middle; stroke:none; fill:#000;" font-family="ShinGoPro-Light-83pv-RKSJ-H" font-size="7">MIDDLE</text> <text x="150" y="200" style="text-anchor:end; stroke:none; fill:#000;" font-family="ShinGoPro-Light-83pv-RKSJ-H" font-size="7">END</text> </svg> 手書きしたsvgを Illustrator で開くと style="text-anchor:xxxx" が無視される <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 17.1.0, SVG

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],

back to top