Metaprogramming - sgml/signature GitHub Wiki
- vaniquery
- react2vue
- vue2react
- react2webcomponents: https://github.com/bitovi/react-to-web-component
- grunt2gulp: https://runkit.com/embed/6c6pd8r0k9zk
- https://dev.to/this-is-learning/the-reflect-api-the-swiss-army-knife-every-javascript-developer-needs-512k
- https://github.com/yeungon/In-JavaScript-we-trust
<Cfloop from="1" to="100" index="i">
<Cfif i mod 15 eq 0>FizzBuzz
<Cfelseif i mod 5 eq 0>Fizz
<Cfelseif i mod 3 eq 0>Buzz
<Cfelse><Cfoutput>#i# </Cfoutput>
</Cfif>
</Cfloop>
<cfscript>
result = "";
for(i=1;i<=100;i++){
result=ListAppend(result, (i%15==0) ? "FizzBuzz": (i%5==0) ? "Buzz" : (i%3 eq 0)? "Fizz" : i );
}
WriteOutput(result);
</cfscript>
- https://javascript.info/proxy
- https://www.phpied.com/intercepting-new-image-src-requests/
- https://www.bitovi.com/blog/long-live-es6-proxies
- https://blog.bitsrc.io/a-practical-guide-to-es6-proxy-229079c3c2f0
- https://www.vuemastery.com/courses/advanced-components/evan-you-on-proxies/
- https://blog.logrocket.com/use-es6-proxies-to-enhance-your-objects/
- https://www.sitepoint.com/es6-proxies/
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack
- https://docs.python.org/2/library/traceback.html
public class ExtractCommentsDoclet { public static boolean start(RootDoc root) throws IOException { for (ClassDoc c : root.classes()) { print(c.qualifiedName(), c.commentText()); for (FieldDoc f : c.fields(false)) { print(f.qualifiedName(), f.commentText()); } for (MethodDoc m : c.methods(false)) { print(m.qualifiedName(), m.commentText()); if (m.commentText() != null && m.commentText().length() > 0) { for (ParamTag p : m.paramTags()) print(m.qualifiedName() + "@" + p.parameterName(), p.parameterComment()); for (Tag t : m.tags("return")) { if (t.text() != null && t.text().length() > 0) print(m.qualifiedName() + "@return", t.text()); } } } } return true; } private static void print(String name, String comment) throws IOException { if (comment != null && comment.length() > 0) { new FileWriter(name + ".txt").append(comment).close(); } } }
const fs = require('fs'); const extract = require('extract-comments'); fs.readFile('/path/to/your/file.js', 'utf8', function(err, data) { if (err) throw err; const comments = extract(data); console.log(comments); });