emehrkay Posted February 6, 2008 Share Posted February 6, 2008 I wrote this lil block of javascript to convert seconds to minutes:seconds for a count down timer var m, s; m = (time % 60) ? Math.floor(time % 60) : 00; s = (time >= 60) ? Math.floor(time % 60) : time; if(time == 60){ m = 1; s = 00; }else if(time < 10){ s = '0' + s; } return m + ':' + s; And then for whatever reason, I searched the web for the same thing and came across this return Math.floor(seconds / 60).toFixed().pad(2,'0') + ':' + (seconds % 60).toFixed().pad(2, '0'); I was kinda jealous that I didnt come up with that. My block looks like amateur hour Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/ Share on other sites More sharing options...
tibberous Posted February 7, 2008 Share Posted February 7, 2008 Awesome. I was just about to think you were lame for bragging about the first example because it uses the ? : thing (I know what it's called, I can't spell what its called). I have no idea what toFixed does, and while it is pretty apparent what pad does, I wouldn't know it existed off the top of my head. Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460486 Share on other sites More sharing options...
GingerRobot Posted February 7, 2008 Share Posted February 7, 2008 I was kinda jealous that I didnt come up with that. My block looks like amateur hour To be honest, that tends to happen almost every time Barand answers a post that i'd previously answered. Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460582 Share on other sites More sharing options...
dreamwest Posted February 7, 2008 Share Posted February 7, 2008 Its alot less work using TERNARY OPERATORS than if/else coding. BUT of course other programmers winge its not standard but preference....I day go for preference Less lines = less loading time Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460592 Share on other sites More sharing options...
GingerRobot Posted February 7, 2008 Share Posted February 7, 2008 Less lines = less loading time Errr - no. Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460607 Share on other sites More sharing options...
dreamwest Posted February 7, 2008 Share Posted February 7, 2008 Less lines = less loading time Errr - no. Google index page <html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><style>body,td,a,p,.h{font-family:arial,sans-serif}.h{font-size:20px}.h{color:#3366cc}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}#gbar{float:left;font-weight:bold;height:22px;padding-left:2px}.gbh,.gb2 div{border-top:1px solid #c9d7f1;font-size:0;height:0}.gbh{position:absolute;top:24px;width:100%}.gb2 div{margin:5px}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;font-size:13px;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}}#gbi,.gb2{display:none;position:absolute;width:8em}.gb2{z-index:1001}#gbar a,#gbar a:active,#gbar a:visited{color:#00c;font-weight:normal}.gb2 a,.gb3 a{text-decoration:none}.gb2 a{display:block;padding:.2em .5em}#gbar .gb2 a:hover{background:#36c;color:#fff}</style><script>window.google={kEI:"csqqR_ehJqTuoASVxI3CCw",kEXPI:"17259,17735",kHL:"en"}; function sf(){document.f.q.focus()} window.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent||escape;(new Image).src="/url?sa=T"+(c?"&oi="+a(c):"")+(d?"&cad="+a(d):"")+"&ct="+a(e)+"&cd="+a(f)+(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"")+"&ei=csqqR_ehJqTuoASVxI3CCw"+g}return true}; window.gbar={};(function(){var a=window.gbar,d,h,i;function l(b,f,e){b.display=i?"none":"block";b.left=f+"px";b.top=e+"px"}a.tg=function(b){var f=0,e=0,c,m=0,n,j=window.navExtra,k,g=document;h=h||g.getElementById("gbar").getElementsByTagName("span");(b||window.event).cancelBubble=!m;if(!d){d=g.createElement(Array.every||window.createPopup?"iframe":"DIV").frameBorder="0".scrolling="no".src="#";g.body.appendChild(d).id="gbi";if(j&&h[7])for(n in j){k=g.createElement("span");k.appendChild(j[n]);h[7].parentNode.insertBefore(k,h[7]).className="gb2"}g.onclick=a.close}while(c=h[++m]){if(e){l(c.style,e+1,f+25);f+=c.firstChild.tagName=="DIV"?9:20}if(c.className=="gb3"){do e+=c.offsetLeft;while(c=c.offsetParent)}}d.style.height=f+"px";l(d.style,e,24);i=!i};a.close=function(b){i&&a.tg(b)}})();</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3><div id=gbar><nobr><span class=gb1>Web</a></span> <span class=gb1><a href="http://images.google.com.au/imghp?hl=en&tab=wi">Images</a></span> <span class=gb1><a href="http://maps.google.com.au/maps?hl=en&tab=wl">Maps</a></span> <span class=gb1><a href="http://news.google.com.au/nwshp?hl=en&tab=wn">News</a></span> <span class=gb1><a href="http://video.google.com.au/?hl=en&tab=wv">Video</a></span> <span class=gb1><a href="http://mail.google.com/mail/?hl=en&tab=wm">Mail</a></span> <span class=gb3><a href="http://www.google.com.au/intl/en/options/" onclick="this.blur();gbar.tg(event);return !1"><u>more</u> <small>▼</small></a></span> <span class=gb2><a href="http://groups.google.com.au/grphp?hl=en&tab=wg">Groups</a></span> <span class=gb2><a href="http://books.google.com.au/bkshp?hl=en&tab=wp">Books</a></span> <span class=gb2><a href="http://scholar.google.com/schhp?hl=en&tab=ws">Scholar</a></span> <span class=gb2><a href="http://blogsearch.google.com.au/?hl=en&tab=wb">Blogs</a></span> <span class=gb2><div></div></a></span> <span class=gb2><a href="http://www.google.com/calendar/render?hl=en&tab=wc">Calendar</a></span> <span class=gb2><a href="http://picasaweb.google.com.au/home?hl=en&tab=wq">Photos</a></span> <span class=gb2><a href="http://docs.google.com/?hl=en&tab=wo">Documents</a></span> <span class=gb2><a href="http://www.google.com.au/reader/view/?hl=en&tab=wy">Reader</a></span> <span class=gb2><div></div></a></span> <span class=gb2><a href="http://www.google.com.au/intl/en/options/">even more »</a></span> </nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%><nobr><b>admin@freexxxhunters.com</b> | <a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.com.au/ig%3Fhl%3Den%26source%3Diglk&usg=AFQjCNH1kEen7nYvAop6K_53cfXVwWQinQ">iGoogle</a> | <a href="https://www.google.com/accounts/ManageAccount">My Account</a> | <a href="/accounts/ClearSID?continue=http://www.google.com/accounts/Logout%3Fcontinue%3Dhttp://www.google.com.au/">Sign out</a></nobr></div><center><br clear=all id=lgpd><img alt="Google" height=110 src="/intl/en_au/images/logo.gif" width=276><br><br><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%> </td><td align=center nowrap><input name=hl type=hidden value=en><input maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr><tr><td align=center colspan=3><font size=-1><span style="text-align:left">Search: <input id=all type=radio name=meta value="" checked><label for=all> the web </label><input id=cty type=radio name=meta value="cr=countryAU"><label for=cty> pages from Australia </label></span></font></td></tr></table></form><br><br><font size=-1><span id=hp style="behavior:url(#default#homepage)"></span><script><!-- (function() {var a="http://www.google.com.au/",b=document.getElementById("hp"),c=b.isHomePage(a);_rptHp=function(){(new Image).src="/gen_204?sa=X&ct=mgyhp&cd="+(b.isHomepage(a)?1:0)};if(!c){document.write('<p><a href=/mgyhp.html onClick=document.getElementById("hp").setHomepage("'+a+'");_rptHp();>Make Google Your Homepage!</a><br><br>')}; })();//--> </script><a href="/intl/en/ads/">Advertising Programmes</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">About Google</a> - <a href=http://www.google.com/ncr>Go to Google.com</a></font><p><font size=-2>©2008 Google</font></p></center></body></html> And yahoos index page: <!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Yahoo! Search - Web Search</title><meta name="description" content="The search engine that helps you find exactly what you're looking for. Find the most relevant information, video, images, and answers from all across the Web."><script></script><link rel="stylesheet" type="text/css" href="http://us.js2.yimg.com/us.js.yimg.com/lib/s3/ysch_syc_200711072041.css"><script src="http://us.js2.yimg.com/us.js.yimg.com/lib/s3/ysch_syc_200711072041.js"></script></head><body onload="init();"><div id="bd"><h1><a id="logo" href="http://www.yahoo.com/"><span class="off-left">Yahoo! Search</span></a></h1><ul id="tabs" class="tabs"><li class="on"><strong>Web</strong></li><li><a href="http://images.search.yahoo.com/images;_ylt=A0oGkjzSyqpHeCUBUVel87UF?ei=UTF-8&fr2=tab-web&fr=">Images</a></li><li><a href="http://video.search.yahoo.com/video;_ylt=A0oGkjzSyqpHeCUBUlel87UF?ei=UTF-8&fr2=tab-web&fr=">Video</a></li><li><a href="http://search.yahoo.com/yp;_ylt=A0oGkjzSyqpHeCUBU1el87UF?ei=UTF-8&fr2=tab-web&fr=">Local</a></li><li><a href="http://search.yahoo.com/products;_ylt=A0oGkjzSyqpHeCUBVFel87UF?ei=UTF-8&fr2=tab-web&fr=">Shopping</a></li><li class="last"><a id="vm-link" class="menu-link" href="http://tools.search.yahoo.com/about/forsearchers.html">more</a><div id="vm-menu" class="menu hidden"><ul><li><a href="http://answers.yahoo.com/;_ylt=A0oGkjzSyqpHeCUBVVel87UF?ei=UTF-8&fr2=tab-web&fr=">Answers</a></li><li><a href="http://audio.search.yahoo.com/audio;_ylt=A0oGkjzSyqpHeCUBVlel87UF?ei=UTF-8&fr2=tab-web&fr=">Audio</a></li><li><a href="http://search.yahoo.com/dir;_ylt=A0oGkjzSyqpHeCUBV1el87UF?ei=UTF-8&fr2=tab-web&fr=">Directory</a></li><li><a href="http://search.yahoo.com/jobs;_ylt=A0oGkjzSyqpHeCUBWFel87UF?&keywords_all=&fr2=tab-web&fr=">Jobs</a></li><li><a href="http://news.search.yahoo.com/news;_ylt=A0oGkjzSyqpHeCUBWVel87UF?ei=UTF-8&fr2=tab-web&fr=">News</a></li><li><a href="http://rds.yahoo.com/_ylt=A0oGkjzSyqpHeCUBWlel87UF/SIG=129rn5975/EXP=1202461778/**http%3a//tools.search.yahoo.com/about/forsearchers.html">All Search Services</a></li></ul><div></div><ul><li><a href="http://searchmarketing.yahoo.com/arp/srch_ss.php?o=US2117&cmp=Yahoo&ctv=SERP_tab&s=Y&s2=S&s3=&b=25">Advertising Programs</a></li></ul></div></li></ul><form id="sf" action="http://search.yahoo.com/search;_ylt=A0oGkjzSyqpHeCUBW1el87UF"><div><label for="yschsp" class="off-left">Web Search</label><input type="text" id="yschsp" name="p" value=""><input type="submit" class="ygbt" value="Search"><input type="hidden" name="ei" value="UTF-8"><input type="hidden" name="iscqry" id="iscqry"><input type="hidden" name="fr" value="sfp"><div id="atg" class="panel hidden"><ul id="atgl"></ul></div></div></form><div id="so"><a id="so-link" class="menu-link" href="http://search.yahoo.com/preferences/preferences">Options</a><div id="so-menu" class="menu hidden"><ul><li><a href="http://search.yahoo.com/web/advanced?ei=UTF-8">Advanced Search</a></li><li><a href="http://search.yahoo.com/preferences/preferences?pref_done=http%3A%2F%2Fsearch.yahoo.com%2F%3Fei%3DUTF-8&.bcrumb=7928fa4ad02d8b4fdad03f7be312199e,1202375378">Preferences</a></li></ul><div></div><ul><li><a href="http://searchmarketing.yahoo.com/arp/srch_ss.php?o=US2117&cmp=Yahoo&ctv=SERP_tab&s=Y&s2=S&s3=&b=25">Advertising Programs</a></li><li><a href="http://help.yahoo.com/l/us/yahoo/search/basics/basics-23.html">About This Page</a></li></ul></div></div></div><div id="ft"><hr><p class="copyright"><span>© 2008 Yahoo!</span> <a href="http://privacy.yahoo.com/">Privacy</a> / <a href="http://info.yahoo.com/legal/us/yahoo/utos/utos-173.html">Legal</a> - <a href="http://search.yahoo.com/info/submit.html">Submit Your Site</a></p></div><form name="hf"><div><input type="hidden" name="qry"><input type="hidden" name="ei" value="UTF-8"></div></form><script>if(typeof YAHOO=="undefined"){YAHOO={};}YAHOO.SPLD={};YAHOO.SPLD.resources=[['http://us.js2.yimg.com/us.js.yimg.com/lib/s3/shainew_200801151557.css','css'],['http://us.js2.yimg.com/us.js.yimg.com/lib/s3/shainew_200801111833.js','js'],['http://us.js2.yimg.com/us.yimg.com/i/us/sch/gr3/ngsprt_srp_20080104a.png','image'],['http://us.js2.yimg.com/us.yimg.com/i/us/sch/el/ng_bg.png','image']];YAHOO.SPLD.schbox=document.getElementById("yschsp");YAHOO.SPLD.preloadFlag=0;YAHOO.SPLD.tmpImage=null;YAHOO.SPLD.CustomFunctions={preload:function(){var yspld=YAHOO.SPLD;var ysres=yspld.resources;if(yspld.preloadFlag===1){return;} yspld.preloadFlag=1;var newIframe=document.createElement('iframe');newIframe.setAttribute('name','hiddenFrame');newIframe.setAttribute('id','hiddenFrame');newIframe.style.width='0px';newIframe.style.height='0px';newIframe.style.display='none';document.body.appendChild(newIframe);var frameHandle=document.getElementById("hiddenFrame");var frameDoc=false;if(frameHandle){if(frameHandle.contentDocument) frameDoc=frameHandle.contentDocument;else if(frameHandle.contentWindow) frameDoc=frameHandle.contentWindow.document;else frameDoc=frameHandle.document;var frameHead=frameDoc.getElementsByTagName('head')[0];if(!frameHead){frameDoc.open();frameDoc.writeln("<html><head></head></html>");frameDoc.close();frameHead=frameDoc.getElementsByTagName('head')[0];} for(var i=0;i<ysres.length;i++){if(ysres[i][0]){if(ysres[i][1]==='image'){yspld.tmpImage=new Image();yspld.tmpImage.src=ysres[i][0];} else if(ysres[i][1]==='css'){var newLnk=frameDoc.createElement('link');newLnk.setAttribute('href',ysres[i][0]);newLnk.setAttribute('rel','stylesheet');newLnk.setAttribute('type','text/css');newLnk.setAttribute('media','all');frameHead.appendChild(newLnk);} else if(ysres[i][1]==='js'){var scriptNode=frameDoc.createElement('script');scriptNode.setAttribute('type','text/javascript');scriptNode.setAttribute('src',ysres[i][0]);frameHead.appendChild(scriptNode);}}}}}};if(YAHOO.SPLD.schbox){if(window.attachEvent){YAHOO.SPLD.schbox.attachEvent('onkeypress',YAHOO.SPLD.CustomFunctions.preload);}else if(window.addEventListener){YAHOO.SPLD.schbox.addEventListener("keypress",YAHOO.SPLD.CustomFunctions.preload,false);}}</script></body></html><!-- m26.search.sk1.yahoo.com uncompressed Thu Feb 7 01:09:38 PST 2008 --> PROOF!! Just look at the style sheet no unwanted white space/lines Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460614 Share on other sites More sharing options...
GingerRobot Posted February 7, 2008 Share Posted February 7, 2008 I really cant be bothered to have this argument with you. Ill just stick with my previous statement. Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460615 Share on other sites More sharing options...
emehrkay Posted February 7, 2008 Author Share Posted February 7, 2008 @tibberous - I like that one line because it is the perfect example of how the language is supposed to be used. My original code (the one I posted was wrong using % for minutes) works just the same, but it doesnt take advantage of the JavaScript Object structure. pad() was a prototype to the String object written by the same guy. That too was pretty well written. String.prototype.pad = function(l, s){ return ((l -= this.length) > 0 ) ? (s = new Array(Math.ceil(l / s.length) + 1).join(s)).substr(0, s.length) + this + s.substr(0, l - s.length) : this; }; Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460820 Share on other sites More sharing options...
effigy Posted February 7, 2008 Share Posted February 7, 2008 Camel code: #!/usr/bin/perl -w # camel code use strict; $_='ev al("seek\040D ATA,0, 0;");foreach(1..3) {<DATA>;}my @camel1hump;my$camel; my$Camel ;while( <DATA>){$_=sprintf("%-6 9s",$_);my@dromedary 1=split(//);if(defined($ _=<DATA>)){@camel1hum p=split(//);}while(@dromeda ry1){my$camel1hump=0 ;my$CAMEL=3;if(defined($_=shif t(@dromedary1 ))&&/\S/){$camel1hump+=1<<$CAMEL;} $CAMEL--;if(d efined($_=shift(@dromedary1))&&/\S/){ $camel1hump+=1 <<$CAMEL;}$CAMEL--;if(defined($_=shift( @camel1hump))&&/\S/){$camel1hump+=1<<$CAMEL;}$CAMEL--;if( defined($_=shift(@camel1hump))&&/\S/){$camel1hump+=1<<$CAME L;;}$camel.=(split(//,"\040..m`{/J\047\134}L^7FX"))[$camel1h ump];}$camel.="\n";}@camel1hump=split(/\n/,$camel);foreach(@ camel1hump){chomp;$Camel=$_;y/LJF7\173\175`\047/\061\062\063\ 064\065\066\067\070/;y/12345678/JL7F\175\173\047`/;$_=reverse; print"$_\040$Camel\n";}foreach(@camel1hump){chomp;$Camel=$_;y /LJF7\173\175`\047/12345678/;y/12345678/JL7F\175\173\0 47`/; $_=reverse;print"\040$_$Camel\n";}';;s/\s*//g;;eval; eval ("seek\040DATA,0,0;");undef$/;$_=<DATA>;s/\s*//g;( );;s ;^.*_;;;map{eval"print\"$_\"";}/.{4}/g; __DATA__ \124 \1 50\145\040\165\163\145\040\157\1 46\040\1 41\0 40\143\141 \155\145\1 54\040\1 51\155\ 141 \147\145\0 40\151\156 \040\141 \163\16 3\ 157\143\ 151\141\16 4\151\1 57\156 \040\167 \151\164\1 50\040\ 120\1 45\162\ 154\040\15 1\163\ 040\14 1\040\1 64\162\1 41\144 \145\ 155\14 1\162\ 153\04 0\157 \146\ 040\11 7\047\ 122\1 45\15 1\154\1 54\171 \040 \046\ 012\101\16 3\16 3\15 7\143\15 1\14 1\16 4\145\163 \054 \040 \111\156\14 3\056 \040\ 125\163\145\14 4\040\ 167\1 51\164\1 50\0 40\160\ 145\162 \155\151 \163\163 \151\1 57\156\056 Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460852 Share on other sites More sharing options...
emehrkay Posted February 7, 2008 Author Share Posted February 7, 2008 That camel code is amazing Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460926 Share on other sites More sharing options...
zq29 Posted February 7, 2008 Share Posted February 7, 2008 I agree, amazing! Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-460932 Share on other sites More sharing options...
Daniel0 Posted February 7, 2008 Share Posted February 7, 2008 What does it do? Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-461036 Share on other sites More sharing options...
effigy Posted February 7, 2008 Share Posted February 7, 2008 It outputs this: mJXXLm. .mJXXLm JXXXXXXXXL. JXXLm. .mJXXL .JXXXXXXXXL {XXXXXXXXXXX. JXXXmXXXXm mXXXXmXXXL .XXXXXXXXXXX} .XXXXXXXXXXXXXL. {XXXXXXXXXF 7XXXXXXXXX} .JXXXXXXXXXXXXX. JXXXXXXXXXXXXXXXXL.`XXXXXX. .XXXXXX'.JXXXXXXXXXXXXXXXXL JXXXXXXXXXXXXXXXXXXXmXXXXXXX. .XXXXXXXmXXXXXXXXXXXXXXXXXXXL .XXXXXXXXXXXXXXXXXXXXXXXXXXXXX} {XXXXXXXXXXXXXXXXXXXXXXXXXXXXX. .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXF 7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX'7XXXXXXXXXXXXXXXXXXXXXXXXXF 7XXXXXXXXXXXXXXXXXXXXXXXXXF`XX XX {XXXFXXXXXXXXXXXXXXXXXXXF' `7XXXXXXXXXXXXXXXXXXX7XXX} XX `X}{XXX'7XXXFXXXXX^XXXXX `' `' XXXXX^XXXXX7XXXF`XXX}{X' `'XXX' {XXX'XXXXX 7XXXF 7XXXF XXXXX`XXX} `XXX`' .XX} {XXF {XXXX}`XXX} {XXX'{XXXX} 7XX} {XX. {XX `XXL `7XX} 7XX} {XXF {XXF' JXX' XX} `XX `XXL mXXF {XX XX} 7XXm JXX' XX' XX 7XXXF `XX XX' 7XXXF XX XX. JXXXX. 7X. .XF .XXXXL .XX {XXL 7XF7XXX. {XX XX} .XXXF7XF JXX} `XXX' `XXXm mXXX' `XXX' ^^^^^ ^^^^^ .mJXXLm mJXXLm. .mJXXL .JXXXXXXXXL JXXXXXXXXL. JXXLm. mXXXXmXXXL .XXXXXXXXXXX} {XXXXXXXXXXX. JXXXmXXXXm 7XXXXXXXXX} .JXXXXXXXXXXXXX. .XXXXXXXXXXXXXL. {XXXXXXXXXF .XXXXXX'.JXXXXXXXXXXXXXXXXL JXXXXXXXXXXXXXXXXL.`XXXXXX. .XXXXXXXmXXXXXXXXXXXXXXXXXXXL JXXXXXXXXXXXXXXXXXXXmXXXXXXX. {XXXXXXXXXXXXXXXXXXXXXXXXXXXXX. .XXXXXXXXXXXXXXXXXXXXXXXXXXXXX} XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXF 7XXXXXXXXXXXXXXXXXXXXXXXXXF`XX XX'7XXXXXXXXXXXXXXXXXXXXXXXXXF `7XXXXXXXXXXXXXXXXXXX7XXX} XX XX {XXXFXXXXXXXXXXXXXXXXXXXF' `' XXXXX^XXXXX7XXXF`XXX}{X' `X}{XXX'7XXXFXXXXX^XXXXX `' 7XXXF XXXXX`XXX} `XXX`' `'XXX' {XXX'XXXXX 7XXXF {XXX'{XXXX} 7XX} {XX. .XX} {XXF {XXXX}`XXX} {XXF {XXF' JXX' XX} {XX `XXL `7XX} 7XX} XX} 7XXm JXX' XX' `XX `XXL mXXF {XX XX' 7XXXF XX XX 7XXXF `XX .XF .XXXXL .XX XX. JXXXX. 7X. XX} .XXXF7XF JXX} {XXL 7XF7XXX. {XX mXXX' `XXX' `XXX' `XXXm ^^^^^ ^^^^^ The use of a camel image in association with Perl is a trademark of O'Reilly & Associates, Inc. Used with permission. Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-461046 Share on other sites More sharing options...
phpSensei Posted February 7, 2008 Share Posted February 7, 2008 <?php $l1 = ('Hello world'); for ($lI=$ll=0 ;$ll>=$lI;$ll++&&$lI++//$II+* ){z($l1[ $ll %= 4 ]);/*$II+=$lI<<$ll*///$II++ if($lI != ($ll % true) + 2);// don't touch this!!! else break;}z('o');z('!');z("\x21\x0a"); // what's this??? // function exit(); // function z($l1='$?\"'){printf("%s",$l1);}; //?> LOL, I found this beautiful Quote Link to comment https://forums.phpfreaks.com/topic/89817-you-ever-see-a-piece-of-beautiful-code/#findComment-461188 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.