HotelCalifornia.js

<Krishean> function echo(a){return WScript.Echo(a);}
<Krishean> function exit(a){return WScript.Quit(a);}
<Krishean> exit(main());
<Krishean> function main(){
<Krishean> 
<Krishean>  var h=new hotel();
<Krishean>  h.name='california';
<Krishean>  h.guest.addEvent('checkout');
<Krishean>  h.guest.removeEvent('leave');
<Krishean> 
<Krishean>  echo(print_r(h));
<Krishean> 
<Krishean>  return 0;
<Krishean> }
<Krishean> function hotel(){
<Krishean>  this.name='';
<Krishean>  this.guest={
<Krishean>   'events': ['leave'],
<Krishean>   'addEvent': function(a){
<Krishean>    this.events.push(a);
<Krishean>    return;
<Krishean>   },
<Krishean>   'removeEvent': function(a){
<Krishean>    if(Array_indexOf(this.events,a)!=-1){
<Krishean>     Array_remove(this.events,a);
<Krishean>    }
<Krishean>    return;
<Krishean>   }
<Krishean>  };
<Krishean> }
<Krishean>  // Array_indexOf( array, value, begin, strict ) - Return index of the first element that matches value
<Krishean> function Array_indexOf(a,v,b,s){for(var i=+b||0,l=a.length;i<l;i++)if(a[i]===v||s&&a[i]==v)return i;return -1;}
<Krishean>  // Array_remove( array, value ) - Remove all array elements that match value
<Krishean> function Array_remove(a,v){for(var i=0;i<a.length;i++){if(a[i]==v){a.splice(i,1);i--;}}return a;}
<Krishean> function print_r(arr,lvl){ // debugging, print out variables
<Krishean>  var out='';
<Krishean>  if(!lvl)lvl=0;
<Krishean>  var pad='';
<Krishean>  if(lvl)for(var i=0;i<lvl+1;i++)pad+='    ';
<Krishean>  if(typeof(arr)=='object'){
<Krishean>   var typ=new String(arr.constructor);
<Krishean>   out+=typ.substring(typ.indexOf(' ')+1,typ.indexOf('('))+"\n"+pad+"(\n";
<Krishean>   for(var i in arr)out+=((typeof(arr[i])=='object')?(pad+'    ['+i+'] => '+print_r(arr[i],lvl+1)+"\n"):(pad+'    ['+i+'] => "'+arr[i]+"\"\n"));
<Krishean>   out+=pad+')';
<Krishean>  }else{
<Krishean>   var typ=new String(arr.constructor);
<Krishean>   out='===>'+arr+'<===('+typ.substring(typ.indexOf(' ')+1,typ.indexOf('('))+')';
<Krishean>  }
<Krishean>  return out;
<Krishean> }
<Krishean>  // done
<Krishean> you can actually run that

Eat X and You’ll Find Random Things In Your Pockets

<PlasticYakuza> everytime I eat x for two-three days straight I always end up with the most random shit in my pockets
<PlasticYakuza> melted twix and rocks in these pants
<PlasticYakuza> shit ton of change too
<PlasticYakuza> got laundry covered this week at least
<PlasticYakuza> cigarette butts in my cargo pockets
<PlasticYakuza> I dont even smoke anymore
<Krishean> lol
<Gunrunner_Gray> The crazy journeys on x
<Krishean> do you remember what you do on x?
<PlasticYakuza> I didnt even go anywhere other than to walmart/donki's a coupel times
<PlasticYakuza> yeah
<PlasticYakuza> but I drank a lot as well
<PlasticYakuza> and ate some xanax too
<PlasticYakuza> so the events of the last few days are kind of foggy
<Krishean> well thats not good
<Cai> that's good
<Krishean> whats the point if you cant remember it
<Gunrunner_Gray> Exactly
<Gunrunner_Gray> It's not like you had a digital camera conveniently nearby
<PlasticYakuza> sometimes I like to not remember
<PlasticYakuza> also I have a camera on my phone but all there are pictures of is a bathtub full of glowstick innards
<PlasticYakuza> that came out really blurry