post bits of code you like
1
Name:
Anonymous
2005-08-02 1:52
i shall start:
open(F,"find -type f|");
while (<F>) {
$_ = substr($_,2,-1);
print "$_\n" if $v;
push @{$dups{substr(`md5sum -b "$_"`,0,31)}}, $_;
}
close(F);
for every file in a directory it checksums the file, then adds the checksum as a key to a hash, the value being an array reference. the filename is then added to the array.
so basically the arrays have a list of files with the same checksum. i use this to find duplicates files.
121
Name:
Anonymous
2006-02-02 1:29
Reference to a pointer, so you can change the address it was pointing to in the parent scope. Ugly ugly ugly!
122
Name:
Anonymous
2006-02-02 1:40
>>121 Fails to see the obvious.
123
Name:
Anonymous
2006-02-02 2:58
>>122
Wtf? Was answering
>>120 . Don't even get me started on the rest of the code.
124
Name:
Anonymous
2006-02-02 3:20
>>119
hahaha that's wrong on so many levels.
125
Name:
Anonymous
2006-02-02 4:23
126
Name:
Anonymous
2006-02-02 10:18
#define BooleanToTrue(x) (x)
127
Name:
Anonymous
2006-02-02 10:34
>>126 wrong
#define insist(x) x = 1;
128
Name:
Anonymous
2006-02-02 21:08
>>126
>>127
Wouldn't just doing myvalue = 1; be oh so much easier and less macro magic?
129
Name:
Anonymous
2006-02-03 7:35
>>126
I did what I thought he wanted to do, not what he has done.
>>127
Of course, I was just trying to ridiculize it :)
130
Name:
Anonymous
2006-02-24 15:13
fork for(0..9);
131
Name:
Anonymous
2006-02-24 16:03
>>130
$ perl -e 'fork for (0..9);print ".";' | wc -c
1024
132
Name:
Anonymous
2006-02-27 13:45
println("fags\n");
133
Name:
Anonymous
2006-02-27 19:38
print "\n".join(("%d is a faggot" % i for i in xrange(133)))
134
Name:
Anonymous
2006-02-28 2:57
135
Name:
Anonymous
2006-02-28 3:07
try
{
learn.howtoprogram.fags();
}
catch(FagnessException e)
{
e.printStackTrace();
}
136
Name:
Anonymous
2006-02-28 3:46
>>135
You say that in Java? Lol irony
137
Name:
Anonymous
2006-02-28 4:14
Hint: you're all faggots
138
Name:
Anonymous
2006-02-28 7:58
139
Name:
Anonymous
2006-02-28 16:59
>>136
>>138
You two should have mansex and give each other manly programming language names.
140
Name:
Anonymous
2006-03-03 16:06
<style type="text/css">
textarea{text-decoration:blink;}
</style>
141
Name:
Anonymous
2006-03-03 20:23
movem.l d0-a6,-(sp)
bsr Wherever
movem.l (sp)+,d0-a6
142
Name:
Anonymous
2006-03-03 20:41
>>141
How's life now that the Amiga died long ago and you were all fooled into believing it would come back for several decades?
Don't you feel like total morons?
(Sorry if you use that CPU in your own electronics projects, but that's rather unlikely)
143
Name:
Anonymous
2006-03-04 9:16
I was never fooled into thinking the Amiga would come back, since I had an Atari STe
144
Name:
Anonymous
2006-03-11 7:32
showSep :: String -> [ShowS] -> ShowS
showSep sep = foldr (.) id . intersperse (showString sep) But can YOU tell what's going on here.
145
Name:
Anonymous
2006-03-11 10:05
I'm going back to farming. I've never seen such ugly code.
146
Name:
Anonymous
2006-03-11 10:26
147
Name:
Anonymous
2006-03-11 10:39
148
Name:
Anonymous
2006-03-12 19:40
If there's one time in my life I'm going to use the word "moonlanguage", it is now.
149
Name:
Anonymous
2006-03-13 16:15
sir, you did not directly use the word "moonlanguage". Instead you have merely spoken about using it pr--PARADOX NIGGA
150
Name:
Anonymous
2006-03-19 18:49
set polar
plot (1+sin(t))*(1+cos(8*t))*(1+0.1*cos(24*t))*(0.9+0.05*cos(200*t)) lt 2
151
Name:
Anonymous
2006-03-19 21:25
// this is the stupidest code i've ever written. all for your 4chan.
Gays *yohoho;
yohoho = (Gays *) malloc(sizeof(Gays) * manygaymen);
for(i = 0; i < numberofassholes; i++)
{
yohoho = oneGayManBehindAnotherGayMan();
}
152
Name:
Anonymous
2006-03-19 22:40
#Takes your symbols and fixes the shitty casing
def unshit(w):
if w[0].islower():
for c in w[1:]:
if c.isupper():
return w[0].upper() + w[1:]
return w
map(unshit, symbols)
153
Name:
Anonymous
2006-04-21 8:54
var fss = 0;
for (var ind=0; location.href.length>ind; ind=ind+1) {
if(location.href.substring(ind,ind+1)=="/") {fss=fss+1;}
}
if (fss==7) {
Ads_prf+=';page_type=article';
} else {
Ads_prf+=';page_type=index';
}
154
Name:
Anonymous
2006-04-22 22:54
>>152
# Takes your symbols and fixes the ShittyFormatting
sub fix {
$q=q=[A-Z]==>$qq=qq=\L$q==>$" = _,@
_=split /(?<=$qq)(?=$q)|(?<=$q$q)(?=$q$qq)/,$_[qq]]], qq; lc;;lc qq q@_q
}
map fix($_), @symbols;
155
Name:
Anonymous
2006-04-23 6:15
>>154
Perl is made from fail and win.
156
Name:
Anonymous
2006-04-23 14:57
(sage)
>>155
I guess you've never written a line of Perl in your life? Try the language before bashing it.
157
Name:
Anonymous
2006-04-23 16:53
>>156
You are made from fail and no win.
158
Name:
Anonymous
2006-04-23 18:13
Yo, I've written in perl a whole lot. Even professionally.
Guess what? Perl sucks. It has a few good things going for it (CPAN mainly), but the language itself has been surpassed by alternatives long ago.
Just so you know.
159
Name:
Anonymous
2006-04-23 18:52
>>157
>>158
Professionals? In MY world4ch?
160
Name:
Anonymous
2006-04-24 3:55
the unemployed programmer had a problem. "I know", said the programmer, "I'll just learn perl." the unemployed programmer now had two problems.
Why perl is bad for you:
http://www.underlevel.net/jordan/erik-perl.txt
Newer Posts