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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Euphonium</string> |
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
// CodeMirror, copyright (c) by Marijn Haverbeke and others | |
// Distributed under an MIT license: http://codemirror.net/LICENSE | |
// Defines changeMode command. Uses dialog.js if present. | |
(function(mod) { | |
if (typeof exports == "object" && typeof module == "object") // CommonJS | |
mod(require("../../lib/codemirror"), require("../dialog/dialog")); | |
else if (typeof define == "function" && define.amd) // AMD | |
define(["../../lib/codemirror", "../dialog/dialog"], mod); |
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
start | |
= additive | |
additive | |
= left:multiplicative __ "+" __ right:additive { | |
return { | |
type: "addexpr", left: left, right: right | |
} | |
} | |
/ left:multiplicative __ "-" __ right:additive { |
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
/** | |
* .概要 | |
* WZ Editor にファイルツリーを追加するマクロ | |
* | |
* .使い方 | |
* フォルダをエディタにドラッグ&ドロップすると、ツールウィンドウにファイル一覧が表示されます。 | |
* ファイル一覧は右クリックメニューの設定から、ワイルドカードを使用してある程度カスタマイズできます。 | |
* | |
* .導入方法 | |
* このファイルをエディタ(管理者モード)で開き「メニュー > マクロ > プログラムの登録」を実行します。 |
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
#include <windows.h> | |
#include <text.h> | |
BOOL EventProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, HTEXT source) | |
{ | |
switch (message) | |
{ | |
case TWM_EVENT: | |
switch (wParam) | |
{ |
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
function snap (x, y) | |
{ | |
var item = app.project.activeItem; | |
var layerIndicies = []; | |
for (var i = 0; i < item.selectedLayers.length; i++) | |
{ | |
layerIndicies.push(item.selectedLayers[i].index); | |
} | |
item.layers.precompose(layerIndicies, item.selectedLayers[0].name, true); |
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
function gridarrange(comp, layerIndicies) | |
{ | |
var d = Math.ceil(Math.sqrt(layerIndicies.length)); | |
var w = comp.width / d; | |
var h = comp.height / d; | |
for (var i = 0; i < layerIndicies.length; i++) | |
{ | |
var x = i % d; | |
var y = Math.floor(i / d); |
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
// 入力用ダイアログの表示 | |
function showPrompt(settings, selection) { | |
var ui = new Window("""dialog { | |
orientation: 'column', | |
body: Panel { | |
orientation: 'column', | |
alignChildren:'right', | |
pattern: Group { | |
orientation: 'row', | |
_: StaticText { text: 'Find what:' }, |
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
// JSON_.stringify - from: https://github.com/douglascrockford/JSON-js | |
"object"!=typeof JSON_&&(JSON_={}),function(){"use strict";var p,l,n,y,e=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function t(t){return t<10?"0"+t:t}function o(){return this.valueOf()}function a(t){return e.lastIndex=0,e.test(t)?'"'+t.replace(e,function(t){var e=n[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}"function"!=typeof Date.prototype.toJSON_&&(Date.prototype.toJSON_=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON_=o,Number.prototype.toJSON_=o,String.prototype.toJSON_=o),"function"!=typeof JSON_.stringify&&(n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON_.stringify=functi |
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
// non-blocking foreach | |
Application.prototype.asyncEach = function(elements, callback, i) { | |
i = i || 0; | |
var self = this; | |
(function () { | |
if (i < elements.length) { | |
if (!(callback(elements, i++) === false)) { | |
self.setTimeout(arguments.callee, 0); | |
} | |
} |
OlderNewer