Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.57 KB | None | 0 0
  1. *xx= "De"
  2. "ar %" "s:n"
  3. "Consta" "nts ar"
  4. "e red, " "variable"
  5. "s are blue.nIf lo"
  6. "ve had a syntax, I"
  7. "'d highlight you"
  8. ".n",n[9];main(
  9. ){printf(xx,
  10. gets(n))
  11. ;xx;
  12. }
  13.  
  14. $ echo Ilana | ./vanentine
  15. Dear Ilana:
  16. Constants are red, variables are blue.
  17. If love had a syntax, I'd highlight you.
  18.  
  19. java that_day <The name of your girlfriend/boyfriend>
  20.  
  21. v
  22. v _ v _v# 1<
  23. >~:"!"-^ >10g1+:10p0p:^>" "37*2+2p"v"63*2+:"g"2p2+2p" "10p^
  24. | -" "<
  25. v <
  26.  
  27.  
  28. > 92+:*91+9*v v:+19*2*5+<
  29. v*66*5+2*37*<>7+v v1*<>*91+9*7v^29<
  30. v3<>*7+89*v 4 <>9v v+<>*3^ >+9v^*<
  31. v<>9^ v,_@^8*:+<>v v<>9^ >1v^<
  32. v*+ *>:^ ^<>v v<>^ +.^
  33. >v^< ^<>v v<>^ v<>^
  34. >v^1< ^1<**>4^ v4<>^
  35. >+v^9< v*<>4^
  36. >9v^*7< v+3<>+^
  37. >1+v^*< v2<>*1^
  38. >:v^44< v8*<>7^
  39. >*1v^*< v4<>*4^
  40. >+v^7*< v9*<>7^
  41. >92v^4< v2<>5*^
  42. >+v^4< v+<>3^
  43. >5v^*:<>*^
  44. >*v>2^
  45. >^
  46.  
  47. eval's unable to compute a hint,
  48. when I write perl, I think of you;
  49. I think of you at every '. print'
  50. just be with me, since I love you
  51. '
  52. ;;@_= split//,
  53. $@;$"=$^I, $_=0.00.106.
  54. 117.115.116.032.0115.0105.
  55. 110.99.101.32.116.104.101.
  56. 32.118.105.111.108.101.116
  57. .115.32.97.114.0101.032.
  58. 98.108.117.101.10."@_[
  59. 14,11] @_[20,49] @_[
  60. 46,1,6,11,2,4,33
  61. ,02,013], @{[
  62. shift]}$/"
  63. ,print
  64.  
  65. $ perl valentine.pl $NAME
  66.  
  67. just be with me, since I love you
  68. just since the violets are blue
  69. be my valentine, $NAME
  70.  
  71. +[->,10-]>>5+[-<6+>] <++.........>8+[-<8+
  72. >]<-.>7+[-<7->]<.-.6-.>9+[-<10+ >]<3-......>5+[-<6->]<.>7+[-<7->]<--
  73. .+.>7+[-<7+>]<.>9+[-<9->]<4-.>4+[-<5+> ]<++........>4+[-<4+>]<-.>4+[-<4->]<+......>
  74. 9+[-<10+>]<++..>9+[-<10->]<--......>7+[-< 8+>]<4+.>9+[-<9->]<-.>4+[-<5+>]<++.......>4+[-<
  75. 4+>]< -.>4+[-<4->]<+.......>9+[-<10+>]<++..>9+[-<10->]<--.......>7+[-<8+>]<4+.>7+[-<8->]<4-...
  76. .....>6+[-<6+>]<.>5+[-<6+>]<3+.4-.>4+[-<4+>]<+.>9+[-<9->]<-.[-]<<[11+<]>[.>]10+.>4+[-<5+>]<++.
  77. .....>9+[-<10+>]<++.>9+[-<10->]<--........>9+[-<10+>]<++..>9+[-<10->]<--........>9+[-<10+>]<++.>
  78. 10+[-<11->]<4-.>4+[-<5+>]<++......>9+[-<10+>]<++.>9+[-<10->]<--.>8+[-<8+>]<-.......>5+[-<6+>]<-.
  79. .>5+[-<6->]<+.......>8+[-<8->]<+.>9+[-<10+>]<++.>10+[-<11->]<4-.>4+[-<5+>]<++......>9+[-<10+>]<+
  80. +.>8+[-<9->]<5-.>4+[-<4->]<+.13+.....13-.>7+[-<8+>]<4+.>6+[-<7->]<3-.>4+[-<4->]LOVEME<+.13+.....
  81. 13-.>7+[-<8+>]<4+.>5+[-<6+>]<++.>9+[-<10->]<--.......>6+[-<7+>]<.>6+[-<6+>]<+.6-.5+.>9+[-<9->]<3+.
  82. >8+[-<9+>]<5+.8-.>8+[-<9->]<3+.>8+[-<8+>]<+.13+.10-.>8+[-<8->]<4-.>9+[-<9+>]<3+.5-.8-.--.>4+[-<4+>
  83. ]<-.12-.3-.13+.>10+[-<10->]<4-.>4+[-<5+>]<++.....>4+[-<4+>]<-.>4+[-<4->]<+..8+.8-.....9+.9-..8+.8-
  84. .....9+.9-..>7+[-<8+>]<4+.>7+[-<8->]<4-......>9+[-<10+>]<3-.>4+[-<4->]<--.>8+[-<9->]<3+.>9+[-<9+>]
  85. <++.11-.7-.11+..>8+[-<9->]<4-.>9+[-<9+>]<+.3+.9-.7-.>8+[-<9->]<3+.>9+[-<9+>]<3+.12-.3-.>8+[-<9->]<
  86. 3+.>8+[-<9+>]<-.6-.11+.11-.>4+[-<5+>]<3+.+.>9+[-<10->]<++.-.>4+[-<5->]<--.>4+[-<5+>]<++....>4+[-
  87. <4+>]<-.>4+[-<4->]<+.>7+[-<8+>]<4+.>7+[-<8->]<4-..13+.....13-.8+.+.9-.13+.....13-..>4+[-<4+>]<-.
  88. >4+[-<4->]<+.>7+[-<8+>]<4+.>9+[-<9->]<-.>4+[-<5+>]<++...>4+[-<4+>]<-.>4+[-<4->]<+...>7+[-<8+>]
  89. <4+.>7+[-<8->]<4-......>4+[-<4+>]<-.>8+[-<9+>]<5+..>5+[-<6->]<--.>7+[-<8->]<4-......>4+[-<4+>]
  90. <-.>4+[-<4->]<+...>7+[-<8+>]<4+.>9+[-<9->]<-.>4+[-<5+>]<++..>4+[-<4+>]<-.>4+[-<4->]<+.....>@
  91. 7+[-<8+>]<4+.>7+[-<8->]<4-....>4+[-<4+>]<-.>8+[-<9+>]<5+....>5+[-<6->]<--.>7+[-<8->]<4-..
  92. ..>4+[-<4+>]<-.>4+[-<4->]<+.....>7+[-<8+>]<4+.>9+[-<9->]<-.>4+[-<5+>]<++.>4+[-<4+>]<-.>
  93. 4+[-<4->]<+.......>7+[-<8+>]<4+.>7+[-<8->]<4-..>4+[-<4+>]<-.>8+[-<9+>]<5+......>5+[-<
  94. 6->]<--.>7+[-<8->]<4-..>4+[-<4+>]<-.>4+[-<4->]<+.......>7+[-<8+>]<4+.>9+[-<9->]<-.>
  95. 6+[-<6+>]<+.>7+[-<7+>]<-.>8+[-<8->]<+........>7+[-<8+>]<4+.>4+[-<5+>]<-.>7+[-<7->
  96. ]<-........>7+[-<7+>]<+.>8+[-<8->]<.>4+[-<4->]<+........>8+[-<8+>]<-.3-.>9+[
  97. -<9->]<-.>4+[-<5+>]<++..>8+[-<8+>]<.>7+[-<7->]<--..+...>7+[-<7+>]<..>
  98. 5+[-<6+>]<-.>5+[-<6->]<++.>7+[-<7->]<--.+.>7+[-<7+>]<.>8+[-<8->
  99. ]<+..>8+[-<8+>]<-.>7+[-<7->]<.-.6-.>9+[-<9+>]<4+.>5+[-<6-
  100. >]<+..>7+[-<7->]<...-..6-.>5+[-<6->]<+.>4+[-<5+>]<
  101. ++..........>9+[-<10+>]<++.>9+[-<10->]
  102. <--....>8+[-<8+>]<.>7+[-<8->]<
  103. -.7-....>9+[-<10+>]<++.
  104. >10+[-<11->
  105. ]<4-.
  106.  
  107. bf ebf.bf < valentine.ebf > valentine.bf
  108. echo "Code Golf" | bf valentine.bf
  109.  
  110. _.-'~~~~~~`-._
  111. / ||
  112. / || Dear Code Golf
  113. | || |
  114. | _______||_______ |
  115. |/ ----- / ----- | Join me and together
  116. / ( ) ( ) we shall rule the galaxy!
  117. / ----- () ----- /
  118. / /|| /
  119. / /|||| /
  120. / /|||||| /
  121. /_ o========o/ _
  122. `--...__|`-._ _.-'|__...--'
  123. | `' |
  124.  
  125. public static final int px=25;
  126. public static final int ht=500, wth=500;
  127. public static final int rectRad = 3;
  128. PFont font;
  129. public boolean[][] used = new boolean[wth/px][ht/px];
  130. public int[] heart = {
  131.  
  132.  
  133. 65, 66, 67, 72, 73, 74,
  134. 84, 85, 86, 87, 88, 91, 92, 93, 94, 95,
  135. 103,104,105,106,107,108,109,110,111,112,113,114,115,116,
  136. 122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,
  137. 142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,
  138. 162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,
  139. 183,184,185,186,187,188,189,190,191,192,193,194,195,196,
  140. 204,205,206,207,208,209,210,211,212,213,214,215,
  141. 224,225,226,227,228,229,230,231,232,233,234,235,
  142. 245,246,247,248,249,250,251,252,253,254,
  143. 266,267,268,269,270,271,272,273,
  144. 287,288,289,290,291,292,
  145. 308,309,310,311,
  146. 329,330
  147. };
  148.  
  149.  
  150.  
  151.  
  152.  
  153. void setup( ) { size(ht, wth);
  154. background(255); stroke(190+1);
  155. strokeWeight(1.75); fill(0); font=createFont("Purisa",28,true);
  156. textFont(font,28);int i,j;for(i=0;i<wth/px;i++)for(j=0;j<ht/px;
  157. j++) used[i][j] = false; } void keyReleased() { if(key!=CODED){
  158. switch(key) { case BACKSPACE: name=name.substring(0,max(0,name.
  159. length() - 1) ) ; break; case
  160. 10:case RETURN: firstDraw=1==0;
  161.  
  162.  
  163.  
  164.  
  165. background(255);break;
  166. case ESC: case DELETE: break ;
  167. default:name+=key;}}}boolean firstDraw=
  168. true;String name="";boolean noLoopFlag=false;
  169. void draw(){int i,j,unusedCount = 0;if(firstDraw){
  170. background(255);text("Please enter a name:", 35, 30);
  171. text(name,35, 70);return;} for(i=0;i<ht/px;i++)for(
  172. j=0;j<wth/px;j++)if(!used[i][j])unusedCount++;do{
  173. i=(int) random(0,wth/px); j=(int) random(0,ht/px);}
  174. while(used[i][j]&&unusedCount>0); used[i][j]=true;if(
  175. noLoopFlag) {noLoop();return; }if(unusedCount==0){
  176. fill(31 +32 +32);text("Dear "+name+",",10,50)
  177. ;text("Happy Valentine's Day!",80,200);
  178. text("Love,nAce",10,430);delay
  179. (500);noLoopFlag=true;
  180.  
  181.  
  182.  
  183. return;} int R=(int)random(64,255-64);int G=(int)
  184. random(128,255);int B=(int)random(128,255);int alpha
  185. =(int)random(55,85);int hash=j*wth/px+i;if(java.util.
  186. Arrays.binarySearch(
  187. heart,hash)>=0) {R=
  188. (int)random(128+64,
  189. 255);G=(int)random(
  190. 0,63);B=(int)random
  191. (0,63);alpha=(int)random(70,100);}fill(R,G,B,alpha);
  192. rect(i*px, j*px, px, px, rectRad, rectRad, rectRad,
  193. rectRad); delay(20); }///////////////////////////
  194.  
  195. ;((((((((((((((((((((()))))))))))))))))))))
  196. (((even to know my programming language) ;(())
  197. (to (my programming language) 'Lisp);(((((())))))
  198. (to (know |I love |) 'parentheses);(((((((())))))))
  199. (to (even you more than there are) c);(((((())))))
  200. (to (know |parentheses in my heart ()()()|)));()
  201. (~ w (c "(c w))) p " c 'Dear (r));((((()))))
  202.  
  203. jitbf zozotez.bf
  204.  
  205. Dear Max Love
  206. I love you more than there are
  207. parentheses in my heart ()()()
  208.  
  209. public class
  210. Vale {public static void
  211. main( String []args)
  212. {int a; char c,d,r,g;
  213. String s ="hi";//
  214. double x,y,z=0;
  215. System .out.print ("hi ");
  216. String[ ]parts=s.split( "///////");
  217. String string="This is -for- ";double w;
  218. System .out.print ("") ;int g1,a1;
  219. System .out.println( ); System.out
  220. .print(string);System. out.print("")
  221. ; System. out.println
  222. ("you and me,two heart"
  223. +" combine together "
  224. +"always till "
  225. +"end of life"
  226. );}}
  227.  
  228. hi This is -for- you and me,two heart combine together always till end of life
  229.  
  230. var t = '<span class'+ '="t">░</span>', r =
  231. '<span class="r">▓</span>', b = '<span class="b">█'+
  232. '</span>', w = '<span class="w">'+ '▒</span>', n = '<br>', heart = [ t,
  233. t, t, t, t, t, t, t, t, t, t, t, t, t, t, n, t, t, t, b, b, b, t, t, t, b, b, b, t,
  234. t, t, n, t, t, b, r, r, r, b, t, b, r, r, r, b, t, t, n, t, b, r, w, w, r, r, b, r, r, r,
  235. r, r, b, t, n, t, b, r, w, r, r, r, r, r, r, r, r, r, b, t, n, t, b, r, r, r, r, r, r, r, r, r, r,
  236. r, b, t, n, t, t, b, r, r, r, r, r, r, r, r, r, b, t, t, n, t, t, t, b, r, r, r, r, r, r, r, b, t, t,
  237. t, n, t, t, t, t, b, r, r, r, r, r, b, t, t, t, t, n, t, t, t, t, t, b, r, r, r, b, t, t, t, t, t, n,
  238. t, t, t, t, t, t, b, r, b, t, t, t, t, t, t, n, t, t, t, t, t, t, t, b, t, t, t, t, t, t, t, n, t,
  239. t, t, t, t, t, t, t, t, t, t, t, t, t, t, n ], space = function(n, c){ var a = [], i = 0; while
  240. ( i < n ){a.push(c);++i;} return a.join(''); }, card = function(name){ var e = name.length
  241. % 2, sp = (13 - name.length) / 2; return space(15, t) + n + space(sp, w) + name.
  242. toUpperCase() + ' I' + space(sp + (e?1:0), w) + n + heart.join('') + space(6, w)
  243. + 'YOU!' + space(6, w) + n + space(15, t) + n; }, out = document.getElementById
  244. ('card'), inp = document.getElementById('name'), plot = function(){out.
  245. innerHTML = card(inp.value)}; inp.addEventListener('change',
  246. plot); out.style['font-family'] = 'monospace';
  247. out.style['text-align'] = 'center';
  248. out.style['line-height'] =
  249. '12px'; out.style
  250. ['font-size']
  251. = '15px';
  252. plot
  253. ()
  254. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement