Skip to content

Instantly share code, notes, and snippets.

@jrencz
Last active August 29, 2015 14:01
Show Gist options
  • Save jrencz/cf9e9b51575aa894a3db to your computer and use it in GitHub Desktop.
Save jrencz/cf9e9b51575aa894a3db to your computer and use it in GitHub Desktop.
Funny names across JS projects
https://github.com/angular/angular.js/blob/25a476ea096b200fb4f422aaa9cd7215e2596ad3/src/ng/directive/select.js#L145-L146
//000011111111110000000000022222222220000000000000000000003333333333000000000000004444444444444440000000005555555555555550000000666666666666666000000000000000777777777700000000000000000008888888888
var NG_OPTIONS_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
This gist collects funny JS code fragments
https://github.com/jshint/jshint/blob/81df14b814446f0df1aa8b4d03555aa77f3fa3a6/src/jshint.js#L950
949: // .nud Null denotation
950: // .fud First null denotation
951: // .led Left denotation
FUD ;)
https://github.com/wesleytodd/YeoPress/blob/963a581a560d921090b195f9775e424d385aa3d4/app/index.js
74: // Ask the user what they want done
75: Generator.prototype.ohTellMeWhatYouWantWhatYouReallyReallyWant = function() {
158: // Git setup
159: Generator.prototype.gitIsTheShit = function() {
301: // Set some permissions
302: /* @TODO Thinking that maybe permissions should be left up to the user
303: BUT, it seems that the theme stuff needs some permissions set to work....
304: */
305: Generator.prototype.thisIsSparta = function() {
439: // All done
440: Generator.prototype.oopsIPeedMyself = function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment