Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is
This file contains hidden or 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
| { | |
| "// info": "Template for a 2x2x2 tree", | |
| "main": [ | |
| { "branch": "idea-1 clauses" }, | |
| { "branch": "idea-2 clauses" } | |
| ], | |
| "// idea-1 info": "", | |
| "idea-1 clauses": [ |
This file contains hidden or 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
| # Quick hack of regular expressions to convert twitter bootstrap from LESS to Stylus | |
| less2stylus = (string) -> | |
| string = string | |
| .replace(/^(\ *)(.+)\ +\{\ *\n?\ */mg, "$1$2\n$1 ") # remove opening brackets | |
| .replace(/^(\ *)([^\ \n]+)\ +\{\ *\n?\ */mg, "$1$2\n$1 ") # remove opening brackets | |
| .replace(/\ *\{\ *\n*/g, "\n") # remove opening brackets again (some random cases I'm too lazy to think through) | |
| .replace(/\ *\}\ *\n*/g, "\n") # remove closing brackets | |
| .replace(/\;\ *?$/gm, "") # remove semicolons | |
| .replace(/@(\w+):(\ *)\ /g, (_, $1, $2) -> # replace @variable: with $variable = | |
| "$#{$1}#{$2} = " |