|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Oct 2006
Posts: 997
|
I'm still amazing how tiny lines of code can produce such beautiful things.
I'm truly in awe of programmers.
It's like when you're a kid and wonder how a needle and those little grooves on the album can produce such wonderful music... |
|
|
|
|
|
#2 |
|
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,392
|
You will be surprised but it's very easy to learn some programming language and basic algorithms. After that you will be able to write your own code.
When I wrote my first program its was a really magical feeling, because being able to write code is something like to a wizard and cast new spells that create new objects and even new words! I'm not ironic BTW.
__________________
Obey the Cowgod |
|
|
|
|
|
#3 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
![]()
__________________
![]() ![]()
|
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Location: Arizona
Posts: 8,437
|
__________________
Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts. We will guarantee and beat your current EPC to win your dating traffic! Skype: ConversionSharks || Email: info /@/ conversionsharks.com |
|
|
|
|
|
#5 |
|
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,392
|
Sure. This is not mine, but I think you will like it:
Code:
<SCRIPT type="text/javascript">
var snowmax=45
var snowcolor=new Array("#AAAACC","#DDDDFF","#CCCCDD","#F3F3F3","#F0FFFF")
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")
var snowletter="*"
var sinkspeed=0.6
var snowmaxsize=22
var snowminsize=8
var snowingzone=1
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie5||ns6||opera
function randommaker(range) {
rand=Math.floor(range*Math.random())
return rand
}
function initsnow() {
if (ie5 || opera) {
marginbottom = document.body.clientHeight
marginright = document.body.clientWidth
}
else if (ns6) {
marginbottom = window.innerHeight
marginright = window.innerWidth
}
var snowsizerange=snowmaxsize-snowminsize
for (i=0;i<=snowmax;i++) {
crds[i] = 0;
lftrght[i] = Math.random()*15;
x_mv[i] = 0.03 + Math.random()/10;
snow[i]=document.getElementById("s"+i)
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
snow[i].size=randommaker(snowsizerange)+snowminsize
snow[i].style.fontSize=snow[i].size
snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
snow[i].sink=sinkspeed*snow[i].size/5
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
snow[i].style.left=snow[i].posx
snow[i].style.top=snow[i].posy
}
movesnow()
}
function movesnow() {
for (i=0;i<=snowmax;i++) {
crds[i] += x_mv[i];
snow[i].posy+=snow[i].sink
snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
snow[i].style.top=snow[i].posy
if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
snow[i].posy=0
}
}
var timer=setTimeout("movesnow()",50)
}
for (i=0;i<=snowmax;i++) {
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
window.onload=initsnow
}
</SCRIPT>
__________________
Obey the Cowgod |
|
|
|
|
|
#6 |
|
Sofa King Band
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
|
|
|
|
|
|
|
#7 |
|
So Fucking Banned
Industry Role:
Join Date: Feb 2003
Location: Boston
Posts: 4,160
|
Smart programmers are the ones who benefit the most from the internet. If only I was smart enough to learn to program. I am terrible at math though. I am just lucky to have the skills that I do.
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
|
Shamelessly stolen from perlmonks.org, but...
Code:
#!/usr/bin/perl
use strict;
use warnings;
;$ "=q%ef%;$_ =q~my($i,$ x,$y,$p)=( 0,0,0,pop| |5);my$r=2
<< $p ;m y@ i= ma p[ (1 )x $r ,2
],1..$ r;subi {$i[$x ][$y]- -}i;su bp{((1 <$_[0] ?$y:$x
)- =1 -( $_ [0
]&1)*2 ,i)for -1,1}s ubf{my ($ p,$f)= @_ ;$p--; my@m=(
$f ,3 -$ f, 1- $f ); my @o =( 3- $f ,$
f, $f,$f-2)if $p>0;($_&= 3) for@o, @m;@o& &f ($p,pop@o)
,@ m& &p
(pop@m )while(@o||@m) }f$p,( $p&1)* 2;subb {y ,y4102,b#\
n, ;p ri nt }m ap {b fo r@ $_ }@
i~;y~ \n~~d; ;s&b&b &g;$;= 1; eval;# %$ _+28;$ x-=$y;
my ($ pi )= '3 .1 41
59 26535' ;$ ,= 2*2**$ [; ;my@b= map[5x $pi],1 ..$[;s
{} {q %S {$ b[ $x ][ $y ]= 0} S; su bp
{($_[0 ]>1?$y :$x+=- 1+$_[0 ]^2*2, S)for(0,1) }suba{($l,
$d
)=@_;$ l--;@m =map$_ *4,5-$ d,3-$d ,$d;@h=map $_*4,$d+2,
$d ,$ d, 3- $d if $l >0 ;{ a( $l ,s hi
ft @h)if@ h; @m &&p(sh if t@m);( @m+@h) &&redo }}a$l,
$l ^2 *2 ;p ri nt @$
_,$/fo r@b($x ,$y,$c )=qw/0 0* /;$l=s hi ft||4; $r=$s*
2* *$ l; @b =m ap [( '' )x $r ],
1..$r; for(0,1){eval[ qw/$x- -$x++$ y--$y+ +/ ]->[i$_[0]
]; $b [$
x] [$y]=$c;}@ m=split//, [q w/rdll urdruu ld /]->[i$d];
@h =s pl it // ,[ qw /u ll dd rr ul uu
rrddl/ ]->[i$ d]if$l >0;@m= sp lit//, {q w/lrdl rlurud
ru du ld /} ->
{$d};@ m=spli t//,su bstr'r dllurd ruuld' ,3*i$d ,3;@h=
sp li t/ ,{ qw /l ul ld rd rr uu
lu urdrddl/}- >{$d}if$l< 7;@m=split //,substr' ulldd'%}e;
__________________
ICQ: 284903372 |
|
|
|
|
|
#9 | |
|
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,392
|
Quote:
__________________
Obey the Cowgod |
|
|
|
|
|
|
#10 |
|
Make STACK$
Industry Role:
Join Date: Nov 2006
Location: sexy time
Posts: 14,476
|
This thread needs naked pics...
__________________
Compound interest. |
|
|
|
|
|
#11 |
|
Certified Asshole
Industry Role:
Join Date: Jan 2003
Location: In front of my laptop.
Posts: 896
|
*dreams of for (;;) { fork(); malloc (1024); }*
__________________
Living the dream. |
|
|
|
|
|
#12 | |
|
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
Quote:
How I make that a 100% external .js? i tried but it screw up my page I hate js, could be a stupid linefeed for all i know |
|
|
|
|