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
var __objectInheritanceCalculated = []; | |
while((function() | |
{ | |
/* There is a object class that has not been processed */ | |
var __t = 0; | |
for (var m in objectclasses) { __t++; } | |
if (__t <= __objectInheritanceCalculated.length) return false; | |
return true; | |
})()) | |
{ |
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
// Split colon-separated parts, unescaping (but not splitting on) any \: | |
function split(str) { | |
return str.match(/(?:\\:|[^:])+/g).map(function(part) { | |
return part.replace(/\\:/g, ':') | |
}); | |
} | |
// Eg. |
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
JS: The Hip Parts. | |
Chapters = | |
[ Comma-First is Comma Right | |
, !function Expressions! | |
, <!--Comments with Style--> | |
, Blow it Out Your Semi-Colon ] |
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
function foo(bar) { | |
return bar === baz? 'hello' | |
: bar === quux? 'hey' | |
: /*otherwise*/ 'hi' | |
} |
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
function RPS(count) { | |
this.players = count | |
this.score = range(count).map(Const(0)) | |
this.moves = range(count).map(limit(Array,0)) | |
} | |
RPS.prototype.beats = { "rock": "scissors", | |
"paper": "rock", | |
"scissors": "paper" } |
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
-- for testing | |
function server(url) | |
return function (tbl) | |
print(url) | |
for k,v in pairs(tbl) do | |
print(k,v) | |
end | |
end | |
end |
OlderNewer