Started as a status post now we're here.
This is my contribution:
Sets it to true after a growing random string of characters includes "true". I.e. when "true" randomly appears it returns true.
Here's another one simple but sweet:
This is my contribution:
JavaScript:
foo = (function(){
for (PILE = [""], i = 0; i < PILE.length; i++) {
!PILE.join("").includes("true") && (PILE.push(Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 1)));
}
return !0;
})();
Sets it to true after a growing random string of characters includes "true". I.e. when "true" randomly appears it returns true.
Here's another one simple but sweet:
JavaScript:
foo = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!0;