Skip to content

Instantly share code, notes, and snippets.

@kanghyojun
Created December 24, 2013 06:18
Show Gist options
  • Select an option

  • Save kanghyojun/8109476 to your computer and use it in GitHub Desktop.

Select an option

Save kanghyojun/8109476 to your computer and use it in GitHub Desktop.
<html
><head>
</head><body
><p class="nnn"
id="d"></p></body>
<script type="text/javascript">
a=Math.floor;b=Math.random;c=function(){
return a(b()*3);};d=['*','+','-', '='];n='&nbsp;';
i=0;g='';l=10;while(true){y=0;m=l-i;for(p=0;p<m;p++){g+=n;}
while(true){y+=1;g+=d[c()];if(y==i*2+1){break;}}i+=1;g+='<br/>';
if(i>l){break;}}i=0;h=parseInt(l/2);while(true){for(j=0;j<l-1;j++) {
g+=n;}for(j=0;j<h;j++){
g+=d[c()];}g+= '<br/>' ;
i+=1;if(i==h){break;} }
for(i= 0;i<l*2+1;i++) {
g+=d[c()];}(function(x){
z=document.getElementById(
"d"); z.innerHTML=x;})(g);
console.log("Merry christmas");</script></html>
@kanghyojun
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment