Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I am horny

Name: Anonymous 2011-10-13 23:17

Can you tell from these codes:

function NumeralBase(base_str){
        if (base_str.length < 2) {
                throw "Base must be at least 2";
        }
        this.base = base_str.split('');
}
NumeralBase.prototype.encode = function(chr){
        var code = chr.charCodeAt(0);
        var blen = this.base.length;
        var encoded = '';        var c;
        for(c = code; c > 0; c = Math.floor(c / blen)){
                encoded = this.base[c % blen] + encoded;
        }
        return encoded;
}
String.prototype.encode = function(nbase){
        if (nbase != '(.)') {
                var base = new NumeralBase(nbase);
                return this.split("").map(function(x){return base.encode(x)}).join(' ')
        }
        var x = [];
        for(var i = 0; i < 3; i++){
                for(var j = 0; j < 3; j++){
                        if (i == j) continue;
                        for(var k = 0; k < 3; k++){                                if (k == i || k == j) continue;
                                var base = new NumeralBase(nbase[i]+nbase[j]+nbase[k]);                                x[x.length] = this.split("").map(function(x){return base.encode(x)}).join(' ')
                        }
                }
        }
        x.sort(function(y){var c = y.match(/\( ?\. ?\) ?\( ?\. ?\)/g); return c ? c.length : 0});
        return x[x.length - 1];
}

Name: Anonymous 2011-10-13 23:19

Fucking MacOS X terminal screwed up my copy-n-paste.  Here you go again:

function NumeralBase(base_str){
        if (base_str.length < 2) {
                throw "Base must be at least 2";
        }
        this.base = base_str.split('');
}
NumeralBase.prototype.encode = function(chr){
        var code = chr.charCodeAt(0);
        var blen = this.base.length;
        var encoded = '';
        var c;
        for(c = code; c > 0; c = Math.floor(c / blen)){
                encoded = this.base[c % blen] + encoded;
        }
        return encoded;
}
String.prototype.encode = function(nbase){
        if (nbase != '(.)') {
                var base = new NumeralBase(nbase);
                return this.split("").map(function(x){return base.encode(x)}).join(' ')
        }
        var x = [];
        for(var i = 0; i < 3; i++){
                for(var j = 0; j < 3; j++){
                        if (i == j) continue;
                        for(var k = 0; k < 3; k++){
                                if (k == i || k == j) continue;
                                var base = new NumeralBase(nbase[i]+nbase[j]+nbase[k]);
                                x[x.length] = this.split("").map(function(x){return base.encode(x)}).join(' ')
                        }
                }
        }
        x.sort(function(y){var c = y.match(/\( ?\. ?\) ?\( ?\. ?\)/g); return c ? c.length : 0});
        return x[x.length - 1];
}

Name: Anonymous 2011-10-13 23:40

That code looks like it would be really slow.

Name: Anonymous 2011-10-13 23:44

>>2
.map
Why have .map(f) as a method instead of a higher-order function?

Name: Anonymous 2011-10-14 0:16

>>4
What do you have against higher order methods?

Name: Anonymous 2011-10-14 0:25

>>4
>>5

back to /g/

Name: Anonymous 2011-10-14 0:31

>>6
fuck off and die you cock sucking faggot

also, optimize your quoting

Name: Anonymous 2011-10-14 1:03

None of you faggots can tell which lines show OP is horny.  Entirely understandable.

Name: Anonymous 2011-10-14 1:04

>>8
Each one of them -- knowing how to code implies lack of social skills, which implies lack of sexual activity, which implies unresolved horniness.

Name: Anonymous 2011-10-14 2:23

>>9
;_;

Name: Anonymous 2011-10-14 2:27

>>6
Wait hang on. If you're against high-order programming I think maybe you ought to hang out in /g/.

Name: Anonymous 2011-10-14 4:17

>>11

Can you stop saying high(er)-order?

You look like a faggot who just discovered babby's first swear word.

Name: Anonymous 2011-10-14 4:26

>>12
Can you stop saying 'faggot' ... ?

It happened to be the point of discussion, so it's pointless to avoid mentioning it.

Name: HAXEL FOX 2011-10-14 5:04

>>1
From these codes i can tell that OP is a giant script faggot.

When is the last time you coded up something in a REAL language?

Name: Anonymous 2011-10-14 6:38

>>9 your answer reminded me of that milf from Alaska when she was asked to name what newspapers she read.

Don't change these.
Name: Email:
Entire Thread Thread List