Created
February 4, 2014 12:33
-
-
Save sassembla/8802812 to your computer and use it in GitHub Desktop.
キモいDSL
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
"transform<-path, crossed, messages": { | |
"code": " | |
import os\n | |
name = os.path.basename(inputs[\"path\"])\n | |
onselected = []\n | |
messages = inputs[\"messages\"]\n | |
for message in messages:\n | |
\tselector = []\n | |
\tfilteringContents = {\"name\":\"quickfix\", \"source\":message}\n | |
\tfilteringAPI = {\"filtering\":filteringContents}\n | |
\tselector.append(filteringAPI)\n | |
\ttooltipItem = {}\n | |
\ttooltipItem[message] = selector\n | |
\nonselected.append(tooltipItem)\n | |
output({\"name\":name, \"onselected\":onselected})\n", | |
"selector": { | |
"showToolTip<-name, onselected": { | |
"oncancelled": { | |
"showAtLog": { | |
"message": "nothing" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment