Skip to content

Instantly share code, notes, and snippets.

@sassembla
Created February 4, 2014 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sassembla/8802812 to your computer and use it in GitHub Desktop.
Save sassembla/8802812 to your computer and use it in GitHub Desktop.
キモいDSL
"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