Browse files

bring in web server from private repo

  • Loading branch information...
1 parent 870af16 commit 69f81261a77df93c629d4027823f78c37b42b80d @jed committed May 17, 2012
Showing with 94 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 Procfile
  3. BIN assets/140byteslogo.pxm
  4. BIN assets/140logo.pxm
  5. BIN assets/favicon.pxm
  6. +1 −0 data/entries/1002308.json
  7. +1 −0 data/entries/1002315.json
  8. +1 −0 data/entries/1005248.json
  9. +1 −0 data/entries/1005948.json
  10. +1 −0 data/entries/1006157.json
  11. +1 −0 data/entries/1006455.json
  12. +1 −0 data/entries/1007834.json
  13. +1 −0 data/entries/1008904.json
  14. +1 −0 data/entries/1009208.json
  15. +1 −0 data/entries/1009237.json
  16. +1 −0 data/entries/1009759.json
  17. +1 −0 data/entries/1010324.json
  18. +1 −0 data/entries/1015289.json
  19. +1 −0 data/entries/1018938.json
  20. +1 −0 data/entries/1020383.json
  21. +1 −0 data/entries/1020396.json
  22. +1 −0 data/entries/1027389.json
  23. +1 −0 data/entries/1029102.json
  24. +1 −0 data/entries/1031421.json
  25. +1 −0 data/entries/1031568.json
  26. +1 −0 data/entries/1031656.json
  27. +1 −0 data/entries/1033134.json
  28. +1 −0 data/entries/1034425.json
  29. +1 −0 data/entries/1034458.json
  30. +1 −0 data/entries/1034464.json
  31. +1 −0 data/entries/1034863.json
  32. +1 −0 data/entries/1034882.json
  33. +1 −0 data/entries/1035932.json
  34. +1 −0 data/entries/1035982.json
  35. +1 −0 data/entries/1036520.json
  36. +1 −0 data/entries/1037201.json
  37. +1 −0 data/entries/1037484.json
  38. +1 −0 data/entries/1037838.json
  39. +1 −0 data/entries/1038818.json
  40. +1 −0 data/entries/1039813.json
  41. +1 −0 data/entries/1040240.json
  42. +1 −0 data/entries/1042874.json
  43. +1 −0 data/entries/1043377.json
  44. +1 −0 data/entries/1043790.json
  45. +1 −0 data/entries/1043870.json
  46. +1 −0 data/entries/1044533.json
  47. +1 −0 data/entries/1044540.json
  48. +1 −0 data/entries/1046891.json
  49. +1 −0 data/entries/1047155.json
  50. +1 −0 data/entries/1049116.json
  51. +1 −0 data/entries/1053863.json
  52. +1 −0 data/entries/1058674.json
  53. +1 −0 data/entries/1062308.json
  54. +1 −0 data/entries/1063144.json
  55. +1 −0 data/entries/1072010.json
  56. +1 −0 data/entries/1075080.json
  57. +1 −0 data/entries/1084501.json
  58. +1 −0 data/entries/1084980.json
  59. +1 −0 data/entries/1086384.json
  60. +1 −0 data/entries/1091363.json
  61. +1 −0 data/entries/1094627.json
  62. +1 −0 data/entries/1098962.json
  63. +1 −0 data/entries/1099617.json
  64. +1 −0 data/entries/1111550.json
  65. +1 −0 data/entries/1114620.json
  66. +1 −0 data/entries/1115434.json
  67. +1 −0 data/entries/1119059.json
  68. +1 −0 data/entries/1123026.json
  69. +1 −0 data/entries/1124804.json
  70. +1 −0 data/entries/1126368.json
  71. +1 −0 data/entries/1127070.json
  72. +1 −0 data/entries/1127274.json
  73. +1 −0 data/entries/1132249.json
  74. +1 −0 data/entries/1134658.json
  75. +1 −0 data/entries/1147076.json
  76. +1 −0 data/entries/1163223.json
  77. +1 −0 data/entries/1164659.json
  78. +1 −0 data/entries/1168420.json
  79. +1 −0 data/entries/1170594.json
  80. +1 −0 data/entries/1175365.json
  81. +1 −0 data/entries/1180489.json
  82. +1 −0 data/entries/1182343.json
  83. +1 −0 data/entries/1188477.json
  84. +1 −0 data/entries/1193484.json
  85. +1 −0 data/entries/1200559.json
  86. +1 −0 data/entries/1200689.json
  87. +1 −0 data/entries/1212218.json
  88. +1 −0 data/entries/1230481.json
  89. +1 −0 data/entries/1257856.json
  90. +1 −0 data/entries/1258622.json
  91. +1 −0 data/entries/1258724.json
  92. +1 −0 data/entries/1259342.json
  93. +1 −0 data/entries/1261166.json
  94. +1 −0 data/entries/1261720.json
  95. +1 −0 data/entries/1262788.json
  96. +1 −0 data/entries/1264785.json
Sorry, we could not display the entire diff because it was too big.
View
2 .gitignore
@@ -0,0 +1,2 @@
+.env
+node_modules
View
1 Procfile
@@ -0,0 +1 @@
+web: node server.js
View
BIN assets/140byteslogo.pxm
Binary file not shown.
View
BIN assets/140logo.pxm
Binary file not shown.
View
BIN assets/favicon.pxm
Binary file not shown.
View
1 data/entries/1002308.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(\n r, // red, as a number from 0 to 255\n g, // green, as a number from 0 to 255\n b, // blue, as a number from 0 to 255\n p // as goog a place as any to declare p \n){\n p = Math.pow; // alias for \"Math.pow\"\n return // return a luminosity value madeup of\n 0.2126 * p(r/255, 2.2) + // the red value plus\n 0.7152 * p(g/255, 2.2) + // the green value plus\n 0.0722 * p(b/255, 2.2) // the blue value\n}","size":515,"raw_url":"https://gist.github.com/raw/1002308/9058a6b8e91e85620c47a2f040e5ab4d10725937/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"raw_url":"https://gist.github.com/raw/1002308/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"function(r,g,b,p){p=Math.pow;return 0.2126*p(r/255,2.2)+0.7152*p(g/255,2.2)+0.0722*p(b/255,2.2)}","size":96,"raw_url":"https://gist.github.com/raw/1002308/1611afdef9786e12955d26c18ea6228fc573d550/index.js","filename":"index.js"},"package.json":{"content":"{\n \"name\": \"RGBtoLum\",\n\n \"description\": \"Calculate the luminosity of a colour based on its RGB values\",\n\n \"keywords\": [\n \"RGB\",\n \"colour\",\n \"color\",\n \"Luminosity\",\n \"Calculation\"\n ]\n}","size":202,"raw_url":"https://gist.github.com/raw/1002308/c66adfbb792e7e3bae487d01060f3d9c63571e14/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/christopherdebeer","login":"christopherdebeer","avatar_url":"https://secure.gravatar.com/avatar/2869a32fd14fff8cb09be6fb7ca692eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":252181},"html_url":"https://gist.github.com/1002308","url":"https://api.github.com/gists/1002308","description":"RGB to Luminosity (140byt.es)","public":true,"comments":5,"history":[{"user":{"url":"https://api.github.com/users/christopherdebeer","login":"christopherdebeer","avatar_url":"https://secure.gravatar.com/avatar/2869a32fd14fff8cb09be6fb7ca692eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":252181},"url":"https://api.github.com/gists/1002308/1b03dfa33c325fee4aeffa0420bfd0e96c406464","change_status":{"deletions":6,"additions":8,"total":14},"committed_at":"2011-06-02T21:56:02Z","version":"1b03dfa33c325fee4aeffa0420bfd0e96c406464"},{"user":{"url":"https://api.github.com/users/christopherdebeer","login":"christopherdebeer","avatar_url":"https://secure.gravatar.com/avatar/2869a32fd14fff8cb09be6fb7ca692eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":252181},"url":"https://api.github.com/gists/1002308/0f473f94c9d6c808f38a1e19be19e8de4eb855ff","change_status":{"deletions":0,"additions":0,"total":0},"committed_at":"2011-06-01T14:33:17Z","version":"0f473f94c9d6c808f38a1e19be19e8de4eb855ff"},{"user":{"url":"https://api.github.com/users/christopherdebeer","login":"christopherdebeer","avatar_url":"https://secure.gravatar.com/avatar/2869a32fd14fff8cb09be6fb7ca692eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":252181},"url":"https://api.github.com/gists/1002308/df1b79e5e2c3ee17b73907ba835d1b54e9bec7df","change_status":{"deletions":15,"additions":1,"total":16},"committed_at":"2011-06-01T14:32:17Z","version":"df1b79e5e2c3ee17b73907ba835d1b54e9bec7df"},{"user":{"url":"https://api.github.com/users/christopherdebeer","login":"christopherdebeer","avatar_url":"https://secure.gravatar.com/avatar/2869a32fd14fff8cb09be6fb7ca692eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":252181},"url":"https://api.github.com/gists/1002308/d966e0a8013462dfe5f63a90ccae69930b9b6c6c","change_status":{"deletions":49,"additions":17,"total":66},"committed_at":"2011-06-01T14:29:57Z","version":"d966e0a8013462dfe5f63a90ccae69930b9b6c6c"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002308/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"}],"git_pull_url":"git://gist.github.com/1002308.git","git_push_url":"git@gist.github.com:1002308.git","id":"1002308","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-06-01T14:33:17Z","created_at":"2011-06-01T13:40:53Z"}
View
1 data/entries/1002315.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"vendorPrefixed","url":"https://api.github.com/gists/1002315","created_at":"2011-06-01T13:44:38Z","history":[{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1002315/7a48964f11752ddc1a649f3356e81e18ca2cd9dd","committed_at":"2011-06-01T13:59:50Z","version":"7a48964f11752ddc1a649f3356e81e18ca2cd9dd","change_status":{"deletions":51,"additions":94,"total":145}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1002315/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"comments":0,"updated_at":"2011-06-01T13:59:51Z","public":true,"forks":[],"html_url":"https://gist.github.com/1002315","git_pull_url":"git://gist.github.com/1002315.git","id":"1002315","files":{"annotated.js":{"filename":"annotated.js","content":"//!\\\\ Please do not use eval in your everyday production code. And create DOM elements as less times as it possible.\n\n/* vendorPrefixed */\nfunction(s){\n\treturn eval(\n\t\t// Constructing the string:\n\t\t\n\t\t// Appending zero at the start, it is needed for correct syntax\n\t\t0 +\n\t\t// List of vendor prefixes. dash alone is enough to be a separator\n\t\t\"O-Moz-Webkit-Ms-\"\n\t\t// modifying it\n\t\t.replace(\n\t\t\t// Get anything until dash (ungreedy) or empty line at the end\n\t\t\t// so the replacement chunks are: <O-><Moz-><Webkit-><Ms-><>\n\t\t\t/.*?-|$/g,\n\t\t\t// Do inline replacement. \"$&\" is the captured string \n\t\t\t// Explaination of this mash goes further\n\t\t\t\"||(s='$&\"+s+\"')in new Image().style&&s\"\n\t\t)\n\t\t// Property names are still in dashed-css-notation and we need camelCase\n\t\t// Replacing all \"{dash} + {any char}\" into \"{any char}.toUpperCase()\"\n\t\t// There is no dashes in the generated code, so we can freely replace all.\n\t\t.replace(\n\t\t\t/-(.)/g,\n\t\t\t// $1 is the 1st captured parens\n\t\t\t\"'+'$1'.toUpperCase()+'\"\n\t\t)\n\t\t// Here we got the string ready to be evaluated\n\t)\n\t// eval() the string and return what eval returned\n}\n// If s contained a single quote, we have syntax error here.\n// But in real life if you need css property with quote inside, you're doing something wrong.\n\n\n/** END OF FILE *********************************/\n\n/** Comments: The generated string: *************/\n/* Let variable s = \"transform-origin\" */\n/* Indented in order to be clear */\n\n// The syntax-correction zero. This will affect nothing as it is always false */\n0 ||\n\n// Here we evaluating the .toUpperCase's inserted by original code */\n// Only if 'string'.replace(/regexp/, ''.toUpperCase.call) worked, I shouldn't do this evil eval tricks */\n(s = 'O' + 't'.toUpperCase() + 'ransform' + 'o'.toUpperCase() + 'rigin') in new Image().style && s ||\n// After toUpperCase worked we have:\n//>>> (s = \"OTransformOrigin\") in new Image().style && s ||\n// Assigning string to variable s.\n// It is already defined in function's scope as an argument, so we do not pollute the outer scope\n//>>> s in new Image().style && s ||\n// new Image() is like document.createElement(\"img\") but much shorter\n// So we create a new, fresh and unpolluted DOM element. And right after that getting its .style\n//>>> s in [[style]] && s\n// If s is defined in style, we get true. s is always true\n// So if there's no such property, we get false and go to next statement after ||\n// But if there is such prop, the following OR's are not evaluated\n// And the last encountered expression is\n//>>> s\n// So eval returns first property name that exists\n\n/* Same again */\n(s = 'Moz' + 't'.toUpperCase() + 'ransform' + 'o'.toUpperCase() + 'rigin') in new Image().style && s ||\n/* and again */\n(s = 'Webkit'+'t'.toUpperCase() + 'ransform' + 'o'.toUpperCase() + 'rigin') in new Image().style && s ||\n/* and even ms- */\n(s = 'Ms' + 't'.toUpperCase() + 'ransform' + 'o'.toUpperCase() + 'rigin') in new Image().style && s ||\n/* and finally without any vendor prefixes */\n(s = 'transform' + 'o'.toUpperCase() + 'rigin') in new Image().style && s\n\n/* And here it ends. If nothing matched, return false */","raw_url":"https://gist.github.com/raw/1002315/f741a6a5cc9029dae0586ed50d8c1ce9b0901cea/annotated.js","size":3127},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1002315/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","content":"vendorPrefixed\n=========\n\nFunction provides css property name trying Opera, Firefox, Chrome, Safari and IE vendor prefixes.\nArgument my be in camelCase and css-dashed-nonation.\n\n var vendorPrefixed = function(){/* code */};\n /* Opera */\n vendorPrefixed(\"transformOrigin\"); // \"OTransformOrigin\"\n /* Firefox */\n vendorPrefixed(\"transform-origin\"); // \"MozTransformOrigin\"\n /* Chrome */\n vendorPrefixed(\"vertical-align\"); // \"verticalAlign\" as it doesn't require the vendor prefix\n /* IE6 */\n vendorPrefixed(\"border-radius\"); // false as there is no such pretty thing in IE6\n","raw_url":"https://gist.github.com/raw/1002315/1381a88669160e2256c1b953105bc2d6da50a340/README.md","size":600},"index.js":{"filename":"index.js","content":"function(s){return eval(0+\"O-Moz-Webkit-Ms-\".replace(/.*?-|$/g,\"||(s='$&\"+s+\"')in new Image().style&&s\").replace(/-(.)/g,\"'+'$1'.toUpperCase()+'\"))}","raw_url":"https://gist.github.com/raw/1002315/8d6fb28db5bdaac82b4c1126472852157e1a8efb/index.js","size":148},"test.html":{"filename":"test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b><i>prefix</i>Transform</b> (depends on browser and its capabilities)</div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(s){return eval(0+\"O-Moz-Webkit-Ms-\".replace(/.*?-|$/g,\"||(s='$&\"+s+\"')in new Image().style&&s\").replace(/-(.)/g,\"'+'$1'.toUpperCase()+'\"))}\n\n document.getElementById( \"ret\" ).innerHTML = myFunction(\"transform\")\n</script>","raw_url":"https://gist.github.com/raw/1002315/68ea8a4b9cf3dfcd08ef174587cb4f45f9930bb0/test.html","size":540},"package.json":{"filename":"package.json","content":"{\n \"name\": \"vendorPrefixed\",\n\n \"description\": \"Picks css property name trying vendor prefixes\",\n\n \"keywords\": [\n \"css\",\n \"vendor-prefix\"\n ]\n}","raw_url":"https://gist.github.com/raw/1002315/c172f069317af67bd05f20d00f9d37ef9f2a7ad2/package.json","size":151}},"git_push_url":"git@gist.github.com:1002315.git"}
View
1 data/entries/1005248.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","id":150755,"avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cmevans2"},"url":"https://api.github.com/gists/1127011","id":"1127011","updated_at":"2011-08-05T06:22:50Z","created_at":"2011-08-05T06:22:50Z"}],"files":{"annotated.js":{"content":"function (\n c, // the current path in the form \"a/b/c/\"\n p, // a relative path in the form \"./d/../e/f\"\n d // (placeholder)\n) {\n c = c.split(\"/\"); // convert to parts\n p = p.split(\"/\"); // convert to parts\n c.pop(); // drop \"document\" part of current path\n\n while (d = p.shift()) // grab next part from beginning of relative path\n d == \"..\" && // if parent folder reference\n c.pop() // then drop the last part from current path\n || d != \".\" && // else if not current folder reference\n c.push(d); // then append to current path\n\n return c.join(\"/\") // convert to a path\n}","raw_url":"https://gist.github.com/raw/1005248/061d35008ae13c163e086f07a92ec6837ed19fd8/annotated.js","size":630,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Ates Goral <http://magnetiq.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1005248/d86a32a8cd2ee49ccd00016541a30041335cae7a/LICENSE.txt","size":485,"filename":"LICENSE.txt"},"index.js":{"content":"function(c,p,d){c=c.split(\"/\");p=p.split(\"/\");c.pop();while(d=p.shift())d==\"..\"&&c.pop()||d!=\".\"&&c.push(d);return c.join(\"/\")}","raw_url":"https://gist.github.com/raw/1005248/a4e37b6baa3a353c7362846d5cecf2e1cd219a47/index.js","size":127,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>resolvePath</title>\n<div>Expected value: <b>a/b/e/f</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var resolvePath = function(c,p,d){c=c.split(\"/\");p=p.split(\"/\");c.pop();while(d=p.shift())d==\"..\"&&c.pop()||d!=\".\"&&c.push(d);return c.join(\"/\")};\n\n document.getElementById( \"ret\" ).innerHTML = resolvePath(\"a/b/c\", \"./d/../e/f\");\n</script>","raw_url":"https://gist.github.com/raw/1005248/b5930800499ac7e42977f499075dd5eabfb22a87/test.html","size":379,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"resolvePath\",\n\n \"description\": \"Applies a relative path to the given path\",\n\n \"keywords\": [\n \"path\",\n \"relative\",\n \"url\",\n \"href\"\n ]\n}","raw_url":"https://gist.github.com/raw/1005248/e35659e3a63e48a922a53aa10b22391e8dac9956/package.json","size":162,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/atesgoral","id":50832,"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atesgoral"},"url":"https://api.github.com/gists/1005248","description":"Relative path resolver","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/atesgoral","id":50832,"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atesgoral"},"url":"https://api.github.com/gists/1005248/6795a05c93cfa90cb7ff69852d0b60c0a1eb65b3","committed_at":"2011-06-02T20:45:20Z","version":"6795a05c93cfa90cb7ff69852d0b60c0a1eb65b3","change_status":{"deletions":57,"additions":28,"total":85}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1005248/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"git_pull_url":"git://gist.github.com/1005248.git","git_push_url":"git@gist.github.com:1005248.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1005248","updated_at":"2011-06-02T20:45:20Z","created_at":"2011-06-02T20:36:04Z","html_url":"https://gist.github.com/1005248"}
View
1 data/entries/1005948.json
@@ -0,0 +1 @@
+{"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"forks":[{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cmevans2","login":"cmevans2","id":150755},"url":"https://api.github.com/gists/1129078","id":"1129078","updated_at":"2011-08-06T06:28:00Z","created_at":"2011-08-06T06:28:00Z"}],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1005948/cb87f37b350a2f58460993fcbcb6f5dcd1da6964/annotated.js","content":"function (\n d, // Date instance\n f // Format string\n) {\n return f.replace( // Replace all tokens\n /{(.+?)(?::(.*?))?}/g, // {<part>:<padding>}\n function (\n v, // Matched string (ignored, used as local var)\n c, // Date component name\n p // Padding amount\n ) {\n for(v = d[\"get\" + c]() // Execute date component getter\n + /h/.test(c) // Increment Mont(h) components by 1\n + \"\"; // Cast to String\n v.length < p; // While padding needed, \n v = 0 + v); // pad with zeros\n return v // Return padded result\n })\n}\n","size":657,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1005948/d86a32a8cd2ee49ccd00016541a30041335cae7a/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Ates Goral <http://magnetiq.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":485,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1005948/eade46365914b875a1ee91d98c65672413ed09ce/README.md","content":"Instead of using classical format specifiers like \"YYYY\", \"MM\", \"HH\", \"mm\" etc., this function uses the [Date instance getters](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date#Methods_2) like `getFullYear`, `getMonth`, etc., with support for zero-padding.\n\nFor example, instead of:\n\n \"YYYY-MM-DD HH:mm:ss\"\n\nyou can use:\n\n \"{FullYear}-{Month:2}-{Date:2} {Hours:2}:{Minutes:2}:{Seconds:2}\"\n\nVerbose, but more human-friendly. And can be done within 140 bytes!","size":488,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1005948/d324d58ada9df1dc829cb331594a063a7b7d4b99/index.js","content":"function(d,f){return f.replace(/{(.+?)(?::(.*?))?}/g,function(v,c,p){for(v=d[\"get\"+c]()+/h/.test(c)+\"\";v.length<p;v=0+v);return v})}","size":132,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1005948/f7b4cbecbbe09c142fa8bee95c6a4997feaa4cad/test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>2011-06-03 02:33:54</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var formatDate = function(d,f){return f.replace(/{(.+?)(?::(.*?))?}/g,function(v,c,p){for(v=d[\"get\"+c]()+/h/.test(c)+\"\";v.length<p;v=0+v);return v})};\n\n document.getElementById( \"ret\" ).innerHTML = formatDate(\n new Date(2011, 5, 3, 2, 33, 54, 0),\n \"{FullYear}-{Month:2}-{Date:2} {Hours:2}:{Minutes:2}:{Seconds:2}\"\n );\n</script>","size":478,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1005948/1b6836df643e440a6fb89d6da03f5e78875b27b6/package.json","content":"{\n \"name\": \"formatDate\",\n\n \"description\": \"Date formatter\",\n\n \"keywords\": [\n \"date\",\n \"string\",\n \"formatting\",\n \"conversion\"\n ]\n}","size":145,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948","description":"Date formatter that uses human-readable date instance getters instead of cryptic Y/M/D etc. tokens","public":true,"comments":4,"history":[{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948/e8587932acf54dda4169c5ef5e0d68a96e2881d7","committed_at":"2011-06-03T09:28:37Z","change_status":{"deletions":2,"additions":2,"total":4},"version":"e8587932acf54dda4169c5ef5e0d68a96e2881d7"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948/c1f2ac35229820a435b1ce0d149f61676dbdbda0","committed_at":"2011-06-03T09:27:06Z","change_status":{"deletions":15,"additions":10,"total":25},"version":"c1f2ac35229820a435b1ce0d149f61676dbdbda0"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948/6912de792363583fdf0a74bccca56b70edf1c205","committed_at":"2011-06-03T07:28:27Z","change_status":{"deletions":5,"additions":4,"total":9},"version":"6912de792363583fdf0a74bccca56b70edf1c205"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948/248c0aa58fd17394b7b2d1024eac7d198b43bf83","committed_at":"2011-06-03T06:37:54Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"248c0aa58fd17394b7b2d1024eac7d198b43bf83"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c7f65a2f291636c0bd19920b2b6d525b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atesgoral","login":"atesgoral","id":50832},"url":"https://api.github.com/gists/1005948/dd68309b6b56f733ad4cf27e15d6bea4c71dea42","committed_at":"2011-06-03T06:36:06Z","change_status":{"deletions":51,"additions":43,"total":94},"version":"dd68309b6b56f733ad4cf27e15d6bea4c71dea42"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1005948/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1005948/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1005948/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1005948/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1005948/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"}],"html_url":"https://gist.github.com/1005948","git_pull_url":"git://gist.github.com/1005948.git","git_push_url":"git@gist.github.com:1005948.git","id":"1005948","updated_at":"2011-06-03T06:36:06Z","created_at":"2011-06-03T06:13:02Z"}
View
1 data/entries/1006157.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"92 byte Interval Bisection","url":"https://api.github.com/gists/1006157","created_at":"2011-06-03T10:39:48Z","history":[{"user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1006157/98a29cd038b31cd649dcc14166a9d570fadca621","committed_at":"2011-06-03T10:57:53Z","version":"98a29cd038b31cd649dcc14166a9d570fadca621","change_status":{"deletions":0,"additions":11,"total":11}},{"user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1006157/8f88f302688837478655f122e90cf9c3b5667ecf","committed_at":"2011-06-03T10:53:24Z","version":"8f88f302688837478655f122e90cf9c3b5667ecf","change_status":{"deletions":31,"additions":2,"total":33}},{"user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1006157/1420283f1f1a9aa4775625a5e0f6e669b5fe9342","committed_at":"2011-06-03T10:50:46Z","version":"1420283f1f1a9aa4775625a5e0f6e669b5fe9342","change_status":{"deletions":23,"additions":24,"total":47}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006157/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}}],"comments":0,"updated_at":"2011-06-03T10:57:54Z","public":true,"forks":[],"html_url":"https://gist.github.com/1006157","git_pull_url":"git://gist.github.com/1006157.git","id":"1006157","files":{"annotated.js":{"filename":"annotated.js","content":"function z(\n a, //Left-hand end of the interval\n b, //Right-hand end of the interval\n d, //Depth so far (0 initially)\n r, //Desired accuracy (2^-r)\n g, //test function\n c){ //placeholder\n\n return //No messing about, let's just calculate the answer\n d++<r? //Have we hit recursion depth?\n g(a)/g(c=(a+b)/2)<0? //NO: Do we want the left hand or right hand interval?\n z(a,c,d,r,g) //Left...\n :z(c,b,d,r,g) //Right...(I suspect there's room for minimisation by absorbing the ternary operator into a single call to z()....\n :[a,g(a)] //YES: return the answer together with the error\n}","raw_url":"https://gist.github.com/raw/1006157/b983b7416fcbe18a55fd65c05bed8bb267d215d5/annotated.js","size":848},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1006157/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","content":"Interval bisection\n==================\n\nThis will find a root of a given function in a given interval.\n\nHow to use\n----------\n\nPass the function start and end points for the search, the function and tell it how accurate you want the result (in the form 2^-n). It will then bisect and find!\n\nCaveats\n------\n\nThis has the usual caveats of interval bisection methods (especially short ones lacking error checking...): if you pick an interval without roots, it can't find any! (hence why it returns the root together with the error :) ); if you pick a particularly pathological function, the error may be significant (think tanh(l*x) for l >> 1); if you pick an interval with multiple roots, you will get at most one, perhaps none of the roots.","raw_url":"https://gist.github.com/raw/1006157/1081d3efdd8e3459cbc575342d9bf701560e4d81/README.md","size":739},"index.js":{"filename":"index.js","content":"function z(a,b,d,r,g,c){return d++<r?g(a)/g(c=(a+b)/2)<0?z(a,c,d,r,g):z(c,b,d,r,g):[a,g(a)]}","raw_url":"https://gist.github.com/raw/1006157/611f051ff2b358692d50935ea679820df548a996/index.js","size":92},"test.html":{"filename":"test.html","content":"<!DOCTYPE html> \n<title>Interval Bisecton</title>\n<div>Expected value: <b>1.6180339455604553,-9.657452082478812e-8</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n function f(x){return x*x-x-1}; //The golden ratio\n\n var myFunction = function z(a,b,d,r,g,c){return d++<r?g(a)/g(c=(a+b)/2)<0?z(a,c,d,r,g):z(c,b,d,r,g):[a,g(a)]}\n\n var k=7;\n document.getElementById( \"ret\" ).innerHTML = myFunction(1,2,0,Math.log(Math.pow(10,k))/Math.LN2,f); //The natty logarithmic calculation in here is to give \"k\" decimal places of accuracy\n</script>","raw_url":"https://gist.github.com/raw/1006157/1cdff9317fe66d7663c7beb56278b03db37bbffb/test.html","size":550},"package.json":{"filename":"package.json","content":"{\n \"name\": \"Bisection rootfinding\",\n\n \"description\": \"Find roots of any function by interval bisection (usual caveats of IB's apply)\",\n\n \"keywords\": [\n \"interval bisection\"\n ]\n}","raw_url":"https://gist.github.com/raw/1006157/89586a949cb53ec6b978775f6c9f469eacb6eba4/package.json","size":184}},"git_push_url":"git@gist.github.com:1006157.git"}
View
1 data/entries/1006455.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(){ /* outer function */\n\t/* Defining vars in usual way. We need arguments unchanged */\n\t/* Each time function is called it has new scope, so we don't have to worry about interference */\n\tvar\n\t\ta=0, /* average */\n\t\tc=0, /* count of items */\n\t\ti, /* to-be iterator in inner func */\n\t\tu, /* to-be arguments alias in inner func */\n\t\tn = function(){ /* inner function */\n\t\t\tfor(\n\t\t\t\t/* Store arguments (very long var name!) into u */\n\t\t\t\t/* Then i is count of arguments passed */\n\t\t\t\ti=(u=arguments).length;\n\t\t\t\t/* And right after that i is length-1, i.e. max argument index */\n\t\t\t\t/* Note post-decrement */\n\t\t\t\ti--;\n\t\t\t\t/* Empty block */\n\t\t\t/* Appending new item, incrementing count */\n\t\t\t/* Note the pre-increment */\n\t\t\t) a = (u[i] + a * c) / ++c;\n\t\t\t/* Return the average primitive if func is called as a method of itself */\n\t\t\t/* Return the func itself otherwise */\n\t\t\t/* Comments follows */\n\t\t\treturn n==this ? a : n\n\t\t};\n\t/* Passing thru arguments to inner function. Use random garbage as this. */\n\t/* It will return itself, so this is the same as n.toString=n; return n.apply({},arguments) */\n\t/* Then - a trick! - make inner func's toString method is the inner func itself */\n\t/* so we can check this to tell if func is called as toString */\n\t/* (toString method is called implicitly when converting object into primitive) */\n\treturn n.toString=n.apply({},arguments)\n\t/* And finally return the inner function */\n}","size":1429,"raw_url":"https://gist.github.com/raw/1006455/8f9c9cae6c372b4e060a41cd175e7f1b7e1ba21b/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"raw_url":"https://gist.github.com/raw/1006455/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"Chaining average\n=========\n\nThe averaging function itself is not such interesting. This is a demo of chaining, «this» and duck typing magic.\nFunction gets arbitrary number of arguments and returns a function that gets arbitrary number of arguments that… etc. Until cast into number or string is happened, then it returns the average value of all arguments supplied.\n\n137 bytes between { and }.\n\nExample\n---------\n```\nvar avg = function(){/** code in index.js **/};\nvar average = avg(1).apply(this,[2,3,4])(5,6)()(7);\nalert(average); /* \"4\" as in average of 1, 2, 3, 4, 5, 6 and 7 */\n```","size":590,"raw_url":"https://gist.github.com/raw/1006455/b414ed17f11168c8897ee84704f2ba2b0f4d271c/README.md","filename":"README.md"},"index.js":{"content":"function(){var a=0,c=0,i,u,n=function(){for(i=(u=arguments).length;i--;)a=(u[i]+a*c)/++c;return n==this?a:n};return n.toString=n.apply({},arguments)}","size":149,"raw_url":"https://gist.github.com/raw/1006455/392edd11e4698ed9e53ca19f68b6a5086118526e/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>4</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(){var a=0,c=0,i,u,n=function(){for(i=(u=arguments).length;i--;)a=(u[i]+a*c)/++c;return n==this?a:n};return n.toString=n.apply({},arguments)}\n\n document.getElementById( \"ret\" ).innerHTML = myFunction(1).apply(this,[2,3,4])(5,6)()(7)\n</script>","size":498,"raw_url":"https://gist.github.com/raw/1006455/b8da27b5d534e9c4117a4e520467fed783c0d10e/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"chainingAverage\",\n\n \"description\": \"Returns average of multiple numbers in a bizarre way\",\n\n \"keywords\": [\n \"chaining\",\n \"average\",\n \"this\"\n ]\n}","size":169,"raw_url":"https://gist.github.com/raw/1006455/0cd83521937c59637cb3d45d8026c6d415d0e2e6/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"html_url":"https://gist.github.com/1006455","url":"https://api.github.com/gists/1006455","description":"chaining average","public":true,"comments":6,"history":[{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1006455/c89bd71fc7ff6f7016c2c1f174054887d0d1ca70","change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-04T10:58:38Z","version":"c89bd71fc7ff6f7016c2c1f174054887d0d1ca70"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1006455/9c8a0fd88512533f9e6d32307a23e1ca772a3592","change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-04T10:48:42Z","version":"9c8a0fd88512533f9e6d32307a23e1ca772a3592"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1006455/2cce0a0f6d96edcebdc8dc98586ef1bbe6f73ac9","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-03T15:14:50Z","version":"2cce0a0f6d96edcebdc8dc98586ef1bbe6f73ac9"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1006455/5b66b638606a21d599280be5cc247d08d41363f5","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-03T15:14:18Z","version":"5b66b638606a21d599280be5cc247d08d41363f5"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1006455/d4530f436fb9493c8d8d8118ecbd76d832c46249","change_status":{"deletions":48,"additions":52,"total":100},"committed_at":"2011-06-03T15:12:41Z","version":"d4530f436fb9493c8d8d8118ecbd76d832c46249"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006455/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006455/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006455/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006455/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1006455/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"}],"git_pull_url":"git://gist.github.com/1006455.git","git_push_url":"git@gist.github.com:1006455.git","id":"1006455","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-06-03T15:12:41Z","created_at":"2011-06-03T14:51:22Z"}
View
1 data/entries/1007834.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/mikesherov","login":"mikesherov","avatar_url":"https://secure.gravatar.com/avatar/a123410cfb9ea6510294a295bb548530?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":364532},"url":"https://api.github.com/gists/1008218","id":"1008218","updated_at":"2011-06-04T19:18:24Z","created_at":"2011-06-04T19:09:50Z"},{"user":{"url":"https://api.github.com/users/bjorne","login":"bjorne","avatar_url":"https://secure.gravatar.com/avatar/4aee11080bf2e430b886ce4fe0e91bf0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":65805},"url":"https://api.github.com/gists/1008371","id":"1008371","updated_at":"2011-06-04T21:14:06Z","created_at":"2011-06-04T21:13:09Z"},{"user":{"url":"https://api.github.com/users/mikesherov","login":"mikesherov","avatar_url":"https://secure.gravatar.com/avatar/a123410cfb9ea6510294a295bb548530?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":364532},"url":"https://api.github.com/gists/1008438","id":"1008438","updated_at":"2011-06-04T22:34:55Z","created_at":"2011-06-04T22:34:23Z"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1008764","id":"1008764","updated_at":"2011-06-05T08:15:14Z","created_at":"2011-06-05T08:07:29Z"}],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1007834/7096160e76672217800a4618491591eb2c2e1fc2/annotated.js","content":"// http://en.wikipedia.org/wiki/UTF-8\n\nfunction stringToByteArray(a,b,c,d,e,f,g,h,i){\n for(\n b = [\n e = \n d = 0\n ] // initialise variables\n ;\n c = a.charCodeAt(d++) // get the character code from the string\n ;\n ){\n g = 128;\n c < g // under 128 is UTF-8 (ASCII range), 1 byte\n ?\n b[e] = c // add to byte array\n :\n c < 2048 // under 2048 2bytes\n ?\n f = 1 // number of bytes left to process\n :\n c < 65536 // under 65536 is 3bytes\n ?\n f = 2 // number of bytes left to process\n :\n c < 2<<20 ? // finally, under 2097152 is 4bytes\n f = 3 // 3bytes left to process\n :\n 0\n ;\n\n for( // process the remaining bytes indicated by `f`\n h = e++,\n i = f\n ;\n f-- > 0 // -1 and check if greater than 0 still\n ;\n b[h] = g + (2<<(6-i)) + (c >> i*6) // move onto the next slot in the byte array\n )\n b[e++] = g + (c >> f*6 & 63) // shift f * 6 bits, mask 1byte and add 128\n }\n return b // return the byte array\n}","size":1694,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1007834/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt"},"index.js":{"raw_url":"https://gist.github.com/raw/1007834/866ddd5a836303f70121b498955be42907573045/index.js","content":"function(a,b,c,d,e,f,g,h,i){for(b=[e=d=0];c=a.charCodeAt(d++);){g=128;c<g?b[e]=c:c<2048?f=1:c<65536?f=2:c<2<<20?f=3:0;for(h=e++,i=f;f-- >0;b[h]=g+(2<<6-i)+(c>>i*6))b[e++]=g+(c>>f*6&63)}return b}","size":194,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1007834/c2126c7e475474d2430c28c7dfd915c517268be9/test.html","content":"<!DOCTYPE html> \n<title>stringToByteArray</title>\n<div>Expected value: <b id=\"ret\"></b></div>\n<div>Actual value: &nbsp;&nbsp;&nbsp;&nbsp;<b id=\"ret2\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n function stringToByteArrayOld(str) {\n var bytes = [], code, i;\n \n for(i = 0; i < str.length; i++) {\n code = str.charCodeAt(i);\n \n if (code < 128) {\n bytes.push(code);\n } else if (code < 2048) {\n bytes.push(192+(code>>6), 128+(code&63));\n } else if (code < 65536) {\n bytes.push(224+(code>>12), 128+((code>>6)&63), 128+(code&63));\n } else if (code < 2097152) {\n bytes.push(240+(code>>18), 128+((code>>12)&63), 128+((code>>6)&63), 128+(code&63));\n }\n }\n \n return bytes;\n}\n\n function stringToByteArray(a,b,c,d,e,f,g,h,i){for(b=[e=d=0];c=a.charCodeAt(d++);){g=128;c<g?b[e]=c:c<2048?f=1:c<65536?f=2:c<2<<20?f=3:0;for(h=e++,i=f;f-- >0;b[h]=g+(2<<6-i)+(c>>i*6))b[e++]=g+(c>>f*6&63)}return b};\n\n document.getElementById( \"ret\" ).innerHTML = stringToByteArrayOld(\"hello☺䭢 it works\")\n document.getElementById( \"ret2\" ).innerHTML = stringToByteArray(\"hello☺䭢 it works\")\n</script>","size":1266,"filename":"test.html"},"stringToByteArray.js":{"raw_url":"https://gist.github.com/raw/1007834/9006f374699189b3a7eca6da246e4d693107ceaf/stringToByteArray.js","content":"function stringToByteArray(str) {\n var bytes = [], code, i;\n \n for(i = 0; i < str.length; i++) {\n code = str.charCodeAt(i);\n \n if (code < 128) {\n bytes.push(code);\n } else if (code < 2048) {\n bytes.push(192+(code>>6), 128+(code&63));\n } else if (code < 65536) {\n bytes.push(224+(code>>12), 128+((code>>6)&63), 128+(code&63));\n } else if (code < 2097152) {\n bytes.push(240+(code>>18), 128+((code>>12)&63), 128+((code>>6)&63), 128+(code&63));\n }\n }\n \n return bytes;\n}","size":576,"filename":"stringToByteArray.js"},"package.json":{"raw_url":"https://gist.github.com/raw/1007834/cc2db46b6d88fb66de4f98a2bbf721b07bcf0884/package.json","content":"{\n \"name\": \"stringToByteArray\",\n\n \"description\": \"Convert a string of characters to an array of UTF-8 bytes\",\n\n \"keywords\": [\n \"cryptography\",\n \"utf8\"\n ]\n}","size":165,"filename":"package.json"}},"html_url":"https://gist.github.com/1007834","user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"git_push_url":"git@gist.github.com:1007834.git","url":"https://api.github.com/gists/1007834","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"140byt.es -- convert string to array of UTF-8 bytes","public":true,"comments":25,"history":[{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/d193161dc0281b12f6b98d1a50d5ed2b88cd0efe","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-07-11T07:33:31Z","version":"d193161dc0281b12f6b98d1a50d5ed2b88cd0efe"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/a467677c0d143f7f0f58cd9d2b54e24c74c212e9","change_status":{"deletions":4,"additions":4,"total":8},"committed_at":"2011-06-04T22:52:10Z","version":"a467677c0d143f7f0f58cd9d2b54e24c74c212e9"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/0306c8e7cd11c218a865fac95f7c8e36af7604d7","change_status":{"deletions":5,"additions":5,"total":10},"committed_at":"2011-06-04T22:48:53Z","version":"0306c8e7cd11c218a865fac95f7c8e36af7604d7"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/9891c7771c38876491497178d152581e25eeebea","change_status":{"deletions":4,"additions":6,"total":10},"committed_at":"2011-06-04T22:36:10Z","version":"9891c7771c38876491497178d152581e25eeebea"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/90ea5f0ae32f1b6e681e6caa0158e8ecda905187","change_status":{"deletions":9,"additions":8,"total":17},"committed_at":"2011-06-04T22:30:30Z","version":"90ea5f0ae32f1b6e681e6caa0158e8ecda905187"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/953ffaa7ae74827e79be200b55cb61f7bebbb42d","change_status":{"deletions":20,"additions":17,"total":37},"committed_at":"2011-06-04T20:59:15Z","version":"953ffaa7ae74827e79be200b55cb61f7bebbb42d"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/34563e378e4ef1edb765e4b0bdf17682bf7d0e19","change_status":{"deletions":0,"additions":0,"total":0},"committed_at":"2011-06-04T20:50:21Z","version":"34563e378e4ef1edb765e4b0bdf17682bf7d0e19"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/83192d5cf4eb1821421590744ffb12ee52d2e6e9","change_status":{"deletions":16,"additions":40,"total":56},"committed_at":"2011-06-04T20:45:30Z","version":"83192d5cf4eb1821421590744ffb12ee52d2e6e9"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/84b57e3fd2fc9e1a1340803ff3fea3719ddb8baa","change_status":{"deletions":5,"additions":5,"total":10},"committed_at":"2011-06-04T13:12:06Z","version":"84b57e3fd2fc9e1a1340803ff3fea3719ddb8baa"},{"user":{"url":"https://api.github.com/users/bytespider","login":"bytespider","avatar_url":"https://secure.gravatar.com/avatar/4a87f6137ef1448830bedfb348d4a7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":91801},"url":"https://api.github.com/gists/1007834/e3eca93b5430b2abf71294105f686a2a91ae6701","change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-04T12:56:57Z","version":"e3eca93b5430b2abf71294105f686a2a91ae6701"}],"id":"1007834","updated_at":"2011-06-04T12:28:34Z","created_at":"2011-06-04T11:46:35Z","git_pull_url":"git://gist.github.com/1007834.git"}
View
1 data/entries/1008904.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(p,s,i){ // parent, static, instance in that order\n s = Object.create( p||{}, s); // create the new classes static object\n return( \n s.prototype = Object.create( // create the new instance object\n p&& p.prototype ||{}, i // attach that to the statics prototype method\n )\n ).constructor = s // make the static the instances constructor\n}","size":449,"raw_url":"https://gist.github.com/raw/1008904/b384e4b704db0270603b8714496acf5cb457a593/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Kambfhase\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":462,"raw_url":"https://gist.github.com/raw/1008904/35f08789500ff639e7223c43504c8ea64bed1cce/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"class inheritance the way it should have been in JavaScript.\n\nA small sketchup of how the resulting object structure will look up: http://www.abload.de/image.php?img=inhnc45.png\n\nUsage:\n\n f(p,s,i) // returns the newly created class\n p: // the parent class\n s: // a property descriptor map for the static members\n i: // a property descriptor map for the instance members\n\n all of p,s,i are optional.\n\n to create a new instance of the newly created klass do:\n klass=f(p,s,i)\n Object.create(klass.prototype) // new instance\n\n to check if an object is an instance of klass do\n klass.isPrototypeOf( obj)\n\n for more examples see the unit tests.","size":682,"raw_url":"https://gist.github.com/raw/1008904/35878f66076f3bc2fa7e349c0c2d2a671aba9699/README.md","filename":"README.md"},"index.js":{"content":"function(p,s,i){s=Object.create(p||{},s);return(s.prototype=Object.create(p&&p.prototype||{},i)).constructor=s}","size":111,"raw_url":"https://gist.github.com/raw/1008904/f5d7001068a98f5720b86f5314a71cc66c7fecf2/index.js","filename":"index.js"},"test.html":{"content":"<!doctype html>\n<html>\n<head>\n<link href=\"qunit.css\" rel=\"Stylesheet\" type=\"text/css\"/>\n<title>Unit Tests</title>\n</head>\n<body>\n\n <h1 id=\"qunit-header\">Din - Unit Tests</h1>\n <h2 id=\"qunit-banner\"></h2>\n <div id=\"qunit-testrunner-toolbar\"></div>\n <h2 id=\"qunit-userAgent\"></h2>\n <ol id=\"qunit-tests\"></ol>\n <div id=\"qunit-fixture\">test markup, will be hidden</div>\n \n<script src=\"qunit.js\"></script>\n<script>\nvar Class={\n create2: \n \n\nfunction f(p,s,i){s=Object.create(p||{},s);return (s.prototype=Object.create((p&&p.prototype)||{},i)).constructor=s}\n,\ncreate: function(o){\n var k = this.create2(o.parent,o.static,o.instance);\n \n if( !k.create)\n k.create = function(){return Object.create(this.prototype)};\n \n if( !k.is)\n k.is = function( obj){ return this.prototype.isPrototypeOf(obj);};\n \n return k;\n}\n\n}\n\n</script>\n<script>\n\nmodule(\"Basic basics\");\n\ntest(\"Basic setup\", function(){\n expect(3);\n ok( Class,\"Class exists\");\n ok( Class.create,\"Class.create exists\");\n equals( typeof Class.create, \"function\", \"Class.create is a function\"); \n});\n\nmodule(\"simple class\");\n\nvar Klass = Class.create({\n // no parent\n \"static\":{\n method: {\n value: function(){\n return 2;\n }\n },\n self: {\n value: function(){\n return this;\n }\n }\n },\n instance: {\n method: {\n value: function(){\n return 2;\n }\n },\n prop: {\n value: \"foo\",\n enumerable: true,\n writable:true,\n configurable:true\n },\n accessor: {\n get: function(){\n return 1;\n },\n enumerable: true\n },\n self: {\n value: function(){\n return this;\n }\n }\n }\n}),k=Klass.create();\n\ntest(\"simple basics\", function(){\n expect(7);\n \n ok( Klass,\"Klass exists\");\n ok( Klass.prototype,\"Klass.prototype exists\");\n ok( Klass.prototype.constructor== Klass, \"Klass is its instances Constructor\");\n equals( typeof Klass.create, \"function\", \"Klass.create is a function\"); \n equals( typeof Klass.is, \"function\", \"Klass.is is a function\");\n \n ok( Klass.create(), \"Klass.create returns something\");\n\n //ok( k instanceof Klass, \"k is an instance of Klass\"); //?\n ok( Klass.is( k),\"k is an instance of Klass\");\n});\n\ntest(\"correct instances\",function(){\n expect(7);\n \n equals( typeof k.method, \"function\",\"k.method should be a function\");\n equals( k.method(), 2, \"yay!\");\n equals( typeof k.prop, \"string\",\"k.prop is a string\");\n equals( k.prop, \"foo\");\n equals( typeof k.accessor, \"number\",\"getter returns a value\");\n equals( k.accessor, 1,\"accessor returns gettet value\");\n ok( k.self() == k,\"correct <this>\");\n});\n\ntest(\"correct descriptors\",function(){\n var p = Klass.prototype, d;\n expect(13);\n \n ok( p.hasOwnProperty(\"method\"),\"method should be on the prototype\");\n d=Object.getOwnPropertyDescriptor(p, \"method\");\n equals(d.enumerable, false, \"method is not enumerable\");\n equals(d.writable, false, \"method is not writable\");\n equals(d.configurable, false, \"method is not configurable\");\n \n ok( p.hasOwnProperty(\"prop\"),\"prop should be on the prototype\");\n d=Object.getOwnPropertyDescriptor(p, \"prop\");\n equals(d.value, \"foo\", \"prop is 'foo'\");\n equals(d.enumerable, true, \"prop is enumerable\");\n equals(d.writable, true, \"prop is writable\");\n equals(d.configurable, true, \"prop is configurable\");\n \n ok( p.hasOwnProperty(\"accessor\"),\"accessor should be on the prototype\");\n d=Object.getOwnPropertyDescriptor(p, \"accessor\");\n ok(d.get, \"getter is defined\");\n equals(d.enumerable, true, \"accessor is enumerable\");\n equals(d.configurable, false, \"accessor is not configurable\");\n});\n\ntest(\"Staticness\",function(){\n expect(4);\n\n ok( Klass.method, \"static method exists\");\n ok( Klass.method != k.method, \"static and instance method differ\");\n equals( Klass.method(), 2, \"static returns correct result\");\n ok( Klass.self() == Klass, \"correct <this>\");\n});\n\nmodule(\"inheritance\");\n\nvar A = Class.create({\n instance : {\n foo: {\n value: function(){\n return \"A foo\";\n }\n }\n }\n}),\nB = Class.create({\n parent: A,\n \"static\":{\n bar: {\n value: function(){\n return \"b bar\";\n }\n }\n }\n}),\nC = Class.create({\n parent: B,\n instance: {\n foo: {\n value: function(){\n return \"C \"+A.prototype.foo.call(this);\n }\n }\n }\n}),a=A.create(),b=B.create(),c=C.create();\n\ntest(\"static inheritance\", function(){\n expect(4);\n\n ok( !!B.bar(),\"B has a static bar method\");\n ok( !!C.bar(),\"C has a static bar method\");\n equals( B.bar, C.bar,\"C inherits static method from B!\");\n equals( B.bar(), C.bar(), \"same!\");\n});\n\n\ntest(\"creation\", function(){\n expect(9);\n\n equals( A.is( a), true, \"a is an instance of A\");\n equals( A.is( b), true, \"b is an instance of A\");\n equals( A.is( c), true, \"c is an instance of A\");\n equals( B.is( a), false, \"a is not an instance of B\");\n equals( B.is( b), true, \"b is an instance of B\");\n equals( B.is( c), true, \"c is an instance of B\");\n equals( C.is( a), false, \"a is not an instance of C\");\n equals( C.is( b), false, \"b is not an instance of C\");\n equals( C.is( c), true, \"c is an instance of C\");\n});\n\ntest(\"instance inheritance\",function(){\n expect(4);\n \n equals( a.foo(), \"A foo\", \"a foo is a foo :|\");\n equals( b.foo(), \"A foo\", \"b.foo is also a foo :|\");\n equals( b.foo, a.foo, \"same foo methods\");\n equals( c.foo(), \"C A foo\",\"c foo is c a foo\");\n});\n\n</script>\n</body>\n</html>","size":5877,"raw_url":"https://gist.github.com/raw/1008904/aa09bf67ca066658680c708554407397a7041506/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"class inheritance\",\n\n \"description\": \"class inheritance the way it should have been in JavaScript.\",\n\n \"keywords\": [\n \"classes\",\n \"inheritance\"\n ]\n}","size":170,"raw_url":"https://gist.github.com/raw/1008904/8917c2ec157c93d7bd3878a77b20fe4692308573/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"git_pull_url":"git://gist.github.com/1008904.git","url":"https://api.github.com/gists/1008904","description":"class inheritance for real","public":true,"html_url":"https://gist.github.com/1008904","comments":2,"git_push_url":"git@gist.github.com:1008904.git","history":[{"committed_at":"2011-08-15T09:31:41Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/697ac26d43dccada5c47c807ac6a69b8296c889f","version":"697ac26d43dccada5c47c807ac6a69b8296c889f"},{"committed_at":"2011-07-27T16:21:12Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/2dbcad5f7d4aa3ee49faf0ac30e5144524865c62","version":"2dbcad5f7d4aa3ee49faf0ac30e5144524865c62"},{"committed_at":"2011-07-27T15:50:51Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/f73e5ba7865fb9b876675bb4b7d69d21ab40b2d1","version":"f73e5ba7865fb9b876675bb4b7d69d21ab40b2d1"},{"committed_at":"2011-07-27T13:22:54Z","change_status":{"deletions":2,"additions":2,"total":4},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/75e3dad74a20310792b8d7a1b2f7f17c35a7f923","version":"75e3dad74a20310792b8d7a1b2f7f17c35a7f923"},{"committed_at":"2011-07-27T13:05:38Z","change_status":{"deletions":2,"additions":2,"total":4},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/b6fb0ad77cad59ef45ab097b24a635de34cbbb23","version":"b6fb0ad77cad59ef45ab097b24a635de34cbbb23"},{"committed_at":"2011-07-27T12:49:43Z","change_status":{"deletions":2,"additions":2,"total":4},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/bb866665be8080b3a65de097bcd885cf3c784f3c","version":"bb866665be8080b3a65de097bcd885cf3c784f3c"},{"committed_at":"2011-07-27T11:43:37Z","change_status":{"deletions":0,"additions":0,"total":0},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/4f5da5aae6d5da726268633120daf4e6d37c2261","version":"4f5da5aae6d5da726268633120daf4e6d37c2261"},{"committed_at":"2011-07-26T21:16:18Z","change_status":{"deletions":7,"additions":4,"total":11},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/e36e3de75d903fae3c85a4c99b8e79c6ec9ab7f8","version":"e36e3de75d903fae3c85a4c99b8e79c6ec9ab7f8"},{"committed_at":"2011-06-11T13:30:16Z","change_status":{"deletions":4,"additions":4,"total":8},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/e5840740d141a0003a3aa613eeba8414434dd9ad","version":"e5840740d141a0003a3aa613eeba8414434dd9ad"},{"committed_at":"2011-06-06T11:12:19Z","change_status":{"deletions":6,"additions":8,"total":14},"user":{"url":"https://api.github.com/users/Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Kambfhase","id":295387},"url":"https://api.github.com/gists/1008904/986e0f1f6744c01ccdecb3906be81ce3ccf7d9cf","version":"986e0f1f6744c01ccdecb3906be81ce3ccf7d9cf"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1008904","updated_at":"2011-07-27T16:21:12Z","created_at":"2011-06-05T11:59:37Z"}
View
1 data/entries/1009208.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"var create = function(e,b,i){ // e: regex that contrains the tag name;\n // b: one argument of the 2nd function;\n // i: Counter\n\te = document.createElement(e(e)); // Create the element. e(e) for : /body/.exec(/body/) => ['body'] => 'body'\n\treturn function(){ // To append the childs\n\t\tfor (i=0;b=arguments[i++];) // List of childs\n\t\t\tb[0] ? // If it's a string (I know, bad idea)\n\t\t\t\te.innerHTML+=b // Write the text\n\t\t\t:\n\t\t\t\te.appendChild(b); // Else, append the element\n\t\treturn e; // Then, return the element\n\t}\n};","raw_url":"https://gist.github.com/raw/1009208/6a7d91b8edc7c4e4b6382bb046912d72ae1199f5/annotated.js","size":662,"filename":"annotated.js"},"index.js":{"content":"function(e,b,i){e=document.createElement(e(e));return function(){for(i=0;b=arguments[i++];)b[0]?e.innerHTML+=b:e.appendChild(b);return e}}","raw_url":"https://gist.github.com/raw/1009208/999c47f4cbe8cd17e88b10d0d98750351e5cf1b8/index.js","size":138,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Like a Foo</title>\n<div id=\"ret\"></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var create = function(e,b,i){e=document.createElement(e(e));return function(){for(i=0;b=arguments[i++];)b[0]?e.innerHTML+=b:e.appendChild(b);return e}};\n\n document.getElementById(\"ret\").appendChild(\n\tcreate(/DIV/)(\n\t\tcreate(/UL/)(\n\t\t\tcreate(/LI/)('This is the 1st li !'),\n\t\t\tcreate(/LI/)(\n\t\t\t\tcreate(/UL/)(\n\t\t\t\t\tcreate(/LI/)('A 2nd level li !'),\n\t\t\t\t\tcreate(/LI/)('And another one !')\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\tcreate(/SPAN/)('Thanks ', 'you ', '<3'),\n\t\tcreate(/div/)()\n\t)\n );\n</script>","raw_url":"https://gist.github.com/raw/1009208/3a503e0c43d53302f66f557e875cb1f6ca2d8d1d/test.html","size":660,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"DaDomBuilder\",\n\n \"description\": \"this domBuilder, BUILDS A DOM §\",\n\n \"keywords\": [\n \"dom\",\n \"dombuilder\",\n \"dom builder\"\n ]\n}","raw_url":"https://gist.github.com/raw/1009208/a4c8c8d9dd6a3be78a3ae12117db3ea6332651bd/package.json","size":151,"filename":"package.json"},"LICENSE.TXT":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1009208/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.TXT","size":483,"filename":"LICENSE.TXT"}},"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208","description":"140byt.es -- DOM Builder §","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/2d1ea97007e300826fb5828c129e6794920420b5","committed_at":"2011-06-05T18:24:14Z","version":"2d1ea97007e300826fb5828c129e6794920420b5","change_status":{"deletions":13,"additions":13,"total":26}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/05274f77338a0c0f38354137db9413a592fc6ff7","committed_at":"2011-06-05T18:23:59Z","version":"05274f77338a0c0f38354137db9413a592fc6ff7","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/4863326c14c688549c02df825f430ba64b11f294","committed_at":"2011-06-05T17:57:45Z","version":"4863326c14c688549c02df825f430ba64b11f294","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/cee4ee6d79b3ff283a8da35f823b96876c557822","committed_at":"2011-06-05T17:56:59Z","version":"cee4ee6d79b3ff283a8da35f823b96876c557822","change_status":{"deletions":12,"additions":14,"total":26}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/e9c468e48bd47ccf5d13aedc16b9b3ef2e2967bf","committed_at":"2011-06-05T17:54:30Z","version":"e9c468e48bd47ccf5d13aedc16b9b3ef2e2967bf","change_status":{"deletions":1,"additions":2,"total":3}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/a13f9eba9e2cbe31f2b8e201524d30c8dc1c83e0","committed_at":"2011-06-05T17:47:52Z","version":"a13f9eba9e2cbe31f2b8e201524d30c8dc1c83e0","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/Tiller","id":831119,"avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Tiller"},"url":"https://api.github.com/gists/1009208/b331f7c41570a9aacd60621fc12a7f1c5cde5354","committed_at":"2011-06-05T17:47:27Z","version":"b331f7c41570a9aacd60621fc12a7f1c5cde5354","change_status":{"deletions":68,"additions":34,"total":102}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1009208/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1009208/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1009208/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}}],"git_pull_url":"git://gist.github.com/1009208.git","git_push_url":"git@gist.github.com:1009208.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1009208","updated_at":"2011-06-05T17:47:28Z","created_at":"2011-06-05T17:37:03Z","html_url":"https://gist.github.com/1009208"}
View
1 data/entries/1009237.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1009237/4cd4984fc26539785de27840b0a82aba2a33f9fb/annotated.js","content":"var create = function(e,b,i){\n\te=document.createElement(e(e)); // Create the HTML element. e(e) => /body/(/body/) => [body] => body\n\tfor(i in b)e[i]=b[i]; // Apply all the gived-attributes\n\t\n\treturn function(){ // function to append childs\n\t\tfor(i=0;b=arguments[i++];) // lists every childs\n\t\t\te.appendChild(b); // and appends them\n\t\treturn e // then, return the DOM element\n\t}\n};","size":431,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1009237/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt"},"index.js":{"raw_url":"https://gist.github.com/raw/1009237/fa28c35e0e18ce39a63d41497fa9332ba42fe49b/index.js","content":"function(e,b,i){e=document.createElement(e(e));for(i in b)e[i]=b[i];return function(){for(i=0;b=arguments[i++];)e.appendChild(b);return e}}","size":139,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1009237/f288f9cd007147530fe5b7163497dff6c8e4fdaf/test.html","content":"<!DOCTYPE html> \n<title>AGAIN AND AGAIN AND AGAIN AND AGAIN</title>\n<div id=\"ret\"></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var create = function(e,b,i){e=document.createElement(e(e));for(i in b)e[i]=b[i];return function(){for(i=0;b=arguments[i++];)e.appendChild(b);return e}};\n\n document.getElementById(\"ret\").appendChild(\n\tcreate(/DIV/, {align: 'center', innerHTML: 'Trololo<br/>'})(\n\t\tcreate(/UL/, {id: 'ul'})(\n\t\t\tcreate(/LI/, {innerHTML: 'This is the 1st li !'})(),\n\t\t\tcreate(/LI/)(\n\t\t\t\tcreate(/UL/)(\n\t\t\t\t\tcreate(/LI/, {innerHTML: 'A 2nd level li !'})(),\n\t\t\t\t\tcreate(/LI/, {innerHTML: 'And another one !'})()\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\t\tcreate(/SPAN/)(document.createTextNode('Thanks you <3')),\n\t\tcreate(/div/)()\n\t)\n );\n</script>","size":806,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1009237/a871abd09a5915ff078a614fa45fff762466f338/package.json","content":"{\n \"name\": \"YetAnotherDomBuilder\",\n\n \"description\": \"This DomBuilder ALSO builds a dom ! But it ALSO takes attributes in argument §\",\n\n \"keywords\": [\n \"dom\",\n \"dombuilder\",\n \"dom builder\"\n ]\n}","size":206,"filename":"package.json"}},"html_url":"https://gist.github.com/1009237","user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"git_push_url":"git@gist.github.com:1009237.git","url":"https://api.github.com/gists/1009237","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"140byt.es -- YET ANOTHER DOM BUILDER §","public":true,"comments":6,"history":[{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/f71596ac494024b08ed5115b6e33ffe7e8b08b56","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-07-11T03:23:02Z","version":"f71596ac494024b08ed5115b6e33ffe7e8b08b56"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/a31fe324cd426b68ddf90bb6e11ea3adcfe3dcc5","change_status":{"deletions":1,"additions":13,"total":14},"committed_at":"2011-06-05T18:24:22Z","version":"a31fe324cd426b68ddf90bb6e11ea3adcfe3dcc5"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/fa8b8ae6dc72e19fe81091717558a1085dfb636a","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-05T18:22:22Z","version":"fa8b8ae6dc72e19fe81091717558a1085dfb636a"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/ad4393c214da1b135f2fe338009f77cfdd4486d8","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-05T18:21:59Z","version":"ad4393c214da1b135f2fe338009f77cfdd4486d8"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/533aa116996b6cd7ec878884914226d35ae0bf3f","change_status":{"deletions":10,"additions":10,"total":20},"committed_at":"2011-06-05T18:21:29Z","version":"533aa116996b6cd7ec878884914226d35ae0bf3f"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/36c6f131088a2c4da19403fdba3b806ebc0022aa","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-05T18:18:56Z","version":"36c6f131088a2c4da19403fdba3b806ebc0022aa"},{"user":{"url":"https://api.github.com/users/Tiller","login":"Tiller","avatar_url":"https://secure.gravatar.com/avatar/6731a6859278907d01913e7392e124be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":831119},"url":"https://api.github.com/gists/1009237/282645f9bc6b37f24e124d78aac26fbe9ddd63cf","change_status":{"deletions":68,"additions":35,"total":103},"committed_at":"2011-06-05T18:17:19Z","version":"282645f9bc6b37f24e124d78aac26fbe9ddd63cf"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009237/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009237/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009237/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"}],"id":"1009237","updated_at":"2011-06-05T18:21:29Z","created_at":"2011-06-05T18:12:44Z","git_pull_url":"git://gist.github.com/1009237.git"}
View
1 data/entries/1009759.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1009759/305c22420fd7192fcb25497366de9f0adcea03bb/annotated.js","content":"function(\n a, // take almost any selector keep it to CSS2.1 valid selector for IE8 support e.g \"li,a,p,div:first-child\"\n b // an optional context, you can pass the function itself as a context e.g. fn(\"li\",fn(\"#id\")[0]) make sure you tell it to look at the first array item\n){\n return( // return an element or list, from within the scope of\n b // the passed context\n || document // or document,\n ).querySelectorAll( // qSA lets you pass any valid css selectors and returns a static node list\n a // pass in CSS selector.\n )\n}","size":672,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1009759/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt"},"index.js":{"raw_url":"https://gist.github.com/raw/1009759/9bcdff53486426fdb563cd427ca50035de139747/index.js","content":"function(a,b){return(b||document).querySelectorAll(a)}","size":54,"filename":"index.js"},"package.json":{"raw_url":"https://gist.github.com/raw/1009759/66ee39712f69015b5eb4265911dfd9913ef70b40/package.json","content":"{\n \"name\": \"cssSelect\",\n\n \"description\": \"select DOM elements by any valid CSS selector\",\n\n \"keywords\": [\n \"dom\",\n \"css\",\n \"id\",\n \"class\",\n \"tag\"\n ]\n}","size":169,"filename":"package.json"}},"html_url":"https://gist.github.com/1009759","user":{"url":"https://api.github.com/users/ryanseddon","login":"ryanseddon","avatar_url":"https://secure.gravatar.com/avatar/8677c9f7c0f6d947bf318c1430d00bfd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":143402},"git_push_url":"git@gist.github.com:1009759.git","url":"https://api.github.com/gists/1009759","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"select DOM elements by any valid CSS selector","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/ryanseddon","login":"ryanseddon","avatar_url":"https://secure.gravatar.com/avatar/8677c9f7c0f6d947bf318c1430d00bfd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":143402},"url":"https://api.github.com/gists/1009759/8d8a4dc82627d5416db893ac6eabfbd4c3ee5ef2","change_status":{"deletions":61,"additions":18,"total":79},"committed_at":"2011-06-06T04:55:24Z","version":"8d8a4dc82627d5416db893ac6eabfbd4c3ee5ef2"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1009759/960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7},"committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1"}],"id":"1009759","updated_at":"2011-06-06T04:55:24Z","created_at":"2011-06-06T04:51:46Z","git_pull_url":"git://gist.github.com/1009759.git"}
View
1 data/entries/1010324.json
@@ -0,0 +1 @@
+{"description":"UTF-8 byte counter in 55 bytes","created_at":"2011-06-06T14:04:47Z","forks":[{"created_at":"2011-07-31T01:21:52Z","user":{"gravatar_id":"75da15ec0657d6d4e8c10e2f12072167","avatar_url":"https://secure.gravatar.com/avatar/75da15ec0657d6d4e8c10e2f12072167?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/loriloo","id":949271,"login":"loriloo"},"updated_at":"2011-07-31T01:21:52Z","id":"1116232","url":"https://api.github.com/gists/1116232"}],"html_url":"https://gist.github.com/1010324","git_pull_url":"git://gist.github.com/1010324.git","files":{"annotated.js":{"content":"function(string) {\n\treturn ~- // (~-x) is a clever way of saying (x-1)\n\t\tencodeURI(string) // URL-encode the string,\n\t\t.split(/%..|./) // split the result for every group of the form `%XY` or just `Z` —\n\t\t // this creates a new array containing an empty string for every byte + one extra,\n\t\t.length; // and read out its length\n}","type":"application/javascript","raw_url":"https://gist.github.com/raw/1010324/723dffca57e80a4397ef9e8150c592f8b0c8caf6/annotated.js","size":345,"filename":"annotated.js","language":"JavaScript"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Mathias Bynens <http://mathiasbynens.be/>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","type":"text/plain","raw_url":"https://gist.github.com/raw/1010324/0e87bbd0322c12d950daf91e99f45073e72e105f/LICENSE.txt","size":494,"filename":"LICENSE.txt","language":"Text"},"index.js":{"content":"function(s){return~-encodeURI(s).split(/%..|./).length}","type":"application/javascript","raw_url":"https://gist.github.com/raw/1010324/d4991a276d5feaaadab6dc3f109a06bcc58b83ee/index.js","size":55,"filename":"index.js","language":"JavaScript"},"test.html":{"content":"<!DOCTYPE html>\n<-- online demo: http://mothereff.in/byte-counter -->\n<meta charset=utf-8>\n<title>Get the byte size of any UTF-8 string</title>\n<input autofocus>\n<p>Byte size: <span></span>\n<script>\n\tvar byteSize = function(s){return~-encodeURI(s).split(/%..|./).length},\n\t el = document.getElementsByTagName('span')[0];\n\n\tdocument.getElementsByTagName('input')[0].oninput = function() {\n\t\tel.innerHTML = byteSize(this.value);\n\t};\n</script>","type":"text/html","raw_url":"https://gist.github.com/raw/1010324/62bda223bdcdf743aa7ecddc7e63bad68536cd94/test.html","size":443,"filename":"test.html","language":"HTML"},"package.json":{"content":"{\n\t\"name\": \"byteSize\",\n\t\"description\": \"This function will return the byte size of any UTF-8 string you pass to it.\",\n\t\"keywords\": [\n\t\t\"utf-8\",\n\t\t\"utf8\",\n\t\t\"byte\",\n\t\t\"byte-size\"\n\t]\n}","type":"application/json","raw_url":"https://gist.github.com/raw/1010324/8c317221c867f2c30938a835f2efcbb63b13197a/package.json","size":182,"filename":"package.json","language":"JSON"}},"public":true,"git_push_url":"git@gist.github.com:1010324.git","user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"comments":12,"fork_of":{"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","files":{"annotated.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js","language":"JavaScript"},"LICENSE.txt":{"type":"text/plain","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt","language":"Text"},"README.md":{"type":"text/plain","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md","language":"Markdown"},"index.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js","language":"JavaScript"},"test.html":{"type":"text/html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html","language":"HTML"},"package.json":{"type":"application/json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json","language":"JSON"}},"public":true,"git_push_url":"git@gist.github.com:962807.git","user":{"gravatar_id":"53e21508b6995fa42f2e034b87daa901","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","id":777161,"login":"140bytes"},"comments":51,"updated_at":"2011-05-18T12:15:41Z","id":"962807","url":"https://api.github.com/gists/962807"},"history":[{"change_status":{"additions":4,"total":7,"deletions":3},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"766f6edeb81fe01dbf82e194aa5d921cd44d2841","url":"https://api.github.com/gists/1010324/766f6edeb81fe01dbf82e194aa5d921cd44d2841","committed_at":"2011-11-18T18:03:54Z"},{"change_status":{"additions":8,"total":17,"deletions":9},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"0b37f31c40d1504075f1d430955938857fdb6109","url":"https://api.github.com/gists/1010324/0b37f31c40d1504075f1d430955938857fdb6109","committed_at":"2011-10-05T05:53:15Z"},{"change_status":{"additions":1,"total":2,"deletions":1},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"5a5da275e6b64bf007c033c563abfe026532c60e","url":"https://api.github.com/gists/1010324/5a5da275e6b64bf007c033c563abfe026532c60e","committed_at":"2011-07-11T04:11:05Z"},{"change_status":{"additions":8,"total":15,"deletions":7},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"c7e370fbca36067416649bf6d718fbe46361b0a5","url":"https://api.github.com/gists/1010324/c7e370fbca36067416649bf6d718fbe46361b0a5","committed_at":"2011-06-06T16:42:00Z"},{"change_status":{"additions":1,"total":2,"deletions":1},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"aeb35da8e1cfc56f5e2a48ee235d144d31640c28","url":"https://api.github.com/gists/1010324/aeb35da8e1cfc56f5e2a48ee235d144d31640c28","committed_at":"2011-06-06T14:14:52Z"},{"change_status":{"additions":27,"total":91,"deletions":64},"user":{"gravatar_id":"24e08a9ea84deb17ae121074d0f17125","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mathiasbynens","id":81942,"login":"mathiasbynens"},"version":"52ecd8336b00786c7b6c944c86912d85a0ada296","url":"https://api.github.com/gists/1010324/52ecd8336b00786c7b6c944c86912d85a0ada296","committed_at":"2011-06-06T14:14:17Z"},{"change_status":{"additions":5,"total":12,"deletions":7},"user":{"gravatar_id":"53e21508b6995fa42f2e034b87daa901","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","id":777161,"login":"140bytes"},"version":"97b4f64048ad388d12e0473b416d7e4893391f50","url":"https://api.github.com/gists/1010324/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z"},{"change_status":{"additions":1,"total":1,"deletions":0},"user":{"gravatar_id":"53e21508b6995fa42f2e034b87daa901","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","id":777161,"login":"140bytes"},"version":"df573b0569cc36550aa73fa9244286f24823fbb9","url":"https://api.github.com/gists/1010324/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z"},{"change_status":{"additions":1,"total":2,"deletions":1},"user":{"gravatar_id":"53e21508b6995fa42f2e034b87daa901","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","id":777161,"login":"140bytes"},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","url":"https://api.github.com/gists/1010324/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z"},{"change_status":{"additions":13,"total":13,"deletions":0},"user":{"gravatar_id":"53e21508b6995fa42f2e034b87daa901","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","id":777161,"login":"140bytes"},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","url":"https://api.github.com/gists/1010324/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z"}],"updated_at":"2011-11-18T18:03:54Z","id":"1010324","url":"https://api.github.com/gists/1010324"}
View
1 data/entries/1015289.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/dcdustin","login":"dcdustin","avatar_url":"https://secure.gravatar.com/avatar/6b86d46bea2a6f4e7eaf0473e67ff1ff?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":49771},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"nl2br and br2nl","url":"https://api.github.com/gists/1015289","created_at":"2011-06-08T20:13:55Z","history":[{"user":{"url":"https://api.github.com/users/dcdustin","login":"dcdustin","avatar_url":"https://secure.gravatar.com/avatar/6b86d46bea2a6f4e7eaf0473e67ff1ff?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":49771},"url":"https://api.github.com/gists/1015289/2705ce1860b1d0234be07d22d7adf2a687ef0c79","committed_at":"2011-06-09T20:40:47Z","version":"2705ce1860b1d0234be07d22d7adf2a687ef0c79","change_status":{"deletions":2,"additions":2,"total":4}},{"user":{"url":"https://api.github.com/users/dcdustin","login":"dcdustin","avatar_url":"https://secure.gravatar.com/avatar/6b86d46bea2a6f4e7eaf0473e67ff1ff?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":49771},"url":"https://api.github.com/gists/1015289/af064fe82d10e3b865fc7b4bba1725b19ce07a89","committed_at":"2011-06-09T17:22:40Z","version":"af064fe82d10e3b865fc7b4bba1725b19ce07a89","change_status":{"deletions":9,"additions":17,"total":26}},{"user":{"url":"https://api.github.com/users/dcdustin","login":"dcdustin","avatar_url":"https://secure.gravatar.com/avatar/6b86d46bea2a6f4e7eaf0473e67ff1ff?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":49771},"url":"https://api.github.com/gists/1015289/5e2a90b5a6d62f6eef7a582c0b8ef8814155446e","committed_at":"2011-06-08T20:40:43Z","version":"5e2a90b5a6d62f6eef7a582c0b8ef8814155446e","change_status":{"deletions":57,"additions":22,"total":79}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1015289/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}}],"comments":7,"updated_at":"2011-06-09T17:22:40Z","public":true,"forks":[],"html_url":"https://gist.github.com/1015289","git_pull_url":"git://gist.github.com/1015289.git","id":"1015289","files":{"annotated.js":{"filename":"annotated.js","content":"/*\n// Modifying global String object version\ns=String.prototype; // shortcut for String.prototype\ns.nl2br = function(){ // newline to <br> method\n\treturn this.replace(/\\r?\\n/g,'<br>') // replaces all instances of \\r\\n or \\n with a <br>\n};\ns.br2nl = function(){ // <br> to new line method\n\treturn this.replace(/<br[^>]*>/g,\"\\n\") // replaces all instances of <br> or <br/> or <br /> or <br ...> with \\n\n}\n*/\n\n// 140byt.es version\nfunction(s, \t\t\t\t// string to work with\n\t n){ \t\t\t\t// if true replace nl with br, otherwise br with nl\n\treturn s.replace( \t\t// replace found s values\n\tn?/\\r?\\n/g:/<br[^>]*>/g, \t// conditional to test what we are replaceing\n\tn?'<br>':\"\\n\"\t\t\t// what value do we replace with\n\t)\t\t\t\t// done\n}\n","raw_url":"https://gist.github.com/raw/1015289/a68cf7bd4c19a3a437b7e090dadd25d9d007ef8e/annotated.js","size":715},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1015289/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"index.js":{"filename":"index.js","content":"function(s,n){return s.replace(n?/\\r?\\n/g:/<br[^>]*>/g,n?'<br>':\"\\n\")}","raw_url":"https://gist.github.com/raw/1015289/f3fb41521f0b0ea5761c92e97d33666807c89ec6/index.js","size":70},"test.html":{"filename":"test.html","content":"<!DOCTYPE html> \n<title>nl2br and br2nl</title>\n<script>\nvar n2b2n = function(s,n){return s.replace(n?/\\r?\\n/g:/<br[^>]*>/g,n?'<br>':\"\\n\")};\nvar sOne = \"Read\\nMy\\r\\nLips\";\nvar sTwo = \"No<br>New<br />Lines<br/>\";\n\nconsole.log(sOne + \"\\n\\n\" + n2b2n(sOne, 1));\nconsole.log(sTwo + \"\\n\\n\" + n2b2n(sTwo));\n</script>","raw_url":"https://gist.github.com/raw/1015289/555f295ff00ad8a46c20ca228e456b8cbde20494/test.html","size":309},"package.json":{"filename":"package.json","content":"{\n \"name\": \"nl2Br2Nl\",\n\n \"description\": \"Expression for replacing new line characters and HTML line breaks with one another.\",\n\n \"keywords\": [\n \"string\",\n \"newline\",\n \"linebreak\"\n ]\n}","raw_url":"https://gist.github.com/raw/1015289/dbcb9b7adbf1f4a74404c9d810e5fef469aecb91/package.json","size":196}},"git_push_url":"git@gist.github.com:1015289.git"}
View
1 data/entries/1018938.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"((function(\n w, //shortcut for the window object\n m, //the empty array that stores the current global variables\n t, //placeholder\n g, //placeholder\n i //placeholder\n){\n g=function(x,s){ //make function that we can run repeatedly\n for(i in w){ //iterate over all children of window, which is the global scope opject\n (!s&&!m[i])?delete w[i]:m[i]=1 //if in scan mode (s), save current globals to map, else delete global if it's not in map\n }\n t=setTimeout(g,Math.random()*1000) //repeat in random intervals just to add more fun ;)\n };\n g(1,1) //initial call to get it running\n})(window,[]) //pass window and an empty array into the closure as parameters to save characters\n\n","raw_url":"https://gist.github.com/raw/1018938/159ef6419421c6ffbff07f7535f75ed08e3f7452/annotated.js","size":845,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1018938/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"index.js":{"content":"(function(w,m,t,g,i){g=function(x,s){for(i in w){(!s&&!m[i])?delete w[i]:m[i]=1}t=setTimeout(g,Math.random()*1000)};g(1,1)})(window,[])\n","raw_url":"https://gist.github.com/raw/1018938/13257e9eaee00b82c0d109afad970e47e45ac911/index.js","size":136,"filename":"index.js"},"package.json":{"content":"{\n \"name\": \"GlobalCleaner140\",\n\n \"description\": \"Use this on people who need some scope discipline ...\",\n\n \"keywords\": [\n \"scope\",\n \"global\",\n \"cleanup\",\n \"variables\"\n ]\n}\n\n","raw_url":"https://gist.github.com/raw/1018938/8b84008bab9751ac1d7809708cb8cc396fb4c04c/package.json","size":189,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"html_url":"https://gist.github.com/1018938","url":"https://api.github.com/gists/1018938","description":"Cleaning the global scope","public":true,"comments":4,"history":[{"user":null,"url":"https://api.github.com/gists/1018938/4a2b129a56e44bbf32d3c0ef1d920a300995eb71","committed_at":"2011-06-10T15:53:04Z","change_status":{"deletions":2,"additions":2,"total":4},"version":"4a2b129a56e44bbf32d3c0ef1d920a300995eb71"},{"user":null,"url":"https://api.github.com/gists/1018938/01e71e6eb915a1afe9eac105ce2150d25b810247","committed_at":"2011-06-10T15:02:12Z","change_status":{"deletions":5,"additions":5,"total":10},"version":"01e71e6eb915a1afe9eac105ce2150d25b810247"},{"user":null,"url":"https://api.github.com/gists/1018938/215a4a227b2a6098dff4f76a1b586b887dd21621","committed_at":"2011-06-10T14:56:22Z","change_status":{"deletions":63,"additions":25,"total":88},"version":"215a4a227b2a6098dff4f76a1b586b887dd21621"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1018938/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"}],"git_pull_url":"git://gist.github.com/1018938.git","id":"1018938","updated_at":"2011-06-10T14:57:07Z","created_at":"2011-06-10T14:28:52Z","git_push_url":"git@gist.github.com:1018938.git"}
View
1 data/entries/1020383.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"Quick and dirty way to check if a given string can be used as an unquoted attribute value in HTML. (50 bytes)","url":"https://api.github.com/gists/1020383","created_at":"2011-06-11T08:56:44Z","history":[{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"url":"https://api.github.com/gists/1020383/bc737bb2daf42e8c483a34281cac644a95018701","committed_at":"2011-06-13T19:06:55Z","version":"bc737bb2daf42e8c483a34281cac644a95018701","change_status":{"deletions":21,"additions":10,"total":31}},{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"url":"https://api.github.com/gists/1020383/b36ff895621306e4fc266c5cc621b5f78154c3ac","committed_at":"2011-06-12T17:33:01Z","version":"b36ff895621306e4fc266c5cc621b5f78154c3ac","change_status":{"deletions":4,"additions":14,"total":18}},{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"url":"https://api.github.com/gists/1020383/7657ac071243aea106aee33c2aa2760149790360","committed_at":"2011-06-12T06:41:54Z","version":"7657ac071243aea106aee33c2aa2760149790360","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"url":"https://api.github.com/gists/1020383/fb7f7543a186babca8b5b397d5d5a274f7acb981","committed_at":"2011-06-11T10:16:45Z","version":"fb7f7543a186babca8b5b397d5d5a274f7acb981","change_status":{"deletions":1,"additions":2,"total":3}},{"user":{"url":"https://api.github.com/users/mathiasbynens","login":"mathiasbynens","avatar_url":"https://secure.gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":81942},"url":"https://api.github.com/gists/1020383/e7f68535cf63d1bf72bd02845dbc7f26fde1201c","committed_at":"2011-06-11T08:58:15Z","version":"e7f68535cf63d1bf72bd02845dbc7f26fde1201c","change_status":{"deletions":63,"additions":27,"total":90}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1020383/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1020383/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1020383/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1020383/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1020383/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}}],"comments":3,"updated_at":"2011-06-13T19:35:08Z","public":true,"forks":[],"html_url":"https://gist.github.com/1020383","git_pull_url":"git://gist.github.com/1020383.git","id":"1020383","files":{"annotated.js":{"filename":"annotated.js","content":"function(value) {\n\treturn /^[^ \\t\\n\\f\\r\"'`=<>]+$/.test(value);\n}","raw_url":"https://gist.github.com/raw/1020383/1d5617929777101f8db888595a5528e5e999587f/annotated.js","size":64},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Mathias Bynens <http://mathiasbynens.be/>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1020383/0e87bbd0322c12d950daf91e99f45073e72e105f/LICENSE.txt","size":494},"index.js":{"filename":"index.js","content":"function(v){return/^[^ \\t\\n\\f\\r\"'`=<>]+$/.test(v)}","raw_url":"https://gist.github.com/raw/1020383/69268f1922ce332ee6bcde8c02c9a807c0350cab/index.js","size":50},"README.txt":{"filename":"README.txt","content":"So, after cross-referencing these three different sections of the HTML\nspec, we can finally conclude that a valid unquoted attribute value in\nHTML is any string of text that is not the empty string and that doesn’t\ncontain spaces, tabs, line feeds, form feeds, carriage returns, \", ', `,\n=, <, or >.\n\n→ See http://mathiasbynens.be/notes/unquoted-attribute-values","raw_url":"https://gist.github.com/raw/1020383/dd51ee2f4c412fe555c8de9d42ad7aefb6755fc4/README.txt","size":366},"test.html":{"filename":"test.html","content":"<!DOCTYPE html>\n<!-- Demo: http://mothereffingunquotedattributes.com/ -->\n<title>Unquoted attribute value validator</title>\n<input value=\"foo'bar\" required autofocus> is <em>not</em> a valid unquoted attribute value.\n<script>\n\tvar isUnquotable = function(v){return/^[^ \\t\\n\\f\\r\"'`=<>]+$/.test(v)},\n\t el = document.getElementsByTagName('em')[0];\n\n\tdocument.getElementsByTagName('input')[0].oninput = function() {\n\t\tel.style.display = isUnquotable(this.value) ? 'none' : 'inline';\n\t};\n</script>","raw_url":"https://gist.github.com/raw/1020383/db32ccaa55fb2b09e2074ed42c06312854abba77/test.html","size":495},"package.json":{"filename":"package.json","content":"{\n\t\"name\": \"unquotedHTMLAttributeValueValidator\",\n\t\"description\": \"Check if a given string can be used as an unquoted attribute value in HTML.\",\n\t\"keywords\": [\n\t\t\"html\",\n\t\t\"attribute\",\n\t\t\"attribute-values\"\n\t]\n}","raw_url":"https://gist.github.com/raw/1020383/b356a8fe263fccd03c612a900d70e8e3aa599f73/package.json","size":210}},"git_push_url":"git@gist.github.com:1020383.git"}
View
1 data/entries/1020396.json
@@ -0,0 +1 @@
+{"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1020396/be0a57a6db18df1ca57986c4a6098c30b48925b4/annotated.js","content":"function(\n d, // base64 data (in IE7 or older, use .split('') to get this working\n b, // replacement map (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\")\n c, // character and - ascii value buffer\n u, // bit storage\n r, // result\n q, // bit counter\n x // char counter\n){\n for (\n // initialize result and counters\n r = q = x = '';\n // get next character\n c = d[x++];\n // character found in table? initialize bit storage and add its ascii value;\n ~c && (u = q%4 ? u*64+c : c, \n // and if not first of each 4 characters, convert the first 8bits to one ascii character\n q++ % 4) ? r += String.fromCharCode(255&u>>(-2*q&6)) : 0\n )\n // try to find character in table (0-63, not found => -1)\n c = b.indexOf(c);\n // return result\n return r\n}","size":833,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1020396/b900922680a59b77034bc3498071e58e77f4a870/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright* (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n\n* As far as something complicated as Copyright applies to such an\n simple code...","size":569,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1020396/89121008950e25cfe9cedb7aae35498172e57076/README.md","content":"base64 decoder\n==============\n\nA tweet-sized 64bit decoder inspired by this base64 encoder: https://gist.github.com/999166\n\nIt will fail on older IEs (Version 7 or older) unless the input String is converted to an Array using .split('').\n\nThanks to @jed for this great idea of 140byt.es and thanks to him and Kambfhase for help; thanks to @nikola for a hint saving 2 brackets! Thanks to LeverOne for his support fixing the last bugs regarding RFC2045 conformity and golfing the last bytes.","size":489,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1020396/674af092ab62358928a161b7fa5703c274f6a552/index.js","content":"function(d,b,c,u,r,q,x){for(r=q=x='';c=d[x++];~c&&(u=q%4?u*64+c:c,q++%4)?r+=String.fromCharCode(255&u>>(-2*q&6)):0)c=b.indexOf(c);return r}","size":139,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1020396/037175a30b83cecd24fbeb76f5a42819793d5b8d/test.html","content":"<!DOCTYPE html> \n<title>Base64 decoder</title>\n<script type=\"text/javascript\">\n\n(function(){\n\nvar f = function(d,b,c,u,r,q,x){for(r=q=x='';c=d[x++];~c&&(u=q%4?u*64+c:c,q++%4)?r+=String.fromCharCode(255&u>>(-2*q&6)):0)c=b.indexOf(c);return r}\n, test = {\n \"Zg==\" : \"f\"\n,\"Zm8=\" : \"fo\"\n,\"Zm9v\" : \"foo\"\n,\"Zm9vYg==\" : \"foob\"\n,\"Zm9vYmE=\" : \"fooba\"\n,\"Zm9vYmFy\" : \"foobar\"\n,\"MTQwYnl0ZX\\n MgcnVsZXMh\" : \"140bytes rules!\"\n}\n, error = 0;\n;\n\nfor( i in test ) {\nvar r = f(i, \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\");\nif( r != test[i] ) {\nerror++;\ndocument.writeln( 'Expected &quot;'+test[i]+'&quot; for &quot;'+i+'&quot; but got &quot;'+ r + \"&quot;<br>\" );\n}\n}\n\nif( error > 0) {\ndocument.writeln( \"<br>\"+error+ \" tests failed!<br>\" );\n} else {\ndocument.writeln( \"<br>Everything is fine!<br>\" );\n}\n\n})();\n\n\n</script>\n</body>\n</html>","size":847,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1020396/2fda9b6369738741d465a3a2b748c6f76471b76f/package.json","content":"{\n \"name\": \"Base64Decoder\",\n\n \"description\": \"Fully working Base64 decoder in 139bytes\",\n\n \"keywords\": [\n \"base64\",\n \"decode\",\n \"padding\",\n \"rfc2045\"\n ]\n}","size":170,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396","description":"base64 decoder","public":true,"comments":53,"history":[{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/06b1b07ca6a47088ea28e195410455ecb4a544c5","committed_at":"2011-06-19T12:26:59Z","change_status":{"deletions":23,"additions":26,"total":49},"version":"06b1b07ca6a47088ea28e195410455ecb4a544c5"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/1f239883ba1c9e53bc3339078af9251fd50ec259","committed_at":"2011-06-13T18:51:21Z","change_status":{"deletions":5,"additions":5,"total":10},"version":"1f239883ba1c9e53bc3339078af9251fd50ec259"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/4f3e3c190601590022acdb2cda2a985b05011614","committed_at":"2011-06-11T20:42:56Z","change_status":{"deletions":4,"additions":7,"total":11},"version":"4f3e3c190601590022acdb2cda2a985b05011614"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/e278a8e05379ff7f1ebf24bd60fd570dfa8640ce","committed_at":"2011-06-11T19:09:05Z","change_status":{"deletions":6,"additions":7,"total":13},"version":"e278a8e05379ff7f1ebf24bd60fd570dfa8640ce"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/b909953626dcc3e8d30deb9370b003c883ad5230","committed_at":"2011-06-11T13:26:32Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"b909953626dcc3e8d30deb9370b003c883ad5230"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/d7dbfeb10cf80b981301d757fd7d1fe782604b0d","committed_at":"2011-06-11T13:06:39Z","change_status":{"deletions":8,"additions":6,"total":14},"version":"d7dbfeb10cf80b981301d757fd7d1fe782604b0d"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/a13913a5f1ada4894c384b53952663ff2891d4c1","committed_at":"2011-06-11T12:51:35Z","change_status":{"deletions":9,"additions":6,"total":15},"version":"a13913a5f1ada4894c384b53952663ff2891d4c1"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/1efc6d26221ec442fe6e55229b656a23ecce67e8","committed_at":"2011-06-11T12:31:14Z","change_status":{"deletions":3,"additions":3,"total":6},"version":"1efc6d26221ec442fe6e55229b656a23ecce67e8"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/9ae958277240924bfcb2b399b1956d07d8c05578","committed_at":"2011-06-11T12:02:39Z","change_status":{"deletions":4,"additions":5,"total":9},"version":"9ae958277240924bfcb2b399b1956d07d8c05578"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1020396/8872d1f2a5fc4dedcf7cb896eb3ac174057d77aa","committed_at":"2011-06-11T11:52:09Z","change_status":{"deletions":5,"additions":4,"total":9},"version":"8872d1f2a5fc4dedcf7cb896eb3ac174057d77aa"}],"html_url":"https://gist.github.com/1020396","git_pull_url":"git://gist.github.com/1020396.git","git_push_url":"git@gist.github.com:1020396.git","id":"1020396","updated_at":"2011-06-11T09:28:54Z","created_at":"2011-06-11T09:11:50Z"}
View
1 data/entries/1027389.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","id":150755,"avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cmevans2"},"url":"https://api.github.com/gists/1126997","id":"1126997","updated_at":"2011-08-05T06:03:00Z","created_at":"2011-08-05T06:03:00Z"}],"files":{"annotated.js":{"content":"// Please, see http://rosettacode.org/wiki/LZW_compression#JavaScript\n// and http://en.wikipedia.org/wiki/Lempel–Ziv–Welch for more infos.\n\n\nfunction (\n a // String to compress and placeholder for 'wc'.\n){\n\n for (\n var b = a + \"Ā\", // Append first \"illegal\" character (charCode === 256).\n c = [], // dictionary\n d = 0, // dictionary size\n e = d, // iterator\n f = c, // w\n g = c, // result\n h; // c\n\n h = b.charAt(e++);\n )\n\n c[h] = h.charCodeAt(), // Fill in the dictionary ...\n f = 1 + c[a = f + h] ? a : (g[d++] = c[f], c[a] = d + 255, h); // ... and use it to compress data.\n\n return g // Array of compressed data.\n\n}","raw_url":"https://gist.github.com/raw/1027389/84a73d6958bf01773f073081141c8858d2a647d9/annotated.js","size":739,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp\n\n Special thanks to @subzey (you rock) and @kbjr !\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1027389/987009337ec1d5ee257f711379524d12ba340a73/LICENSE.txt","size":551,"filename":"LICENSE.txt"},"index.js":{"content":"function(a){for(var b=a+\"Ā\",c=[],d=0,e=d,f=c,g=c,h;h=b.charAt(e++);)c[h]=h.charCodeAt(),f=1+c[a=f+h]?a:(g[d++]=c[f],c[a]=d+255,h);return g}","raw_url":"https://gist.github.com/raw/1027389/79dab3e3889bf4968c0a3a363109710167ab2ba2/index.js","size":140,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>84,79,66,69,79,82,78,79,84,256,258,260,265,259,261,263</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var LZWcompress = function(a){for(var b=a+\"Ā\",c=[],d=0,e=d,f=c,g=c,h;h=b.charAt(e++);)c[h]=h.charCodeAt(),f=1+c[a=f+h]?a:(g[d++]=c[f],c[a]=d+255,h);return g}\n\n document.getElementById(\"ret\").innerHTML = LZWcompress(\"TOBEORNOTTOBEORTOBEORNOT\")\n</script>","raw_url":"https://gist.github.com/raw/1027389/69d6caad507c36437eb9cbe5dc82f269daf5938a/test.html","size":436,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"LZWcompress\",\n\n \"description\": \"JavaScript implementation of the Lempel–Ziv–Welch universal lossless data compression algorithm.\",\n\n \"keywords\": [\n \"LZW\",\n \"lossless\",\n \"data\",\n \"compression\"\n ]\n}","raw_url":"https://gist.github.com/raw/1027389/b32fd22711684df8d3c26ca5873f1505def2778e/package.json","size":252,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/sebastien-p","id":522746,"avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p"},"url":"https://api.github.com/gists/1027389","description":"LZW compression","public":true,"comments":9,"history":[{"user":{"url":"https://api.github.com/users/sebastien-p","id":522746,"avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p"},"url":"https://api.github.com/gists/1027389/22c0c31ad9ddedfa1bbb935508d1207fef4557c3","committed_at":"2011-06-15T15:58:09Z","version":"22c0c31ad9ddedfa1bbb935508d1207fef4557c3","change_status":{"deletions":0,"additions":0,"total":0}},{"user":{"url":"https://api.github.com/users/sebastien-p","id":522746,"avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p"},"url":"https://api.github.com/gists/1027389/75176e24230cc7bf322a02d571a8b23afb7019b3","committed_at":"2011-06-15T15:51:18Z","version":"75176e24230cc7bf322a02d571a8b23afb7019b3","change_status":{"deletions":58,"additions":40,"total":98}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1027389/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}}],"git_pull_url":"git://gist.github.com/1027389.git","git_push_url":"git@gist.github.com:1027389.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1027389","updated_at":"2011-06-15T15:58:09Z","created_at":"2011-06-15T15:49:01Z","html_url":"https://gist.github.com/1027389"}
View
1 data/entries/1029102.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1129144","id":"1129144","updated_at":"2011-08-06T07:37:31Z","created_at":"2011-08-06T07:37:31Z"}],"files":{"annotated.js":{"content":"function(\n\ta\t//input string\n\t,b\t//key string\n\t,c\t//callback function\n\t,d\t//direction (1=encrypt, -1=decrypt)\n\t,e\t//output string\n\t,f\t//iterator\n\t){\n\t\tfor(\n\t\t\tf=e=\"\";\t\t//initialize; f will be coerced to a numerical value\n\t\t\tf<a.length;\t//loop for all character in string\n\t\t\te+=String.fromCharCode(90-25*(a.charCodeAt(f)+d*b.charCodeAt(f++%b.length)+27+~d*6)%26)\n\t\t\t\t\t//very neat trick to make the fact that 26%26=0 work for you rather than against you - see @subzey's description =)\n\t\t\t\t\t//note ~d=-2 for d=1, 0 for d=-1; and 27-15=12 (these are the magic unicode offsets =)\n\t\t)\n\t\t;\n\tc(e)\t//and we're done! send back...\n}","size":620,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/1029102/a4a33a6b5c276ee5420f062a390a5d7f9b71b8e5/annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/1029102/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"content":"The Vignere Cypher\n==================\n\nIn 138b, this will encrypt/decrypt anything using the Vignere cypher. Input is entered as solely lower case letters (no numbers, spaces, special characters etc). Outputs may be verified against http://sharkysoft.com/misc/vigenere/\n\nBackground\n----------\n\nAs described on http://ub.ly/um (the parser chokes on the full URL), the essence of the Vignere cypher is that it is a cyclic version of the Caesar shift cypher. It's not unbreakable but it's pretty good. Also, as a corollary we get rot13 (use \"n\" as an encoding parameter - yes, as originally defined there's a one byte offset from what you might expect...) and of course Caesar.\n\nEntry History\n-------------\nMy initial attempts were encryption only (138b):\n\n```javascript\nfunction(j,s,h,g,i,n){for(g=\"\",i=0;i-j.length;g+=String.fromCharCode(n?n+64:90))n=(j.charCodeAt(i)+s.charCodeAt(i++%s.length)+15)%26;h(g)}\n```\n\nand encryption + decryption (151b):\n\n```javascript\nfunction(j,s,h,t,g,i,n){for(g=\"\",i=0;i-j.length;g+=String.fromCharCode(n?n+64:90))n=(j.charCodeAt(i)+t*s.charCodeAt(i++%s.length)+(t>0?15:27))%26;h(g)}\n```\n\nwith t=+/- 1 being encryption/decryption. Thanks to all the help in the comments (especially @subzey!) this is now down to 138b, with both encryption and decryption.\n\nWhat I learnt\n-------------\n\nThe phrases \"fromCharCode\", \"charCodeAt\" and \"String\" are FAR too long =( \n\nSavings don't always come where you expect them to (see @jed's ultimately unused 'harCode' hack in the comments). In fact, from my experience so far in 140byt.es, they most often come from some slight (or indeed major!) reworking of the algorithm (c.f. the successive contributions to fibonacci, base64 enc/dec etc).\n\nhttp://esparser.qfox.nl/ is amazing","size":1745,"filename":"README.md","raw_url":"https://gist.github.com/raw/1029102/d848c101a104ac792005b028ec3b5b573c84350b/README.md"},"index.js":{"content":"function(a,b,c,d,e,f){for(f=e=\"\";f<a.length;e+=String.fromCharCode(90-25*(a.charCodeAt(f)+d*b.charCodeAt(f++%b.length)+27+~d*6)%26));c(e)}","size":138,"filename":"index.js","raw_url":"https://gist.github.com/raw/1029102/6c36a018d5203042c0e8b9ca454535ed98b3775d/index.js"},"test.html":{"content":"<!DOCTYPE html>\n<title>Vignere encryption</title>\n<pre>\nExpected value: <b>HUMZWBGVMVOAORMWILRNVQESBESOSEGHMRSCELNGHQA</b>\nActual value: <b id=\"ret\"></b>\n</pre>\n<script>\nfunction b(text)\n{\n\tdocument.getElementById( \"ret\" ).innerHTML=text\n}\n\nvar myFunction=function(a,b,c,d,e,f){for(f=e=\"\";f<a.length;e+=String.fromCharCode(90-25*(a.charCodeAt(f)+d*b.charCodeAt(f++%b.length)+27+~d*6)%26));c(e)}\n\n\nmyFunction(\"thiscodeisonlyforstandardlowercaseplaintext\",\"onehundredandthirtyninebytes\",b,1)\n\n//to test decryption:\n//myFunction(\"humzwbgvmvoaormwilrnvqesbesoseghmrscelnghqa\",\"onehundredandthirtyninebytes\",b,-1)\n\n</script>\n</html>","size":629,"filename":"test.html","raw_url":"https://gist.github.com/raw/1029102/75476bc2d937fa6c1833b6e174ab40e269a4408b/test.html"},"package.json":{"content":"{\n \"name\": \"vignereCypher\",\n\n \"description\": \"This will cypher using the vignere method\",\n\n \"keywords\": [\n \"vignere\",\n \"cypher\",\n \"encryption\"\n ]\n}","size":160,"filename":"package.json","raw_url":"https://gist.github.com/raw/1029102/92a8e5c5cdab2f029d4d55e32985c26e9d40dc7b/package.json"}},"html_url":"https://gist.github.com/1029102","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"git_pull_url":"git://gist.github.com/1029102.git","url":"https://api.github.com/gists/1029102","description":"Vigenère cypher","public":true,"comments":23,"git_push_url":"git@gist.github.com:1029102.git","history":[{"change_status":{"deletions":6,"additions":5,"total":11},"committed_at":"2011-06-17T22:55:33Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/20289af46796284107c86087ddd6055c93da21db","version":"20289af46796284107c86087ddd6055c93da21db"},{"change_status":{"deletions":28,"additions":39,"total":67},"committed_at":"2011-06-17T22:26:42Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/4e2ccd4d7e4bc7c97da4acbed06bd8819c02a2fc","version":"4e2ccd4d7e4bc7c97da4acbed06bd8819c02a2fc"},{"change_status":{"deletions":0,"additions":2,"total":2},"committed_at":"2011-06-16T12:21:21Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/4269fc4bbbb13f9fd46ce0e39708045a52e51ad1","version":"4269fc4bbbb13f9fd46ce0e39708045a52e51ad1"},{"change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-16T12:20:41Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/fc09ad7a30fdcb6ff616b60bc939916b5ab34902","version":"fc09ad7a30fdcb6ff616b60bc939916b5ab34902"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-16T12:19:57Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/7793dc01d59d0f62de13d67c226559eb7a7c2060","version":"7793dc01d59d0f62de13d67c226559eb7a7c2060"},{"change_status":{"deletions":2,"additions":6,"total":8},"committed_at":"2011-06-16T12:18:29Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/e037ecf2af4a916be0cb4bb6ceaac085d2f67098","version":"e037ecf2af4a916be0cb4bb6ceaac085d2f67098"},{"change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-16T12:17:42Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/7627ef4a8df7f59eab52b71275fd574a8d23b663","version":"7627ef4a8df7f59eab52b71275fd574a8d23b663"},{"change_status":{"deletions":50,"additions":52,"total":102},"committed_at":"2011-06-16T12:16:08Z","user":{"url":"https://api.github.com/users/wrayal","login":"wrayal","avatar_url":"https://secure.gravatar.com/avatar/956372b536acc80c0accbd66408513ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":813166},"url":"https://api.github.com/gists/1029102/883107b05957c2c64bb2de92b22f9228d9ffb70f","version":"883107b05957c2c64bb2de92b22f9228d9ffb70f"},{"change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1029102/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1029102/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"}],"fork_of":{"files":{"annotated.js":{"size":396,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"size":1457,"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"size":140,"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"size":393,"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"size":241,"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1029102","updated_at":"2011-06-16T12:16:08Z","created_at":"2011-06-16T12:03:29Z"}
View
1 data/entries/1031421.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/ChillyBwoy","avatar_url":"https://secure.gravatar.com/avatar/f0f4c9e73f6b72e8a6c227528926ba92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ChillyBwoy","id":72079},"url":"https://api.github.com/gists/1031583","id":"1031583","updated_at":"2011-06-17T15:00:49Z","created_at":"2011-06-17T15:00:49Z"}],"files":{"annotated.js":{"content":"// Function used to know if the current browser supports CSS transitions\n\nfunction(\n a,b // Placeholders\n) {\n\n a = (new Image).style; // Targeting a new image that will be used to analyze the style object\n\t\n b = 'ransition'; // Part of the transition property, used to minified the code\n\t\n return \n 't' + b in a || // All browsers support\n 'webkitT' + b in a || // Webkit browsers support (e.g. Chrome, Safari...)\n 'MozT' + b in a || // Gecko browsers support (e.g. Firefox, Camino...)\n 'OT' + b in a // Opera support\n ;\n\t\n}","size":541,"raw_url":"https://gist.github.com/raw/1031421/810967c0d08e191eeb045631a4630f341eafd58a/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Johann PARDANAUD : http://plune.fr\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":487,"raw_url":"https://gist.github.com/raw/1031421/fe38a3b24768d844bb892c455aee4a893100e6c5/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"function(a,b){a=(new Image).style;b='ransition';return't'+b in a||'webkitT'+b in a||'MozT'+b in a||'OT'+b in a}","size":111,"raw_url":"https://gist.github.com/raw/1031421/0749b8f71c2115998ad10343251d910b1b78601d/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>CSS 3 Transitions Detector</title>\n<div>Expected value: <b>boolean</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var transitionsSupported = function(a,b){a=(new Image).style;b='ransition';return't'+b in a||'webkitT'+b in a||'MozT'+b in a||'OT'+b in a};\n\n document.getElementById('ret').innerHTML = transitionsSupported();\n</script>","size":373,"raw_url":"https://gist.github.com/raw/1031421/5ce8508117f0a208638f404061923074cb7c1bd8/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"CSS 3 Transitions Detector\",\n\n \"description\": \"Detects CSS 3 transitions support on many browsers\",\n\n \"keywords\": [\n \"CSS 3\",\n \"transitions\",\n \"detect\",\n \"crossbrowser\",\n \"animation\"\n ]\n}","size":218,"raw_url":"https://gist.github.com/raw/1031421/844ea06613db9fdf98a220a33990979c21bbcb7d/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"git_pull_url":"git://gist.github.com/1031421.git","url":"https://api.github.com/gists/1031421","description":"Detect CSS 3 transitions support","public":true,"html_url":"https://gist.github.com/1031421","comments":12,"git_push_url":"git@gist.github.com:1031421.git","history":[{"committed_at":"2011-06-19T15:49:10Z","change_status":{"deletions":3,"additions":3,"total":6},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"url":"https://api.github.com/gists/1031421/32b5005c88f86550ed34749e48448e789b9ca558","version":"32b5005c88f86550ed34749e48448e789b9ca558"},{"committed_at":"2011-06-17T15:37:37Z","change_status":{"deletions":3,"additions":3,"total":6},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"url":"https://api.github.com/gists/1031421/e1da05cbd3bd4ac79799723d48c06e033d40b2f4","version":"e1da05cbd3bd4ac79799723d48c06e033d40b2f4"},{"committed_at":"2011-06-17T15:28:10Z","change_status":{"deletions":7,"additions":7,"total":14},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"url":"https://api.github.com/gists/1031421/bc8ddee3f573890093fa4b2ca153fc01f5f06ca8","version":"bc8ddee3f573890093fa4b2ca153fc01f5f06ca8"},{"committed_at":"2011-06-17T13:40:48Z","change_status":{"deletions":32,"additions":0,"total":32},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"url":"https://api.github.com/gists/1031421/ab6ad882673f9a63fee9f5bed245f10c0d89184a","version":"ab6ad882673f9a63fee9f5bed245f10c0d89184a"},{"committed_at":"2011-06-17T13:40:30Z","change_status":{"deletions":25,"additions":30,"total":55},"user":{"url":"https://api.github.com/users/Nesk","avatar_url":"https://secure.gravatar.com/avatar/22e14b6ee5f5343307e3ff45b3167324?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Nesk","id":817508},"url":"https://api.github.com/gists/1031421/16f1577c6bbedef14a217177c8cb69117045f58e","version":"16f1577c6bbedef14a217177c8cb69117045f58e"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1031421/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1031421/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1031421/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1031421/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1031421/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1031421","updated_at":"2011-06-17T13:32:37Z","created_at":"2011-06-17T13:31:08Z"}
View
1 data/entries/1031568.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"created_at":"2011-06-17T14:51:40Z","html_url":"https://gist.github.com/1031568","comments":13,"git_pull_url":"git://gist.github.com/1031568.git","public":true,"files":{"annotated.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/1031568/dfe4633381533cf9bb0161b46602d9c87f431c40/annotated.js","language":"JavaScript","size":1191,"filename":"annotated.js","content":"// based loosely on Kris Kowal's es-5shim.js\n// https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L204\n//\n// due to space constraints, this version does not check function type or cast length to a number\n\n[].map || ( // if arrays have no map\nArray.prototype.map = // set the prototype's map\nfunction( // to a function\n a // that takes a mapping function\n /*, thisp */ // and an optional scope.\n){\n for (\n var b = this // cache `this` and\n , c = b.length // the array's length,\n , d = [] // create the return array\n , e = 0 // and initialize the cursor,\n , f // and cache undefined.\n ; e < b; // while the cursor is less than the length\n ) d[e] = // set the result member\n e in b // if it originally exists,\n ? a.call( // to the given function, called with\n arguments[1], // the optional scope,\n b[e], // existing member,\n e++, // member index, and\n b ) // current scope,\n : f; // or to undefined otherwise.\n return d // return the result.\n})"},"LICENSE.txt":{"type":"text/plain","raw_url":"https://gist.github.com/raw/1031568/36a7fa2bb27f413b3412bc15590ddeb27ccea232/LICENSE.txt","language":"Text","size":480,"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Jed Schmidt <http://jed.is>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO."},"index.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/1031568/0facfb2100daabd49f90554f117819a9ef1518f9/index.js","language":"JavaScript","size":139,"filename":"index.js","content":"[].map||(Array.prototype.map=function(a){for(var b=this,c=b.length,d=[],e=0,f;e<b;)d[e]=e in b?a.call(arguments[1],b[e],e++,b):f;return d})"},"test.html":{"type":"text/html","raw_url":"https://gist.github.com/raw/1031568/76b5598b35627d89a094e1998d364f909ebd5930/test.html","language":"HTML","size":389,"filename":"test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>2,4,6,8</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n var map =\n\n [].map||(Array.prototype.map=function(a){for(var b=this,c=b.length,d=[],e=0,f;e<b;)d[e]=e in b?a.call(arguments[1],b[e],e++,b):f;return d})\n\n document.getElementById( \"ret\" ).innerHTML = map.call([1,2,3,4], function(x){ return x*2 })\n</script>"},"package.json":{"type":"application/json","raw_url":"https://gist.github.com/raw/1031568/a1fe91797da9f0b72dbddab1ac72b4f130ed530c/package.json","language":"JSON","size":174,"filename":"package.json","content":"{\n \"name\": \"map\",\n\n \"description\": \"polyfill an ES5-compatibile Array.prototype.map where needed.\",\n\n \"keywords\": [\n \"array\",\n \"map\",\n \"es5\",\n \"polyfill\"\n ]\n}"}},"git_push_url":"git@gist.github.com:1031568.git","url":"https://api.github.com/gists/1031568","history":[{"committed_at":"2011-10-25T08:11:27Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":0,"additions":0,"total":0},"url":"https://api.github.com/gists/1031568/f6313732dfe7bf48498fb05de739822f779ce4a0","version":"f6313732dfe7bf48498fb05de739822f779ce4a0"},{"committed_at":"2011-07-24T03:22:15Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":1,"additions":1,"total":2},"url":"https://api.github.com/gists/1031568/c816ea2dd6384620a5e83f7c955fe477d0cf1af1","version":"c816ea2dd6384620a5e83f7c955fe477d0cf1af1"},{"committed_at":"2011-07-20T08:22:15Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":1,"additions":1,"total":2},"url":"https://api.github.com/gists/1031568/5763872d8269ab109aade0a42505ccd40b0a8b28","version":"5763872d8269ab109aade0a42505ccd40b0a8b28"},{"committed_at":"2011-07-20T08:21:42Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":24,"additions":22,"total":46},"url":"https://api.github.com/gists/1031568/e8c98f35da80bbd51878e0efe5ee56d428c9df9c","version":"e8c98f35da80bbd51878e0efe5ee56d428c9df9c"},{"committed_at":"2011-07-20T08:13:48Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":2,"additions":2,"total":4},"url":"https://api.github.com/gists/1031568/d4d9f5119a7a207a7ace6e9cde58dab704e3f415","version":"d4d9f5119a7a207a7ace6e9cde58dab704e3f415"},{"committed_at":"2011-06-17T15:23:57Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":1,"additions":2,"total":3},"url":"https://api.github.com/gists/1031568/fbeab4523fa1072964612ed0f0ddb21dd7d0388a","version":"fbeab4523fa1072964612ed0f0ddb21dd7d0388a"},{"committed_at":"2011-06-17T15:11:17Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":1,"additions":1,"total":2},"url":"https://api.github.com/gists/1031568/28e8efb635a914f0e46533d9a90ec71c8656bf04","version":"28e8efb635a914f0e46533d9a90ec71c8656bf04"},{"committed_at":"2011-06-17T15:06:14Z","user":{"url":"https://api.github.com/users/jed","gravatar_id":"7b72d5a18ab92129692e97a76a153fe0","id":4433,"avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed"},"change_status":{"deletions":55,"additions":41,"total":96},"url":"https://api.github.com/gists/1031568/797a52fd199c5d122baf5eefa7b8c5785d853bc7","version":"797a52fd199c5d122baf5eefa7b8c5785d853bc7"},{"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","gravatar_id":"53e21508b6995fa42f2e034b87daa901","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"change_status":{"deletions":7,"additions":5,"total":12},"url":"https://api.github.com/gists/1031568/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","gravatar_id":"53e21508b6995fa42f2e034b87daa901","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"change_status":{"deletions":0,"additions":1,"total":1},"url":"https://api.github.com/gists/1031568/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"}],"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","gravatar_id":"53e21508b6995fa42f2e034b87daa901","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807","comments":51,"git_pull_url":"git://gist.github.com/962807.git","public":true,"files":{"annotated.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","language":"JavaScript","size":396,"filename":"annotated.js"},"LICENSE.txt":{"type":"text/plain","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","language":"Text","size":483,"filename":"LICENSE.txt"},"README.md":{"type":"text/plain","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","language":"Markdown","size":1457,"filename":"README.md"},"index.js":{"type":"application/javascript","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","language":"JavaScript","size":140,"filename":"index.js"},"test.html":{"type":"text/html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","language":"HTML","size":393,"filename":"test.html"},"package.json":{"type":"application/json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","language":"JSON","size":241,"filename":"package.json"}},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","updated_at":"2011-05-18T12:15:41Z","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","id":"962807"},"updated_at":"2011-10-25T08:11:27Z","forks":[{"created_at":"2011-08-05T03:29:38Z","user":{"url":"https://api.github.com/users/chrisevans","gravatar_id":"6f7328ef7295bc21e2c489e499e121a6","id":150755,"avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"chrisevans"},"url":"https://api.github.com/gists/1126864","updated_at":"2011-08-05T03:29:38Z","id":"1126864"}],"description":"polyfill an ES5-ish Array.prototype.map","id":"1031568"}
View
1 data/entries/1031656.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Array.prototype.filter = [].filter || // use the native method if available\n function(a,// a function to test each value of the array against. Truthy values will be put into the new array and falsey values will be excluded from the new array\n b, c, d, e) { \n for ( \n b=this,// cache the value of this since it's shorter\n d=0,// iterator for the current array value\n c=[];// array to hold the new values which match the expression\n d<b.length;\n d++)\n\n if(a.call(b,e=b[d]))// e is a cache of the current value in case it is manipulated in the function\n c.push(e);// place the value into the array if the function returns truthy\n \n return c\n};","raw_url":"https://gist.github.com/raw/1031656/3bf81133c1d9965aabca23872c05758b7145f33d/annotated.js","size":697,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman http://eliperelman.com\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1031656/607a2cc6c0de350b07d9b90b7ee07375bb70853a/LICENSE.txt","size":488,"filename":"LICENSE.txt"},"README.md":{"content":"140byt.es polyfill for Array.filter\n=========\n","raw_url":"https://gist.github.com/raw/1031656/349d089291ec2cba7249f839ad86ffd37e02dfe4/README.md","size":46,"filename":"README.md"},"index.js":{"content":"Array.prototype.filter=[].filter||function(a,b,c,d,e){for(b=this,d=0,c=[];d<b.length;d++)if(a.call(b,e=b[d]))c.push(e);return c};","raw_url":"https://gist.github.com/raw/1031656/db1019d6b1a44aef4f1d7df9adaf43739aad0266/index.js","size":129,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Array filter polyfill</title>\n<div>Expected value: filter the array values outside of our range (less than 6)</div>\n<script>\n Array.prototype.filter=[].filter||function(a,b,c,d,e){for(b=this,d=0,c=[];d<b.length;d++)if(a.call(b,e=b[d]))c.push(e);return c};\n\n var arr = [1,2,3,4,5,6,7,8,9,10];\n\n // creates new array of [1,2,3,4,5] and reassigns it to arr.\n arr = arr.filter(function(value) {\n return value < 6;\n });\n\n</script>","raw_url":"https://gist.github.com/raw/1031656/5d5892f6cc651f0363caa547780c4fede81301a6/test.html","size":457,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"arrayFilter140Polyfill\",\n\n \"description\": \"A tweet-sized polyfill for Array.prototype.filter\",\n\n \"keywords\": [\n \"array\",\n \"filter\",\n \"polyfill\",\n \"prototype\"\n ]\n}","raw_url":"https://gist.github.com/raw/1031656/b88cd4b77d4eed87fd82dfc237f6459aae5b01dc/package.json","size":190,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"html_url":"https://gist.github.com/1031656","url":"https://api.github.com/gists/1031656","description":"140byt.es polyfill for Array.filter","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1031656/9f039dfc663388fa556c0497b54021af36891d77","committed_at":"2011-06-17T18:02:55Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"9f039dfc663388fa556c0497b54021af36891d77"},{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1031656/874a669ec55fe77714cab91f5b65bd4ad3eeea63","committed_at":"2011-06-17T18:02:14Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"874a669ec55fe77714cab91f5b65bd4ad3eeea63"},{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1031656/53230f91cd9993619e44792168c534e3fdc8a4bb","committed_at":"2011-06-17T15:50:16Z","change_status":{"deletions":2,"additions":2,"total":4},"version":"53230f91cd9993619e44792168c534e3fdc8a4bb"},{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1031656/9cf5ca0cca5b7f217f26f5a2228d4d083483a63c","committed_at":"2011-06-17T15:49:28Z","change_status":{"deletions":54,"additions":30,"total":84},"version":"9cf5ca0cca5b7f217f26f5a2228d4d083483a63c"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1031656/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"e69917d0323336a4cb552f60484b73c09eb538ee"}],"git_pull_url":"git://gist.github.com/1031656.git","id":"1031656","updated_at":"2011-06-17T15:49:28Z","created_at":"2011-06-17T15:37:08Z","git_push_url":"git@gist.github.com:1031656.git"}
View
1 data/entries/1033134.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(\n\ta, /* value */\n\tb, /* number of decimal digits */\n\tc, /* unit */\n\td /* isDecimal */\n\t){\n\twith(Math) /* Lookup properties in Math object */\n\t\treturn\n\t\t\t/* Get the multipler: log(n,m) = log(n,e) / log(m,e) */\n\t\t\t/* I can hardly make it readable */\n\t\t\t/* Divide the original value into power of.. */\n\t\t\t(a / pow(\n\t\t\t\t/* ..base that becomes 1024 if unit is binary and 1000 if decimal */\n\t\t\t\td = 1E3 + 24*!d,\n\t\t\t\t/* `a` is used already, so we can assign to it. It is the multiplier */\n\t\t\t\t/* log via log use the d calculated just before */\n\t\t\t\t/* And then coerce to integer n^0 is like ~~n but has MUCH lower priority\n\t\t\t\t so we can omit the parens */\n\t\t\t\ta = log(a)/log(d) ^0\n\t\t\t\t/* Then convert to fixed number using b as parameter */\n\t\t\t\t)).toFixed(b) +\n\t\t\t/* Just a typography: add the whitespace.*/\n\t\t\t' ' +\n\t\t\t/* Split string by regexp: use dash or nothing */\n\t\t\t/* ['','k','G','T'] Hope, T it is enough for now */\n\t\t\t/* then picking a letter depending on `a` */\n\t\t\t'-kMGT'.split(/-?/)[a] +\n\t\t\t/* Append \"i\" if unit is binary and multiplier is more than 0 */\n\t\t\t/* In details:\n\t\t\t We're already redefined d to be 1000 or 1024.\n\t\t\t 1000 & 8 makes 8\n\t\t\t 1024 & 8 makes 0\n\t\t\t !a makes 0 or 1\n\t\t\t So the possible values of d&8|!a are:\n\t\t\t 0, 1, 8, 9\n\t\t\t then it is coerced to boolean\n\t\t\t*/\n\t\t\t(d & 8 | !a ? '' : 'i') +\n\t\t\t/* Append a unit or \"bytes\" if it is undefined */\n\t\t\t/* This function is primarily designed for bytes */ \n\t\t\t(c || 'bytes')\n\t\t/* -- end of return -- */\n\t/* -- end of with -- */\n}","raw_url":"https://gist.github.com/raw/1033134/c90f58f8abb4b78fdcbe55cbd1f1daef9fd18c4d/annotated.js","size":1526,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 subzey <subzey@immelman.ru>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1033134/964b0b156963212a98c659ce59d8764cccf0a599/LICENSE.txt","size":480,"filename":"LICENSE.txt"},"README.md":{"content":"unit display\n=========\n\nShows values with units and multipliers, i.e., 760 Mibytes or 12 km.\n\nIf the unit is binary, «i» is appended to multiplier as suggested by IEC and IEEE.\n\nParameters\n-----------\n1. Number. A value, amount of something that need to be displayed for human;\n2. Non-negative number. Amount of decimal digits. Default: 0;\n3. String. Unit to be used. Default: \"bytes\";\n4. Boolean. Is this unit binary (false) or decial (true). Default: binary (false).\n","raw_url":"https://gist.github.com/raw/1033134/2d0dd9261f36927ab37de11f4b5ddfdfb9b56119/README.md","size":471,"filename":"README.md"},"index.js":{"content":"function(a,b,c,d){with(Math)return(a/pow(d=1E3+24*!d,a=log(a)/log(d)^0)).toFixed(b)+' '+'-kMGT'.split(/-?/)[a]+(d&8|!a?'':'i')+(c||'bytes')}","raw_url":"https://gist.github.com/raw/1033134/bdae84cd17c400607ef884a535f5478077ce3a5d/index.js","size":140,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>140 bytes,11.77 Mibytes,9 km</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(a,b,c,d){with(Math)return(a/pow(d=1E3+24*!d,a=log(a)/log(d)^0)).toFixed(b)+' '+'-kMGT'.split(/-?/)[a]+(d&8|!a?'':'i')+(c||'bytes')}\n\n document.getElementById( \"ret\" ).innerHTML = [myFunction(140), myFunction(12345678,2), myFunction(9001,null,'m',true)]\n</script>","raw_url":"https://gist.github.com/raw/1033134/f4685757eb87e595b65e2f90a3b1f2a52caf153c/test.html","size":546,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"unitDisplay\",\n\n \"description\": \"Displays value with unit and multipler\",\n\n \"keywords\": [\n\t\"units\",\n \"multipliers\"\n ]\n}","raw_url":"https://gist.github.com/raw/1033134/1ac34b3c43454dec322a7886fac8a4c0302885ab/package.json","size":137,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/subzey","id":810582,"avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"subzey"},"url":"https://api.github.com/gists/1033134","description":"unit display","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/subzey","id":810582,"avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"subzey"},"url":"https://api.github.com/gists/1033134/e25b7735b9cdc83c18c129e080d2afb725dd605a","committed_at":"2011-06-18T14:26:34Z","version":"e25b7735b9cdc83c18c129e080d2afb725dd605a","change_status":{"deletions":49,"additions":61,"total":110}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1033134/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"git_pull_url":"git://gist.github.com/1033134.git","git_push_url":"git@gist.github.com:1033134.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1033134","updated_at":"2011-06-18T14:26:34Z","created_at":"2011-06-18T14:25:02Z","html_url":"https://gist.github.com/1033134"}
View
1 data/entries/1034425.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Array.prototype.indexOf = [].indexOf || \n function(\n a, // item to be found\n b, // start index, counter\n c, // array shorthand (this)\n r // result\n ){\n for (\n // initialize variables\n c = this, b = b | 0, r = -1;\n // as long as b is an index inside the array and result is -1,\n b++ < c.length && !~r;\n // result is either the found index or stays the same\n r = c[b] === a ? b : r\n );\n // return result\n return r\n }\n\n// smaller version without startIndex\nArray.prototype.indexOf = [].indexOf ||\n function(\n a, // item\n b, // placeholder for this\n c // counter\n r // result\n ){\n for (\n // initialize values\n b = this, c = b.length, r = -1;\n // run until c == -1\n ~c;\n // result is the last catch or remains -1\n r = b[--c] === a ? c : r;\n );\n // return result\n return r\n }","size":1034,"raw_url":"https://gist.github.com/raw/1034425/121f02d23f22123db6489d60517cda2a511e3de5/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"raw_url":"https://gist.github.com/raw/1034425/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"Polyfill for ES5: Array.prototype.indexOf\n=========================================\n\nA tweet-sized ES5-compatible polyfill for Array.prototype.indexOf based on a similar function in my own tiny.js\n\n2 versions: 1 with and 1 without startIndex.","size":242,"raw_url":"https://gist.github.com/raw/1034425/3e2d883a8231c2a15476a4e685e032f557b499c9/README.md","filename":"README.md"},"index.js":{"content":"// with startIndex\nArray.prototype.indexOf=[].indexOf||function(a,b,c,r){for(c=this,b=b|0,r=-1;b++<c.length&&!~r;r=c[b]===a?b:r);return r}\n\n// without startIndex\nArray.prototype.indexOf=[].indexOf||function(a,b,c,r){for(b=this,c=b.length,r=-1;~c;r=b[--c]===a?c:r);return r}\n","size":274,"raw_url":"https://gist.github.com/raw/1034425/cf6cd3dd8252ad92401c56666a999f0f4c18cb4f/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html>\n<title>Foo</title>\n<div>Expected value: <b>0,1,2,-1</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n var indexOf =\n\n Array.prototype.indexOf=[].indexOf||function(a,b,c,r){for(b=this,c=b.length,r=-1;~c;r=b[--c]===a?c:r);return r}\n\n var testdata=[1,2,3,5];\n document.getElementById( \"ret\" ).innerHTML = [indexOf.call(testdata,1), indexOf.call(testdata,2), indexOf.call(testdata,3), indexOf.call(testdata,4)];\n</script>","size":450,"raw_url":"https://gist.github.com/raw/1034425/c4b39842f6b0790602bd92139afb3aa57b8ec759/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"indexOf\",\n\n \"description\": \"polyfill an ES5-compatibile Array.prototype.indexOf where needed.\",\n\n \"keywords\": [\n \"array\",\n \"indexof\",\n \"es5\",\n \"polyfill\"\n ]\n}","size":186,"raw_url":"https://gist.github.com/raw/1034425/720bc43ff57af3b7d5e4b5402b0707b56aa44e3a/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"html_url":"https://gist.github.com/1034425","url":"https://api.github.com/gists/1034425","description":"polyfill an ES5-compatible Array.prototype.indexOf","public":true,"comments":9,"history":[{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034425/da69b854814645e49bf105cbafd9f5e8b62b9abe","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-07-11T05:53:14Z","version":"da69b854814645e49bf105cbafd9f5e8b62b9abe"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034425/2a63a48e774ec37ee967f9997776ad85a728a9e2","change_status":{"deletions":1,"additions":27,"total":28},"committed_at":"2011-06-28T05:39:34Z","version":"2a63a48e774ec37ee967f9997776ad85a728a9e2"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034425/80497daccbd1e70c5b6c0b9b4ccf6d5bb322a271","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-19T16:38:20Z","version":"80497daccbd1e70c5b6c0b9b4ccf6d5bb322a271"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034425/5cac05487e5d8fc60e83123fa62f886f16caf307","change_status":{"deletions":5,"additions":9,"total":14},"committed_at":"2011-06-19T16:27:26Z","version":"5cac05487e5d8fc60e83123fa62f886f16caf307"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034425/c729fa5b595f8d7e063cde72cd8ee2ced3cea502","change_status":{"deletions":56,"additions":32,"total":88},"committed_at":"2011-06-19T15:58:28Z","version":"c729fa5b595f8d7e063cde72cd8ee2ced3cea502"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034425/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034425/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034425/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034425/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034425/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"}],"git_pull_url":"git://gist.github.com/1034425.git","git_push_url":"git@gist.github.com:1034425.git","id":"1034425","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-06-19T15:58:28Z","created_at":"2011-06-19T15:45:15Z"}
View
1 data/entries/1034458.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Array.prototype.lastIndexOf = [].lastIndexOf ||\n function(\n a, // item\n b, // placeholder for this\n c // counter\n ){\n for (\n // initialize values\n b = this, c = b.length;\n // test c-last item until found or c=-1\n b[--c] !== a && ~c;\n );\n return c\n }","size":344,"raw_url":"https://gist.github.com/raw/1034458/01a0b16d09e8158603b2c263af9b7be50d98591c/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"raw_url":"https://gist.github.com/raw/1034458/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"Polyfill for ES5: Array.prototype.lastIndexOf\n=============================================\n\nA tweet-sized ES5-compatible polyfill for Array.prototype.lastIndexOf based on a similar function in my own tiny.js","size":208,"raw_url":"https://gist.github.com/raw/1034458/7fa663851c3b2c5d75878adb6832cfa1e5d3b625/README.md","filename":"README.md"},"index.js":{"content":"Array.prototype.lastIndexOf=[].lastIndexOf||function(a,b,c){for(b=this,c=b.length;b[--c]!==a&&~c;);return c}","size":108,"raw_url":"https://gist.github.com/raw/1034458/5f6cf5b3a57f94a2553dbd39fe7cf7c9818177ce/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html>\n<title>Foo</title>\n<div>Expected value: <b>0,1,2,-1</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n var lastIndexOf =\n\n Array.prototype.lastIndexOf=[].lastIndexOf||function(a,b,c){for(b=this,c=b.length;b[--c]!==a&&~c;);return c}\n\n var testdata=[1,2,3,5];\n document.getElementById( \"ret\" ).innerHTML = [lastIndexOf.call(testdata,1), lastIndexOf.call(testdata,2), lastIndexOf.call(testdata,3), lastIndexOf.call(testdata,4)];\n</script>","size":467,"raw_url":"https://gist.github.com/raw/1034458/108734c8d4a48eb57de2e72f58c405a566df3897/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"lastIndexOf\",\n\n \"description\": \"polyfill an ES5-compatibile Array.prototype.lastIndexOf where needed.\",\n\n \"keywords\": [\n \"array\",\n \"lastIndexof\",\n \"es5\",\n \"polyfill\"\n ]\n}","size":198,"raw_url":"https://gist.github.com/raw/1034458/ba74d2da5c0df9a628ce0d371f4be92bbd8cf420/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"git_pull_url":"git://gist.github.com/1034458.git","url":"https://api.github.com/gists/1034458","description":"polyfill an ES5-compatibile Array.prototype.lastIndexOf where needed.","public":true,"html_url":"https://gist.github.com/1034458","comments":3,"git_push_url":"git@gist.github.com:1034458.git","history":[{"committed_at":"2011-07-11T05:53:52Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1034458/2886324296998e9be56b08eb6a60c467c6d030fc","version":"2886324296998e9be56b08eb6a60c467c6d030fc"},{"committed_at":"2011-06-19T16:53:39Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1034458/08eb897f5065c88d88136e345e4aa52348f9a451","version":"08eb897f5065c88d88136e345e4aa52348f9a451"},{"committed_at":"2011-06-19T16:39:22Z","change_status":{"deletions":3,"additions":3,"total":6},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1034458/e377384a1290cb7020b29bb6bfab1f937d451fec","version":"e377384a1290cb7020b29bb6bfab1f937d451fec"},{"committed_at":"2011-06-19T16:37:40Z","change_status":{"deletions":56,"additions":32,"total":88},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1034458/dc20b7282a730a80c1542d71d66eea261910dc0c","version":"dc20b7282a730a80c1542d71d66eea261910dc0c"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1034458/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1034458","updated_at":"2011-06-19T16:38:48Z","created_at":"2011-06-19T16:34:45Z"}
View
1 data/entries/1034464.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Object.keys = Object.keys || \n function ( \n o, // object\n k, // key\n r // result array\n ){\n // initialize object and result\n r=[];\n // iterate over object keys\n for (k in o) \n // fill result array with non-prototypical keys\n r.hasOwnProperty.call(o, k) && r.push(k);\n // return result\n return r\n }","raw_url":"https://gist.github.com/raw/1034464/eca1f7e3113dcfcf1c24a67b8315d5d23d183670/annotated.js","size":392,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1034464/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","size":484,"filename":"LICENSE.txt"},"index.js":{"content":"Object.keys=Object.keys||function(o,k,r){r=[];for(k in o)r.hasOwnProperty.call(o,k)&&r.push(k);return r}","raw_url":"https://gist.github.com/raw/1034464/2d38b131751a4e6fa0d6032139e21826ca68f9b4/index.js","size":104,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>test, a, b, c</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var testdata = { test: 1, a: 2, b: 3, c: 4 };\n\n var keys = Object.keys=Object.keys||function(o,k,r){r=[];for(k in o)r.hasOwnProperty.call(o,k)&&r.push(k);return r}\n\n document.getElementById( \"ret\" ).innerHTML = keys(testdata);\n</script>","raw_url":"https://gist.github.com/raw/1034464/3c6093df407f514be5a1a3019afc15b03c05b755/test.html","size":375,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"objkeys\",\n\n \"description\": \"polyfill an ES5-compatibile Object.keys where needed.\",\n\n \"keywords\": [\n \"object\",\n \"keys\",\n \"es5\",\n \"polyfill\"\n ]\n}","raw_url":"https://gist.github.com/raw/1034464/9c52c0bf37b8bf14d92848c772d38689e4236c05/package.json","size":172,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"html_url":"https://gist.github.com/1034464","url":"https://api.github.com/gists/1034464","description":"polyfill an ES5-compatibile Object.keys where needed.","public":true,"comments":4,"history":[{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/2716dee9463c1f5f5975b6f337d462658ef01f3b","committed_at":"2011-08-01T10:29:05Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2716dee9463c1f5f5975b6f337d462658ef01f3b"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/bbbf9d4b12aab43f7f97dfa4848a7e8d93257831","committed_at":"2011-07-11T05:54:18Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"bbbf9d4b12aab43f7f97dfa4848a7e8d93257831"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/c0068384a6f942685dda6dd07b54c15efb225b48","committed_at":"2011-06-19T20:58:03Z","change_status":{"deletions":3,"additions":3,"total":6},"version":"c0068384a6f942685dda6dd07b54c15efb225b48"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/f9ec32984f2d36dcbecba616013c813f292ec756","committed_at":"2011-06-19T20:49:51Z","change_status":{"deletions":5,"additions":4,"total":9},"version":"f9ec32984f2d36dcbecba616013c813f292ec756"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/d879b87aa5ef73aa2d0178c6cb987e5200a56928","committed_at":"2011-06-19T16:54:51Z","change_status":{"deletions":3,"additions":7,"total":10},"version":"d879b87aa5ef73aa2d0178c6cb987e5200a56928"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034464/69fa888a76e9f6d289f4e5d5cf45995e50074f9f","committed_at":"2011-06-19T16:52:23Z","change_status":{"deletions":56,"additions":24,"total":80},"version":"69fa888a76e9f6d289f4e5d5cf45995e50074f9f"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034464/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034464/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034464/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034464/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"}],"git_pull_url":"git://gist.github.com/1034464.git","id":"1034464","updated_at":"2011-06-19T20:49:51Z","created_at":"2011-06-19T16:44:24Z","git_push_url":"git@gist.github.com:1034464.git"}
View
1 data/entries/1034863.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1034863/2e7a4fe8e70e61175e318b2bde23a6b7ff2af971/annotated.js","content":"function(\n i, // id of element which needs to be selectable until callback can be executed\n c, // callback to be executed in the elements scope\n t // placeholder for timed out function\n){\n // create function t\n (t = function(e){\n // try to select node by ID (i)\n (e = document.getElementById(i)) ?\n // if we get an result, call callback in its scope \n c.call(e) : \n // otherwise let it set itself with a 45ms timeout\n setTimeout(t,45)\n // and execute itself immediately\n })()\n}\n","size":558,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1034863/cc45583f84883837188a58adf9e4307f7810881c/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexhtkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"filename":"LICENSE.txt"},"index.js":{"raw_url":"https://gist.github.com/raw/1034863/73a6ea53100558d47c00de7dbd4ecbf46ce620a6/index.js","content":"function r(i,c,t){(t=function(e){(e=document.getElementById(i))?c.call(e):setTimeout(t,45)})()}","size":95,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1034863/144b4ff949b746f00a2d2fa70e60460a61a84bb8/test.html","content":"<!DOCTYPE html> \n<title>Element Ready</title>\n<div>Expected value: <b>works</b></div>\n<script>\n\n var er = function (i,c,t){(t=function(e){(e=document.getElementById(i))?c.call(e):setTimeout(t,45)})()};\n\n // b#ret is not yet available, so lets wait for it.\n\n er('ret', function(){ this.innerHTML = 'works' });\n</script>\n<div>Actual value: <b id=\"ret\"></b></div>","size":363,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1034863/556072c52744201037510b278b4e4701da3bb48c/package.json","content":"{\n \"name\": \"elementready\",\n\n \"description\": \"Waits until an element selectable by ID is available and then runs a callback in the elements scope.\",\n\n \"keywords\": [\n \"element\",\n \"ready\"\n ]\n}","size":199,"filename":"package.json"}},"html_url":"https://gist.github.com/1034863","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"git_push_url":"git@gist.github.com:1034863.git","url":"https://api.github.com/gists/1034863","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"elementready in 94 bytes","public":true,"comments":1,"history":[{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034863/a5b23e0634df82a51e61ac06db30e10d5461add4","change_status":{"deletions":59,"additions":30,"total":89},"committed_at":"2011-06-19T22:52:54Z","version":"a5b23e0634df82a51e61ac06db30e10d5461add4"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034863/960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7},"committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1"}],"id":"1034863","updated_at":"2011-06-19T22:53:25Z","created_at":"2011-06-19T22:45:43Z","git_pull_url":"git://gist.github.com/1034863.git"}
View
1 data/entries/1034882.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1126989","id":"1126989","updated_at":"2011-08-05T05:57:41Z","created_at":"2011-08-05T05:57:41Z"}],"files":{"annotated.js":{"content":"// only set function if not already available\nArray.isArray || (Array.isArray = function(\n a // array or not array, this is the question\n){\n // test with Object.prototype.toString\n return {}.toString.call(a) == '[object Array]'\n});","raw_url":"https://gist.github.com/raw/1034882/aeb11bcac6d9c7b5a20205f06af33e34059a298f/annotated.js","size":240,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1034882/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","size":484,"filename":"LICENSE.txt"},"index.js":{"content":"Array.isArray||(Array.isArray=function(a){return{}.toString.call(a)=='[object Array]'});","raw_url":"https://gist.github.com/raw/1034882/f78c60268ff6c8270ab32511f44976b6def87af3/index.js","size":88,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>false, true, false, false, false</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var isArray = Array.isArray||(Array.isArray=function(a){return{}.toString.call(a)=='[object Array]'});\n\n document.getElementById( \"ret\" ).innerHTML = [isArray({}), isArray([]), isArray(\"\"), isArray(0), isArray(true)];\n</script>","raw_url":"https://gist.github.com/raw/1034882/b39ff8f039ae144cb076b3ecac12138165dd8919/test.html","size":489,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"isarray\",\n\n \"description\": \"polyfill an ES5-compatibile Array.isArray where needed.\",\n\n \"keywords\": [\n \"polyfill\",\n \"es5\",\n \"isArray\"\n ]\n}","raw_url":"https://gist.github.com/raw/1034882/bace5fb19fb8d9621133045ac9f5478be8fa1550/package.json","size":163,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"html_url":"https://gist.github.com/1034882","url":"https://api.github.com/gists/1034882","description":"polyfill an ES5-compatibile Array.isArray where needed.","public":true,"comments":20,"history":[{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/a6ae6442b9abbedf93ec2bb1051bf7de0c7f3245","committed_at":"2011-06-20T14:45:49Z","change_status":{"deletions":3,"additions":3,"total":6},"version":"a6ae6442b9abbedf93ec2bb1051bf7de0c7f3245"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/f5fbf8cf9ce8a024057d805fcf7e392aa6044c4d","committed_at":"2011-06-20T14:29:13Z","change_status":{"deletions":4,"additions":4,"total":8},"version":"f5fbf8cf9ce8a024057d805fcf7e392aa6044c4d"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/df13c2e1cea1a6a48b6aa220a4ff605446cbfa10","committed_at":"2011-06-20T13:20:53Z","change_status":{"deletions":3,"additions":3,"total":6},"version":"df13c2e1cea1a6a48b6aa220a4ff605446cbfa10"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/e159698505740c1efc45e6febc7e035464bbb719","committed_at":"2011-06-20T11:00:50Z","change_status":{"deletions":4,"additions":4,"total":8},"version":"e159698505740c1efc45e6febc7e035464bbb719"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/7fc85a5854c2f411a9706709559c547c33ab465f","committed_at":"2011-06-20T09:50:38Z","change_status":{"deletions":4,"additions":4,"total":8},"version":"7fc85a5854c2f411a9706709559c547c33ab465f"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1034882/1f38f026455592038fab566c025d5c84fee0b0f0","committed_at":"2011-06-19T23:17:24Z","change_status":{"deletions":53,"additions":16,"total":69},"version":"1f38f026455592038fab566c025d5c84fee0b0f0"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034882/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034882/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034882/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1034882/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"}],"git_pull_url":"git://gist.github.com/1034882.git","id":"1034882","updated_at":"2011-06-19T23:17:24Z","created_at":"2011-06-19T23:10:04Z","git_push_url":"git@gist.github.com:1034882.git"}
View
1 data/entries/1035932.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Date.now = Date.now || // Use the native Date.now method if available,\n function () { // Otherwise defined it here:\n return +new Date // Create a new Date object and return the Unix timestamp version.\n }","size":216,"raw_url":"https://gist.github.com/raw/1035932/844c18debbf580513e3abe4a8e4e8a40bec37930/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman http://eliperelman.com\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":488,"raw_url":"https://gist.github.com/raw/1035932/607a2cc6c0de350b07d9b90b7ee07375bb70853a/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"Date.now polyfill for 140byt.es\n=========\n\nThis function will provided the ECMAScript 5 method of Date.now to browsers that do not support ECMAScript 5.","size":152,"raw_url":"https://gist.github.com/raw/1035932/bd3a576ec6292242873c53d3759592ee366f9e96/README.md","filename":"README.md"},"index.js":{"content":"Date.now=Date.now||function(){return+new Date}","size":46,"raw_url":"https://gist.github.com/raw/1035932/d67860242a78b5636ab797eefc0a90509bc2a287/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Date.now polyfill for ECMAScript 5</title>\n<script>\n Date.now=Date.now||function(){return+new Date}\n\n console.log(Date.now()); // logs current Unix time.\n</script>","size":189,"raw_url":"https://gist.github.com/raw/1035932/f6b4d017316a9ecb131c70ca6555e0d3f410f169/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"DateNowPolyfillFor140bytes\",\n\n \"description\": \"ECMAScript 5 polyfill for Date.now method\",\n\n \"keywords\": [\n \"Date\",\n \"now\",\n \"polyfill\",\n \"JavaScript\",\n \"ECMAScript5\"\n ]\n}","size":202,"raw_url":"https://gist.github.com/raw/1035932/638548eba12c55b42b6f1c88546976e9f893140c/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"git_pull_url":"git://gist.github.com/1035932.git","url":"https://api.github.com/gists/1035932","description":"Date.now polyfill for 140byt.es","public":true,"html_url":"https://gist.github.com/1035932","comments":2,"git_push_url":"git@gist.github.com:1035932.git","history":[{"committed_at":"2011-06-20T16:35:35Z","change_status":{"deletions":3,"additions":3,"total":6},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"url":"https://api.github.com/gists/1035932/4e7b3098f77191bdcffdd522ce7fb50541615496","version":"4e7b3098f77191bdcffdd522ce7fb50541615496"},{"committed_at":"2011-06-20T16:30:26Z","change_status":{"deletions":57,"additions":18,"total":75},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"url":"https://api.github.com/gists/1035932/efbe7fff82f8a319adccb66e0de2e1db8b5adc1c","version":"efbe7fff82f8a319adccb66e0de2e1db8b5adc1c"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"committed_at":"2011-05-23T08:25:12Z","change_status":{"deletions":21,"additions":14,"total":35},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035932/80a276faf6c6d20ddddf0a6976f251113e82182c","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1035932","updated_at":"2011-06-20T16:30:26Z","created_at":"2011-06-20T16:25:35Z"}
View
1 data/entries/1035982.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"String.prototype.trim = ''.trim || // Use the native method if available, otherwise define a polyfill:\n function () { // trim returns a new string (which replace supports)\n return this.replace(/^\\s+|\\s+$/g,'') // trim the left and right sides of the string\n }","size":264,"raw_url":"https://gist.github.com/raw/1035982/28ea5e70b2b76c7c8074c9cec19b518addaaa19c/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman http://eliperelman.com\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":488,"raw_url":"https://gist.github.com/raw/1035982/607a2cc6c0de350b07d9b90b7ee07375bb70853a/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"String.prototype.trim polyfill for 140byt.es\n=========\n\nAdds the trim method to strings in versions of JavaScript that do not natively support it.","size":146,"raw_url":"https://gist.github.com/raw/1035982/cce09858e75c95528c344aa057d4abbcf85a07c3/README.md","filename":"README.md"},"index.js":{"content":"String.prototype.trim=''.trim||function(){return this.replace(/^\\s+|\\s+$/g,'')}","size":79,"raw_url":"https://gist.github.com/raw/1035982/9997052c9c69eec6e38b3b1ffdc6b6a13cf154ac/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>String.prototype.trim polyfill</title>\n<script>\n String.prototype.trim=''.trim||function(){return this.replace(/^\\s+|\\s+$/g,'')}\n\n // logs 'my awesome string'\n console.log(' my awesome string '.trim());\n</script>","size":252,"raw_url":"https://gist.github.com/raw/1035982/e88e33d81b164830febfafcf92fc158b6a3f55a9/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"StringPrototypeTrimPolyfill\",\n\n \"description\": \"Adds the trim method to strings in versions of JavaScript that do not natively support it.\",\n\n \"keywords\": [\n \"string\",\n \"prototype\",\n \"trim\",\n \"polyfill\",\n \"ecmascript5\"\n ]\n}","size":254,"raw_url":"https://gist.github.com/raw/1035982/a1eff2fbd36b5de05889d0dd63688cb45c3b3fab/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"git_pull_url":"git://gist.github.com/1035982.git","url":"https://api.github.com/gists/1035982","description":"String.prototype.trim polyfill for 140byt.es","public":true,"html_url":"https://gist.github.com/1035982","comments":0,"git_push_url":"git@gist.github.com:1035982.git","history":[{"committed_at":"2011-06-20T23:22:37Z","change_status":{"deletions":4,"additions":3,"total":7},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"url":"https://api.github.com/gists/1035982/f454b282a5c916dc8c839d4730215d7aa9d78b40","version":"f454b282a5c916dc8c839d4730215d7aa9d78b40"},{"committed_at":"2011-06-20T17:15:23Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"url":"https://api.github.com/gists/1035982/6abf7d3482eec695ff29e33a16fc99848b38ea7f","version":"6abf7d3482eec695ff29e33a16fc99848b38ea7f"},{"committed_at":"2011-06-20T17:06:14Z","change_status":{"deletions":57,"additions":20,"total":77},"user":{"url":"https://api.github.com/users/eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman","id":285899},"url":"https://api.github.com/gists/1035982/066c4814b4ae641287bcddc12681f082d9f50bd0","version":"066c4814b4ae641287bcddc12681f082d9f50bd0"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1035982/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1035982","updated_at":"2011-06-20T17:06:14Z","created_at":"2011-06-20T16:53:49Z"}
View
1 data/entries/1036520.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"!function(\n a, // trimming object that defined String.prototype extensions and their related Regular Expressions\n b // placeholder variable for iterating over 'a'\n){\n for(b in a) // iterate over each of the trimming items in 'a'\n String.prototype[b]=b[b] || // use the native string trim/trimLeft/trimRight method if available, if not:\n Function('return this.replace('+a[b]+',\"\")') // generate a function that will return a new string that replaces the relevant whitespace\n }({\n trimLeft: /^\\s+/, // regex to trim the left side of a string (along with prototype name)\n trimRight: /\\s+$/ // regex to trim the right side of a string (along with prototype name)\n})","size":673,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/1036520/028749e0b3e2ab87dc2aa4f006fd27ecd3535f2d/annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman <http://eliperelman.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":490,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/1036520/522f123a3573b451adc28cceacf848a6b64caf46/LICENSE.txt"},"README.md":{"content":"String trim methods polyfill for 140byt.es","size":42,"filename":"README.md","raw_url":"https://gist.github.com/raw/1036520/239e82085b71bb39e22c9872c079a8f67d2c8b53/README.md"},"index.js":{"content":"!function(a,b){for(b in a)String.prototype[b]=b[b]||Function('return this.replace('+a[b]+',\"\")')}({trimLeft:/^\\s+/,trimRight:/\\s+$/})","size":133,"filename":"index.js","raw_url":"https://gist.github.com/raw/1036520/dd005b24bf812e8ef49af681081ef9e355dd4aa4/index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>String polyfill trimming methods</title>\n<script>\n !function(a,b){for(b in a)String.prototype[b]=[b]||Function('return this.replace('+a[b]+',\"\")')}({trimLeft:/^\\s+/,trimRight:/\\s+$/,trim:/^\\s+|\\s+$/g})\n\n var str = ' my awesome string ';\n\n // outputs: 'my awesome string '\n console.log(str.trimLeft());\n\n // outputs: ' my awesome string'\n console.log(str.trimRight());\n</script>","size":439,"filename":"test.html","raw_url":"https://gist.github.com/raw/1036520/31375220adb6be8d6a8110e8a325e082067ad3f4/test.html"},"package.json":{"content":"{\n \"name\": \"StringPolyfillTrimmingMethods\",\n\n \"description\": \"String polyfill trimming methods for non-ECMAScript5 environments\",\n\n \"keywords\": [\n \"string\",\n \"prototype\",\n \"trim\",\n \"polyfill\",\n \"ecmascript5\"\n ]\n}","size":231,"filename":"package.json","raw_url":"https://gist.github.com/raw/1036520/d18f4c99b084e07f756ed2ad2d1a486aba5d5d68/package.json"}},"html_url":"https://gist.github.com/1036520","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"git_pull_url":"git://gist.github.com/1036520.git","url":"https://api.github.com/gists/1036520","description":"String trim methods polyfill for 140byt.es","public":true,"comments":14,"git_push_url":"git@gist.github.com:1036520.git","history":[{"change_status":{"deletions":6,"additions":2,"total":8},"committed_at":"2011-06-20T23:20:29Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/a1279c39bdb58ac15777783551f2393e36ffda8d","version":"a1279c39bdb58ac15777783551f2393e36ffda8d"},{"change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-20T23:05:29Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/faee43cc5a8c2cf92872f92100f8247a0d629e5f","version":"faee43cc5a8c2cf92872f92100f8247a0d629e5f"},{"change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-20T23:04:39Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/82bf18cd8286022802b785aa042792201b579e29","version":"82bf18cd8286022802b785aa042792201b579e29"},{"change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-20T21:10:39Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/b7b31ea2c56033931a2e43dac2f8cc2caed628e7","version":"b7b31ea2c56033931a2e43dac2f8cc2caed628e7"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-20T20:56:31Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/40ce382021241251dc618680fa17e18ea54e5b59","version":"40ce382021241251dc618680fa17e18ea54e5b59"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-06-20T20:48:10Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/17f06277f7f4e21a0bca16454357c1a554042e8c","version":"17f06277f7f4e21a0bca16454357c1a554042e8c"},{"change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-06-20T20:47:51Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/4200575cd985f27c3fd6a89c368c96d7a69faee3","version":"4200575cd985f27c3fd6a89c368c96d7a69faee3"},{"change_status":{"deletions":58,"additions":33,"total":91},"committed_at":"2011-06-20T20:44:09Z","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1036520/140c6486d192c3498f65a9952fbe9441ac4f5bfb","version":"140c6486d192c3498f65a9952fbe9441ac4f5bfb"},{"change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1036520/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1036520/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"}],"fork_of":{"files":{"annotated.js":{"size":396,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"size":1457,"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"size":140,"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"size":393,"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"size":241,"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1036520","updated_at":"2011-06-20T20:44:09Z","created_at":"2011-06-20T20:39:03Z"}
View
1 data/entries/1037201.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Array.prototype.every = [].every || // Use the native every method if available, otherwise:\n function (\n a, // expression to test each element of the array against\n b, // optionally change the 'this' context in the given expression\n c, // placeholder iterator variable\n d // placeholder variable (stores context of original array)\n ) { \n for (c = 0, d = this; c < d.length; c++) // iterate over all of the array elements\n if (!a.call(b, d[c], c, d)) // call the given expression, passing in context, value, index, and original array\n return !1; // if any expression evaluates false, immediately return since 'every' is false\n return !0 // otherwise return true since all expressions evaluated to true\n}","raw_url":"https://gist.github.com/raw/1037201/b8e3cfc2bd1267fb930331594071fe26c6cce82b/annotated.js","size":744,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman <http://eliperelman.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1037201/522f123a3573b451adc28cceacf848a6b64caf46/LICENSE.txt","size":490,"filename":"LICENSE.txt"},"README.md":{"content":"Array.prototype.every polyfill for 140byt.es\n=========\n\nExecute an expression for every element in an array and determine whether all elements make the expression evaluate truthy. This polyfill adds the `every` method to the array prototype for environments lower than ECMAScript 5.","raw_url":"https://gist.github.com/raw/1037201/948cdc93a97dae51ed81690e1d6e553442e05b05/README.md","size":282,"filename":"README.md"},"index.js":{"content":"Array.prototype.every=[].every||function(a,b,c,d){for(c=0,d=this;c<d.length;c++)if(!a.call(b,d[c],c,d))return!1;return!0}","raw_url":"https://gist.github.com/raw/1037201/09a7da416263f80d45e0962c00f64fd460d168c2/index.js","size":121,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Array.prototype.every polyfill</title>\n<script>\n Array.prototype.every=[].every||function(a,b,c,d){for(c=0,d=this;c<d.length;c++)if(!a.call(b,d[c],c,d))return!1;return!0}\n\n var arr = [2,4,6,8,10,12,14,16];\n var arr2 = [1,2,3,4,5,6,7,8];\n\n // logs false, not all values are less than 10\n console.log(arr.every(function(value, index, myArray) {\n return value < 10;\n });\n\n // logs true, all values in arr are even and all values in arr2 are less than 10\n console.log(arr.every(function(value, index, myArray) {\n // this refers to arr2, but myArray is still arr\n return value % 2 === 0 && this[index] < 10;\n }, arr2);\n</script>","raw_url":"https://gist.github.com/raw/1037201/1ebd3b88329fa0886c741f5b9c468b1b5c812fbc/test.html","size":665,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"ArrayPrototypeEveryPolyfill\",\n\n \"description\": \"Array every polyfill method for ECMAScript versions older than 5.\",\n\n \"keywords\": [\n \"Array\",\n \"prototype\",\n \"every\",\n \"polyfill\",\n \"ecmascript5\"\n ]\n}","raw_url":"https://gist.github.com/raw/1037201/cf2f8796c8c2995a6a1da6ed3c3b5185317ebdcc/package.json","size":229,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/eliperelman","id":285899,"avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman"},"url":"https://api.github.com/gists/1037201","description":"Array.prototype.every polyfill for 140byt.es","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/eliperelman","id":285899,"avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman"},"url":"https://api.github.com/gists/1037201/79b99079f3172ff2b541e65446f33627b9f50fcf","committed_at":"2011-06-21T04:20:57Z","version":"79b99079f3172ff2b541e65446f33627b9f50fcf","change_status":{"deletions":55,"additions":36,"total":91}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1037201/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"git_pull_url":"git://gist.github.com/1037201.git","git_push_url":"git@gist.github.com:1037201.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1037201","updated_at":"2011-06-21T04:20:57Z","created_at":"2011-06-21T03:50:37Z","html_url":"https://gist.github.com/1037201"}
View
1 data/entries/1037484.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(\n o, //the owner object of the event handler (eg. window)\n h, //the name of the event handler (eg. \"onkeyup\")\n c, //the new event handler callback function\n t //placeholder\n){\n t=o[h]; //put the old contents of the event handler property in a local variable\n o[h]=function(e){ //register a new event handler that ...\n c.call(o,e); // ... calls the new callback within the scope of the owner and ...\n t&&t.call(o,e) // ... also calls the old callback in the same scope\n }\n}\n","size":632,"raw_url":"https://gist.github.com/raw/1037484/17b9f8f65a8e5f6a915b3db9a0f961f194b3dd60/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"raw_url":"https://gist.github.com/raw/1037484/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"function(o,h,c,t){t=o[h];o[h]=function(e){c.call(o,e);t&&t.call(o,e)}}\n","size":71,"raw_url":"https://gist.github.com/raw/1037484/68a97b2dfc970fff0f619f7a06fd9363b7c68da1/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<body>\n</body>\n<script>\nvar injectEvent = function(o,h,c,t){t=o[h];o[h]=function(e){c.call(o,e);t&&t.call(o,e)}}; \n\nwindow.onkeyup = function(e)\n{\n console.log('first handler ' + e.keyCode);\n}\n\ninjectEvent(window, 'onkeyup', function(e){\n console.log('second handler ' + e.keyCode);\n});\n\ninjectEvent(window, 'onkeyup', function(e){\n console.log('third handler ' + e.keyCode);\n});\n</script>\n","size":416,"raw_url":"https://gist.github.com/raw/1037484/e45a39df3972fc8d6f26ab8586eae90837da9a24/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"PrependEvent140\",\n\n \"description\": \"Allows to prepend new event handlers to events while still executing all previously registered handlers in a chain while maintaining the correct scope.\",\n\n \"keywords\": [\n \"event\",\n \"chain\",\n \"prepend\",\n \"inject\",\n \"eventhandler\"\n ]\n}","size":300,"raw_url":"https://gist.github.com/raw/1037484/0f4888ea83fd6b6f01394e7882a5700fc05d30c6/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"html_url":"https://gist.github.com/1037484","url":"https://api.github.com/gists/1037484","description":"Chain event handlers in 140byt.es","public":true,"comments":4,"history":[{"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"url":"https://api.github.com/gists/1037484/f35fa97f3c8a8e0e832a31cdbff0b57d3e2cd492","change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-21T11:47:34Z","version":"f35fa97f3c8a8e0e832a31cdbff0b57d3e2cd492"},{"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"url":"https://api.github.com/gists/1037484/ff614e080c0b490ae9e0893d50e893b2976f1eb0","change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-21T11:44:41Z","version":"ff614e080c0b490ae9e0893d50e893b2976f1eb0"},{"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"url":"https://api.github.com/gists/1037484/1f74ff0a4a8a28baed2549a5aef9dbf2a048ad94","change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-21T11:43:03Z","version":"1f74ff0a4a8a28baed2549a5aef9dbf2a048ad94"},{"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"url":"https://api.github.com/gists/1037484/18dcfb398e7f57ffab0b871988c3b8f52515f5a8","change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-06-21T09:21:55Z","version":"18dcfb398e7f57ffab0b871988c3b8f52515f5a8"},{"user":{"url":"https://api.github.com/users/techpriester","login":"techpriester","avatar_url":"https://secure.gravatar.com/avatar/412f7a3dd572845b1d3c29ad10bd27d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":598759},"url":"https://api.github.com/gists/1037484/888aac5cdc7233d098bc8ad92d74a70f4f4d600e","change_status":{"deletions":57,"additions":34,"total":91},"committed_at":"2011-06-21T08:58:26Z","version":"888aac5cdc7233d098bc8ad92d74a70f4f4d600e"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037484/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037484/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037484/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037484/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037484/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"}],"git_pull_url":"git://gist.github.com/1037484.git","git_push_url":"git@gist.github.com:1037484.git","id":"1037484","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-06-21T08:58:49Z","created_at":"2011-06-21T08:51:24Z"}
View
1 data/entries/1037838.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1037838/00ddb1d2dca912ea47f4b9f85b98db7dda4b3543/annotated.js","content":"Array.prototype.some = [].some || // Use the native every method if available, otherwise:\n function (\n a, // expression to test each element of the array against\n b, // optionally change the 'this' context for the given callback\n c, // placeholder iterator variable\n d // placeholder variable (stores context of original array)\n ) { \n for (c = 0, d = this; c < d.length; c++) // iterate over all of the array elements\n if (a.call(b, d[c], c, d)) // call the given expression, passing in context, value, index, and original array\n return !0; // if any expression evaluates true, immediately return since 'some' is true\n return !1 // otherwise return false since all callbacks evaluated to false\n}","size":737,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1037838/522f123a3573b451adc28cceacf848a6b64caf46/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman <http://eliperelman.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":490,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1037838/6b335647a93dad526b48641d0d519a211d8165be/README.md","content":"Array.prototype.some polyfill for 140byt.es\n=========\n\nExecute an expression for every element in an array and determine whether one of the elements make the expression evaluate truthy. This polyfill adds the `some` method to the array prototype for environments lower than ECMAScript 5.","size":287,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1037838/fde5fc5520c8560fcb4594cce5d122fe7c1eec39/index.js","content":"Array.prototype.some=[].some||function(a,b,c,d){for(c=0,d=this;c<d.length;c++)if(a.call(b,d[c],c,d))return!0;return!1}","size":118,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1037838/b8631892632e4cdc0d49b86a71db0c0bdce54226/test.html","content":"<!DOCTYPE html> \n<title>Array.prototype.some polyfill</title>\n<script>\n Array.prototype.some=[].some||function(a,b,c,d){for(c=0,d=this;c<d.length;c++)if(a.call(b,d[c],c,d))return!0;return!1}\n\n var arr = [2,4,6,8,10,12,14,16];\n var arr2 = [1,2,3,4,5,6,7,8];\n\n // logs true, since at least 'some' elements are less than 10\n console.log(arr.some(function(value, index, myArray) {\n return value < 10;\n });\n\n // logs false, since none of the values are greater than 20 or none of arr2 values are greater than 10\n console.log(arr.some(function(value, index, myArray) {\n // this refers to arr2, but myArray is still arr\n return this[index] > 10 || value > 20;\n }, arr2);\n</script>","size":691,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1037838/d23f46c163ec2375deb01b47e0f432cf588fda43/package.json","content":"{\n \"name\": \"ArrayPrototypeSomePolyfill\",\n\n \"description\": \"Array some polyfill method for ECMAScript versions older than 5.\",\n\n \"keywords\": [\n \"Array\",\n \"prototype\",\n \"some\",\n \"polyfill\",\n \"ecmascript5\"\n ]\n}","size":226,"filename":"package.json"}},"html_url":"https://gist.github.com/1037838","user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"git_push_url":"git@gist.github.com:1037838.git","url":"https://api.github.com/gists/1037838","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"Array.prototype.some polyfill for 140byt.es","public":true,"comments":5,"history":[{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1037838/a65e779ea1063d264f007f21182a359bdc8d4a17","change_status":{"deletions":5,"additions":5,"total":10},"committed_at":"2011-06-21T13:27:16Z","version":"a65e779ea1063d264f007f21182a359bdc8d4a17"},{"user":{"url":"https://api.github.com/users/eliperelman","login":"eliperelman","avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":285899},"url":"https://api.github.com/gists/1037838/f7e4bf4f0de90fe36cf903dd3382c6bef0b22460","change_status":{"deletions":55,"additions":36,"total":91},"committed_at":"2011-06-21T13:26:11Z","version":"f7e4bf4f0de90fe36cf903dd3382c6bef0b22460"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1037838/80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"id":"1037838","updated_at":"2011-06-21T13:27:16Z","created_at":"2011-06-21T13:21:07Z","git_pull_url":"git://gist.github.com/1037838.git"}
View
1 data/entries/1038818.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function (\n a, // the function to curry or partially apply\n b // placeholder variable for splicing arguments\n) { \n b = [].slice.call(arguments,1); // convert arguments to an array\n return function () { // return a new function which:\n return a.apply(this, b.concat(b.slice.call(arguments))) // apply the original function with old arguments combined with new arguments\n }\n}","raw_url":"https://gist.github.com/raw/1038818/c58f930088d64f43e88769a72e9fd6f2dbfe65e1/annotated.js","size":388,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Eli Perelman <http://eliperelman.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1038818/522f123a3573b451adc28cceacf848a6b64caf46/LICENSE.txt","size":490,"filename":"LICENSE.txt"},"README.md":{"content":"Curry functions in JavaScript for 140byt.es\n=========\n\nIn JavaScript, it is possible to partially apply functions (or curry a function).\n\n<http://stackoverflow.com/questions/113780/javascript-curry-what-are-the-practical-applications>","raw_url":"https://gist.github.com/raw/1038818/2dd220d73c6bb7fcdd3c0967dccf2a64cb3aa5dd/README.md","size":234,"filename":"README.md"},"index.js":{"content":"function(a,b){b=[].slice.call(arguments,1);return function(){return a.apply(this,b.concat(b.slice.call(arguments)))}}","raw_url":"https://gist.github.com/raw/1038818/b37f319a42a0947e1e337651fb20eb6dfb657492/index.js","size":117,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>JavaScript Partial Function Application (Currying)</title>\n<script>\n var curry = function(a,b){b=[].slice.call(arguments,1);return function(){return a.apply(this,b.concat(b.slice.call(arguments)))}};\n\n // this function takes whatever arguments are passed and adds them together\n var adder = function() {\n var n = 0, args = [].slice.call(arguments);\n\n for (var i = 0, len = args.length; i < len; i++) {\n n += args[i];\n } \n\n return n;\n };\n \n // logs: 4\n console.log(adder(2,2));\n\n // curry adder for later application\n var addTwelve = curry(adder, 12);\n\n // logs: 15\n console.log(addTwelve(3));\n\n // logs: 25\n console.log(addTwelve(3,6,4));\n\n</script>","raw_url":"https://gist.github.com/raw/1038818/53ec9115f8ff49a7af6d5d3db4435e7e22ff1058/test.html","size":705,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"JavaScriptCurryFunctions140bytes\",\n\n \"description\": \"Small function to allow the partial application of JS functions.\",\n\n \"keywords\": [\n \"curry\",\n \"partial\",\n \"application\",\n \"javascript\",\n \"curried\"\n ]\n}","raw_url":"https://gist.github.com/raw/1038818/60ec2af4c7aba1069e66b248f68460ae625e54c7/package.json","size":235,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/eliperelman","id":285899,"avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman"},"url":"https://api.github.com/gists/1038818","description":"Curry functions in JavaScript for 140byt.es","public":true,"comments":3,"history":[{"user":{"url":"https://api.github.com/users/eliperelman","id":285899,"avatar_url":"https://secure.gravatar.com/avatar/8dc4af17fcbc9d8c1919462680e46c5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eliperelman"},"url":"https://api.github.com/gists/1038818/8e67b511ce617f96895b3ecaf19c4d0b2a7bcfa5","committed_at":"2011-06-21T21:12:18Z","version":"8e67b511ce617f96895b3ecaf19c4d0b2a7bcfa5","change_status":{"deletions":54,"additions":44,"total":98}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1038818/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"git_pull_url":"git://gist.github.com/1038818.git","git_push_url":"git@gist.github.com:1038818.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1038818","updated_at":"2011-06-21T21:12:18Z","created_at":"2011-06-21T20:30:10Z","html_url":"https://gist.github.com/1038818"}
View
1 data/entries/1039813.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Function.prototype.bind = (function(){}).bind ||\n function(\n a, // new context (new this)\n b // placeholder for function (old this)\n ){\n // store function\n b = this;\n // return new function\n return function(){\n // calling old function in new scope\n b.apply(a,arguments)\n }\n }","size":333,"raw_url":"https://gist.github.com/raw/1039813/88e64e1cdee7e37cdb20a372ea109766c008c1a0/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"raw_url":"https://gist.github.com/raw/1039813/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"Function.prototype.bind=(function(){}).bind||function(a,b){b=this;return function(){b.apply(a,arguments)}}","size":106,"raw_url":"https://gist.github.com/raw/1039813/e75a2ee5dd09003dbdd7b01d08475c668aab4a24/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>works</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = Function.prototype.bind=(function(){}).bind||function(a,b){b=this;return function(){b.apply(a,arguments)}};\n\n (function(){ document.getElementById( \"ret\" ).innerHTML = this; }).bind('works')();\n</script>","size":455,"raw_url":"https://gist.github.com/raw/1039813/519af6aa5af17e8b93b489697a33e9644c48db2c/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"funcbind\",\n\n \"description\": \"Function.prototype.bind polyfill, not really ES5-compatible\",\n\n \"keywords\": [\n \"function\",\n \"prototype\",\n \"bind\",\n \"polyfill\"\n ]\n}","size":187,"raw_url":"https://gist.github.com/raw/1039813/1b30f1dbaf56e728673f24b54af27d1dc30bd56b/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"git_pull_url":"git://gist.github.com/1039813.git","url":"https://api.github.com/gists/1039813","description":"Function.prototype.bind replacement (not fully functional yet)","public":true,"html_url":"https://gist.github.com/1039813","comments":13,"git_push_url":"git@gist.github.com:1039813.git","history":[{"committed_at":"2011-06-22T10:35:16Z","change_status":{"deletions":5,"additions":2,"total":7},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1039813/4ee126cfc8c4282344ab4f5e185f66c69bd8513a","version":"4ee126cfc8c4282344ab4f5e185f66c69bd8513a"},{"committed_at":"2011-06-22T10:18:30Z","change_status":{"deletions":32,"additions":0,"total":32},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1039813/dd5a713d02dbcfc9e23453dcfb8ccf47545bb951","version":"dd5a713d02dbcfc9e23453dcfb8ccf47545bb951"},{"committed_at":"2011-06-22T10:18:16Z","change_status":{"deletions":22,"additions":27,"total":49},"user":{"url":"https://api.github.com/users/atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"atk","id":220405},"url":"https://api.github.com/gists/1039813/1266ffac9a33b45d58f362e86efff4be34de9912","version":"1266ffac9a33b45d58f362e86efff4be34de9912"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1039813/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1039813","updated_at":"2011-06-22T17:55:34Z","created_at":"2011-06-22T10:11:32Z"}
View
1 data/entries/1040240.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(\n\t\ta // string\n\t\t/* I just like when function's length property return something meaningful */\n\t){ \n\t// Processing each char of `a` starting from the end of string:\n\tfor(\n\t\t// Define the variables:\n\t\t// v - value. To be assigned later\n\t\t// s - sum\n\t\t// i - iterator, length of the arg\n\t\tvar v, s = 0, i = a.length\n\t\t;\n\t\t// decrease iterator with post-decrement\n\t\ti--\n\t\t;\n\t\t// add the following to sum:\n\t\ts += \n\t\t\t// stored value minus following expression...\n\t\t\tv - (\n\t\t\t\t// ...where current value is re-assigned.\n\t\t\t\t// Here we define an array using elision\n\t\t\t\t// and right after that get its value on key that is an integer:\n\t\t\t\tv = [100,500,,,,,1,,,50,1e3,,,,,,,,,5,,10][\n\t\t\t\t\t// Get the char at the `i` offset and treat it as it was an integer in 36-based notation.\n\t\t\t\t\t// The good thing: we don't need to use lo-ong toUpperCase :)\n\t\t\t\t\t// And then decrease it by 12. This makes the array declaration slightly shorter\n\t\t\t\t\tparseInt(a.charAt(i), 36) - 12\n\t\t\t\t]\n\t\t\t\t// Here we get a positive value if char was one of: \"IVXLCDMivxlcdm\" and undefined else\n\t\t\t// Using the subtraction check if this value is less than previous\n\t\t\t// (Considering the fact we're parsing string from the tail, this is not the previous but *next* char)\n\t\t\t// If there was no previous value, the whole subtraction gives NaN and comparation gives false\n\t\t\t) > 0 ?\n\t\t\t\t// If yes (i.e. IX or CM) we should subtract the current value from the sum\n\t\t\t\t-v\n\t\t\t:\n\t\t\t\t// If no (i.e. XX or L{end-of-string}) we should add the current value to the sum\n\t\t\t\t// If `v` is a NaN here, the sum will be NaN either. Garbage In Garbage Out, hehe.\n\t\t\t\t// Uncomment ~~ if you don't like this behavior, there's still bytes left.\n\t\t\t\t/* ~~ */ v\n\t)\n\t/* empty loop body */\n\t;\n\t// return the sum\n\treturn s\n}","raw_url":"https://gist.github.com/raw/1040240/8dfc218a2e93a3f279cf38230c4e73c82bbc5f0e/annotated.js","size":1770,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 subzey <subzey@immelman.ru>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1040240/964b0b156963212a98c659ce59d8764cccf0a599/LICENSE.txt","size":480,"filename":"LICENSE.txt"},"README.md":{"content":"parseRoman\n==========\n\nParses string with roman numerals.\n\nUsage\n-----\nPass the string in any case as argument.\nThis version parses and “non-well-formed” roman numerals (like `IIIII` or `MIM`) as well.\n\n","raw_url":"https://gist.github.com/raw/1040240/acb6ef0dff3be5fd3a21968229e698e7dc303bfe/README.md","size":207,"filename":"README.md"},"index.js":{"content":"function(a){for(var v,s=0,i=a.length;i--;s+=v-(v=[100,500,,,,,1,,,50,1e3,,,,,,,,,5,,10][parseInt(a.charAt(i),36)-12])>0?-v:v);return s}","raw_url":"https://gist.github.com/raw/1040240/d0bfdbd20671a0f0b240a1a31f82acee155da7e1/index.js","size":135,"filename":"index.js"},"x-alternative.js":{"content":"/*\n Alternative version\n ---\n Use this only when string consists *only* from chars:\n I, V, X, L, C, D, M,\n i, v, x, l, c, d, m\n Anything other will return complete trash\n*/\nfunction(a){for(var v,s=0,i=a.length;i--;s+=v-(v=[1e3,,5,1,10,100,500,50][1.1*parseInt(a.charAt(i),36)&7])>0?-v:v);return s}","raw_url":"https://gist.github.com/raw/1040240/aa5f3307bb313158eaaa5ca6c722c62611074418/x-alternative.js","size":297,"filename":"x-alternative.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>parseRoman</title>\n<div>Expected value: <b>1986,1999,NaN</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(a){for(var v,s=0,i=a.length;i--;s+=v-(v=[100,500,,,,,1,,,50,1e3,,,,,,,,,5,,10][parseInt(a.charAt(i),36)-12])>0?-v:v);return s}\n\n document.getElementById( \"ret\" ).innerHTML = [myFunction(\"mcmlxxxvi\"), myFunction(\"MIM\"), myFunction(\"foobarbaz\")]\n</script>","raw_url":"https://gist.github.com/raw/1040240/c2210bbcb680bc5eebdde755f9ebfa329f61641e/test.html","size":529,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"parseRoman\",\n\n \"description\": \"Parses roman numerals\",\n\n \"keywords\": [\n \"roman\",\n \"numeral\",\n \"parse\"\n ]\n}","raw_url":"https://gist.github.com/raw/1040240/68b03ee73405c39e4d152477963cd1ad04235a6e/package.json","size":131,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"html_url":"https://gist.github.com/1040240","url":"https://api.github.com/gists/1040240","description":"parseRoman","public":true,"comments":8,"history":[{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/6ac929050855045e6f8b7fae53635d4b43ea372b","committed_at":"2011-06-24T07:39:15Z","change_status":{"deletions":5,"additions":5,"total":10},"version":"6ac929050855045e6f8b7fae53635d4b43ea372b"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/2bf59d64670b0f5af62dc68435048e7683e19295","committed_at":"2011-06-22T16:19:51Z","change_status":{"deletions":10,"additions":7,"total":17},"version":"2bf59d64670b0f5af62dc68435048e7683e19295"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/0997c2882c83c0f54252d759be77c30d7ed13184","committed_at":"2011-06-22T15:47:07Z","change_status":{"deletions":7,"additions":10,"total":17},"version":"0997c2882c83c0f54252d759be77c30d7ed13184"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/8d1b9038cf73ecca1b26fefd4522ffc52998549e","committed_at":"2011-06-22T15:22:25Z","change_status":{"deletions":0,"additions":9,"total":9},"version":"8d1b9038cf73ecca1b26fefd4522ffc52998549e"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/0dbe44526ce74be8684b9a113568bba8300dc9c3","committed_at":"2011-06-22T14:47:24Z","change_status":{"deletions":2,"additions":2,"total":4},"version":"0dbe44526ce74be8684b9a113568bba8300dc9c3"},{"user":{"url":"https://api.github.com/users/subzey","login":"subzey","avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":810582},"url":"https://api.github.com/gists/1040240/f8160e9263e548ae88f973b1d83733ce3b7152c1","committed_at":"2011-06-22T14:44:41Z","change_status":{"deletions":50,"additions":62,"total":112},"version":"f8160e9263e548ae88f973b1d83733ce3b7152c1"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1040240/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1040240/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1040240/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1040240/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"}],"git_pull_url":"git://gist.github.com/1040240.git","id":"1040240","updated_at":"2011-06-22T14:44:41Z","created_at":"2011-06-22T14:43:20Z","git_push_url":"git@gist.github.com:1040240.git"}
View
1 data/entries/1042874.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"[].some || (Array.prototype.some = function (\n a, // callback\n b, // thisObject\n c, // 'this' shortcut\n d // placeholder for iterator/result\n){\n\n for (\n c = this,\n d = c.length;\n\n d--;\n )\n\n if (a.call(b, c[d], d, c)) break;\n\n return !!~d // d's value can be 0 to X (if callback returns true) or -1\n\n})","size":351,"raw_url":"https://gist.github.com/raw/1042874/517b8f906785659b57ea51bed1b51a74c429ed8a/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":500,"raw_url":"https://gist.github.com/raw/1042874/f635bdc8f3cf82aa559c6a1390302b55de116562/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"[].some||(Array.prototype.some=function(a,b,c,d){for(c=this,d=c.length;d--;)if(a.call(b,c[d],d,c))break;return!!~d})","size":116,"raw_url":"https://gist.github.com/raw/1042874/06c1fe8c59262351dc879f9b84e185c81aafda69/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>false</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n Array.prototype.some=function(a,b,c,d){for(c=this,d=c.length;d--;)if(a.call(b,c[d],d,c))break;return!!~d}\n\n document.getElementById( \"ret\" ).innerHTML = [\"140\",\"bytes\",\"rocks\"].some(function(a){return a===\"sucks\"})\n</script>","size":358,"raw_url":"https://gist.github.com/raw/1042874/f81af7c23fac0c3bd2a9f60720d8066a8e265ac3/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"Array.prototype.some\",\n\n \"description\": \"ES5 Array.prototype.some polyfill\",\n\n \"keywords\": [\n \"ES5\",\n \"Array\",\n \"some\",\n \"polyfill\"\n ]\n}","size":188,"raw_url":"https://gist.github.com/raw/1042874/0539ea76b8feb89d7d83926820bf5c58b85b6060/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/sebastien-p","login":"sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":522746},"html_url":"https://gist.github.com/1042874","url":"https://api.github.com/gists/1042874","description":"Array.prototype.some","public":true,"comments":4,"history":[{"user":{"url":"https://api.github.com/users/sebastien-p","login":"sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":522746},"url":"https://api.github.com/gists/1042874/4544bfb2a24494bfefce2586c2552f00e4928c80","change_status":{"deletions":4,"additions":4,"total":8},"committed_at":"2011-07-08T16:00:40Z","version":"4544bfb2a24494bfefce2586c2552f00e4928c80"},{"user":{"url":"https://api.github.com/users/sebastien-p","login":"sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":522746},"url":"https://api.github.com/gists/1042874/0a73513354bc38aad94c17e1037f7f2e48452456","change_status":{"deletions":9,"additions":10,"total":19},"committed_at":"2011-06-23T17:06:24Z","version":"0a73513354bc38aad94c17e1037f7f2e48452456"},{"user":{"url":"https://api.github.com/users/sebastien-p","login":"sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":522746},"url":"https://api.github.com/gists/1042874/763cb013521fb98bf1264cca8f9ac52e42c940d5","change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-23T16:53:43Z","version":"763cb013521fb98bf1264cca8f9ac52e42c940d5"},{"user":{"url":"https://api.github.com/users/sebastien-p","login":"sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":522746},"url":"https://api.github.com/gists/1042874/1e171e212774c1275d409ac7a90509fa151311d0","change_status":{"deletions":58,"additions":30,"total":88},"committed_at":"2011-06-23T16:29:15Z","version":"1e171e212774c1275d409ac7a90509fa151311d0"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1042874/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"}],"git_pull_url":"git://gist.github.com/1042874.git","git_push_url":"git@gist.github.com:1042874.git","id":"1042874","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-06-23T16:29:15Z","created_at":"2011-06-23T16:11:49Z"}
View
1 data/entries/1043377.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1043377/c1cb24aebae8387b867cd6dde79e0d154f75b6b6/annotated.js","content":"/**\n * @param {String} a Path to the script\n * @param {function} b Optional callback executed onload\n */\nfunction(a,b,c,d,e){\n\td=document;\n\tc=d.createElement('script');\n\tc.src=a;\n\te=!b;\n\tc.onload=function(){\n\t\t!e&&b();e=!0;\n\t};\n\td.body.appendChild(c);\n}","size":253,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1043377/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1043377/ad3e99a6e50c40d3391dd79380b6396bc7f4254f/README.md","content":"140byt.es\n=========\n\nA tweet-sized, fork-to-play, community-curated collection of JavaScript.","size":93,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1043377/76681e3264f5b1e65ebdb708dbbfcc0c1b543698/index.js","content":"function(a,b,c,d,e){d=document;c=d.createElement('script');c.src=a;e=!b;c.onload=function(){!e&&b();e=!0;};d.body.appendChild(c);}","size":130,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1043377/e96f7e698e0ee85ace177090892a66cd2c86d3a9/test.html","content":"<!DOCTYPE html> \n<head>\n<title>Poor man's script loader</title>\n</head>\n<body>\n<div>Expected value: <b>1.6.1</b></div>\n<div>Actual value: <b id=\"ret\">Loading</b></div>\n<script>\n /**\n * @function\n */\n var scriptLoader = function(a,b,c,d,e){d=document;c=d.createElement('script');c.src=a;e=!b;c.onload=function(){!e&&b();e=!0;};d.body.appendChild(c);}\n\n scriptLoader(\n 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js',\n function(){\n document.getElementById( \"ret\" ).innerHTML = window.jQuery.fn.jquery; \n }\n );\n</script>\n</body>\n","size":568,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1043377/c7a977ba43cdf04c6fd3e54828318170b0fd620b/package.json","content":"{\n \"name\": \"scriptLoader\",\n\n \"description\": \"Simple script loader - preserving order asynchronously\",\n\n \"keywords\": [\n \"script\",\n \"loader\",\n \"async\",\n \"order\"\n ]\n}","size":179,"filename":"package.json"}},"html_url":"https://gist.github.com/1043377","user":{"url":"https://api.github.com/users/skrings","login":"skrings","avatar_url":"https://secure.gravatar.com/avatar/a28b0e4c115b4d663900724860a9f581?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":204874},"git_push_url":"git@gist.github.com:1043377.git","url":"https://api.github.com/gists/1043377","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"140byt.es -- scriptLoader","public":true,"comments":2,"history":[{"user":{"url":"https://api.github.com/users/skrings","login":"skrings","avatar_url":"https://secure.gravatar.com/avatar/a28b0e4c115b4d663900724860a9f581?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":204874},"url":"https://api.github.com/gists/1043377/611728c08bc20e3b3363a6d04af6578fad4ab92c","change_status":{"deletions":29,"additions":1,"total":30},"committed_at":"2011-06-23T19:22:40Z","version":"611728c08bc20e3b3363a6d04af6578fad4ab92c"},{"user":{"url":"https://api.github.com/users/skrings","login":"skrings","avatar_url":"https://secure.gravatar.com/avatar/a28b0e4c115b4d663900724860a9f581?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":204874},"url":"https://api.github.com/gists/1043377/dcb44ea208606792651d8501ab3d1d4c949e11af","change_status":{"deletions":26,"additions":38,"total":64},"committed_at":"2011-06-23T19:19:46Z","version":"dcb44ea208606792651d8501ab3d1d4c949e11af"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043377/80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"id":"1043377","updated_at":"2011-06-23T19:19:47Z","created_at":"2011-06-23T19:17:16Z","git_pull_url":"git://gist.github.com/1043377.git"}
View
1 data/entries/1043790.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"Array.prototype.reduce =\n [].reduce || // if not defined yet\n function(\n c, // callback function\n v // initial value (optionnal)\n ) {\n for( // iterate\n // make actions in the first for statement, save one ';' :)\n var t=this\n , u // undefined\n , i= // initialize i to:\n (u=v===u) // if initial value is not defined\n ? (v=t[0],1) // set initial value to first value and set i to 1\n : 0; // else set i to 0\n // for loop condition\n i < t.length;\n )\n // for loop body\n v=c(v,t[i],i++,t); // call the callback with the arguments, save the result value\n\n i<2 & u && // if the array was empty and no default value was given\n u(); // raise a TypeError (u is not a function)\n return v // else return the result\n }","raw_url":"https://gist.github.com/raw/1043790/59c6d17315b67832cdef29ed98032e4800bb5253/annotated.js","size":822,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Benoît Zugmeyer <alk at graou dot fr>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1043790/1c7083cf864e7edfbac4cb34329cebba4fa5390b/LICENSE.txt","size":491,"filename":"LICENSE.txt"},"README.md":{"content":"A 140 bytes Array.prototype.reduce solution.\n\nIt should work as described on [MDN](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce).\n\nIf the array has no value and no initial value is passed, it raises an error. If the callback is not a function, it will fail when tempting to call it.\n\nThere is one major difference between ES5 specifications and this implementation: if the second parametter is specified but `undefined`, it won't be taken as initial value. There is no place to put a `arguments.length` here :(\n","raw_url":"https://gist.github.com/raw/1043790/811d161961732b43623fcd3823c42e8b853ee12d/README.md","size":548,"filename":"README.md"},"index.js":{"content":"Array.prototype.reduce=[].reduce||function(c,v){for(var t=this,u,i=(u=v===u)?(v=t[0],1):0;i<t.length;)v=c(v,t[i],i++,t);i<2&u&&u();return v}","raw_url":"https://gist.github.com/raw/1043790/df7b10c1bb69c2f54aa27da57eab2f8dd82690a9/index.js","size":140,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html>\n<title>Foo</title>\n<div>Expected value: <b>15</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n Array.prototype.reduce=[].reduce||function(c,v){for(var t=this,u,i=(u=v===u)?(v=t[0],1):0;i<t.length;)v=c(v,t[i],i++,t);i<2&u&&u();return v}\n\n document.getElementById( \"ret\" ).innerHTML = [1,2,3,4,5].reduce(function(a, b) { return a + b; });\n</script>\n","raw_url":"https://gist.github.com/raw/1043790/2ed40bcbecf8198807fd618b83a1ceb1a4d486bc/test.html","size":378,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"ArrayReduce140\",\n\n \"description\": \"An Array:reduce method implementation in 140 bytes.\",\n\n \"keywords\": [\n \"array\",\n \"reduce\"\n ]\n}","raw_url":"https://gist.github.com/raw/1043790/ce20161fa7e2217f29f4bc9c966619d7e1ba8fd7/package.json","size":151,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"html_url":"https://gist.github.com/1043790","url":"https://api.github.com/gists/1043790","description":"Array.prototype.reduce","public":true,"comments":3,"history":[{"user":null,"url":"https://api.github.com/gists/1043790/b3297f205344cda96879f80c76faae222e724e37","committed_at":"2011-06-24T11:18:03Z","change_status":{"deletions":1,"additions":12,"total":13},"version":"b3297f205344cda96879f80c76faae222e724e37"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/ad3f38f20e1367acd5e32a4c39a0e5495ae47321","committed_at":"2011-06-24T08:30:24Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"ad3f38f20e1367acd5e32a4c39a0e5495ae47321"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/97a8d277296decd4c2cb2d935eb0e77518941091","committed_at":"2011-06-23T23:58:21Z","change_status":{"deletions":10,"additions":8,"total":18},"version":"97a8d277296decd4c2cb2d935eb0e77518941091"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/3454ab4fca5ef990c8c31fb99c30f8d0c59d94fe","committed_at":"2011-06-23T23:51:28Z","change_status":{"deletions":9,"additions":10,"total":19},"version":"3454ab4fca5ef990c8c31fb99c30f8d0c59d94fe"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/04ad2608257124e9ebe797367b7ab3ef9723b684","committed_at":"2011-06-23T23:12:42Z","change_status":{"deletions":5,"additions":5,"total":10},"version":"04ad2608257124e9ebe797367b7ab3ef9723b684"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/b6f1cd974f0cd5daa3429c02ff2bd23cc4254aec","committed_at":"2011-06-23T23:00:15Z","change_status":{"deletions":2,"additions":2,"total":4},"version":"b6f1cd974f0cd5daa3429c02ff2bd23cc4254aec"},{"user":{"url":"https://api.github.com/users/Karnash","login":"Karnash","avatar_url":"https://secure.gravatar.com/avatar/39e9b5dcdc876ad6ea6f1f67227037aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":61787},"url":"https://api.github.com/gists/1043790/25b5dc6674472d214cc476d9cb06e4d5c81c0ed7","committed_at":"2011-06-23T22:59:22Z","change_status":{"deletions":60,"additions":33,"total":93},"version":"25b5dc6674472d214cc476d9cb06e4d5c81c0ed7"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043790/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043790/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043790/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"}],"git_pull_url":"git://gist.github.com/1043790.git","id":"1043790","updated_at":"2011-06-23T22:59:22Z","created_at":"2011-06-23T22:32:25Z","git_push_url":"git@gist.github.com:1043790.git"}
View
1 data/entries/1043870.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1126988","id":"1126988","updated_at":"2011-08-05T05:57:38Z","created_at":"2011-08-05T05:57:38Z"},{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1129095","id":"1129095","updated_at":"2011-08-06T06:47:59Z","created_at":"2011-08-06T06:47:59Z"}],"files":{"annotated.js":{"content":"(function(\n a, // placeholder for stored modules\n b, // placeholder for module's dependencies\n c // placeholder for iterator\n) {\n return function(\n e, // @string : module's name\n f, // @array : module's dependency list\n g // @object || @function : module's content\n ) {\n \n b = [];\n \n if(g && g.constructor && g.apply) { // if the module content is a function \n \n for(c in f) { // then we iterate over the dependency list\n \n b[c] = a[f[c]]; // push the stored dependency\n \n }\n \n a[e] = g.apply(this, b); // store the new module with its dependencies as arguments\n \n } else {\n \n a[e] = g; // else if the module content is a litteral, we store it\n\n }\n };\n})({});","raw_url":"https://gist.github.com/raw/1043870/45e07c71656d356d0b6f19396a1cf11a90766133/annotated.js","size":835,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1043870/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"index.js":{"content":"(function(b,e,c){return function(f,d,a){d=[];if(a&&a.constructor&&a.apply){for(c in d)e[c]=b[d[c]];b[f]=a.apply(this,e)}else b[f]=a}})({});","raw_url":"https://gist.github.com/raw/1043870/9e7b9d5be3c17faa07ce51a57527539bb36cfc5a/index.js","size":139,"filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>bar</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // Usage\n\n var define = (function(a,b,c){return function(e,f,g){b=[];if(g&&g.constructor&&g.apply){for(c in f)b[c]=a[f[c]];a[e]=g.apply(this,b)}else a[e]=g}})({});\n\n define('module-1', [], {foo: 'bar'});\n \n define('module-2', ['module-1'], function(module1) {\n \n document.getElementById('ret').innerHTML = module1.foo;\n \n });\n</script>","raw_url":"https://gist.github.com/raw/1043870/dac395bc78cd0a1de4465028784faa8d9a5e9c0b/test.html","size":476,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"define\",\n\n \"description\": \"dependency management requirejs like\",\n\n \"keywords\": [\n \"define\",\n \"dependency\",\n \"module\",\n \"require\"\n ]\n}","raw_url":"https://gist.github.com/raw/1043870/2b7743e90a94aab0f4012bb6bb032c48f1c3056b/package.json","size":162,"filename":"package.json"}},"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_push_url":"git@gist.github.com:962807.git"},"user":{"url":"https://api.github.com/users/ZeeAgency","login":"ZeeAgency","avatar_url":"https://secure.gravatar.com/avatar/3c0406520c49e773c40d486b6a430bd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":479659},"html_url":"https://gist.github.com/1043870","url":"https://api.github.com/gists/1043870","description":"dependency management","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/ZeeAgency","login":"ZeeAgency","avatar_url":"https://secure.gravatar.com/avatar/3c0406520c49e773c40d486b6a430bd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":479659},"url":"https://api.github.com/gists/1043870/c9ab4a7522300a4c4ea54a2897f9686aaeb314c8","committed_at":"2011-06-23T23:35:51Z","change_status":{"deletions":2,"additions":4,"total":6},"version":"c9ab4a7522300a4c4ea54a2897f9686aaeb314c8"},{"user":{"url":"https://api.github.com/users/ZeeAgency","login":"ZeeAgency","avatar_url":"https://secure.gravatar.com/avatar/3c0406520c49e773c40d486b6a430bd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":479659},"url":"https://api.github.com/gists/1043870/0f94090ee417d56b38125f3053ba92eac06ba83d","committed_at":"2011-06-23T23:32:57Z","change_status":{"deletions":55,"additions":45,"total":100},"version":"0f94090ee417d56b38125f3053ba92eac06ba83d"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1043870/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","change_status":{"deletions":21,"additions":14,"total":35},"version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"git_pull_url":"git://gist.github.com/1043870.git","id":"1043870","updated_at":"2011-06-23T23:32:57Z","created_at":"2011-06-23T23:16:21Z","git_push_url":"git@gist.github.com:1043870.git"}
View
1 data/entries/1044533.json
@@ -0,0 +1 @@
+{"comments":40,"history":[{"change_status":{"total":2,"deletions":1,"additions":1},"committed_at":"2011-08-25T00:41:50Z","url":"https://api.github.com/gists/1044533/6f0b6ee5dd2b23277701e394c4e31f5be0c3f2b1","version":"6f0b6ee5dd2b23277701e394c4e31f5be0c3f2b1","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":6,"deletions":3,"additions":3},"committed_at":"2011-08-23T07:51:15Z","url":"https://api.github.com/gists/1044533/a7c77e95cde2649813f3fa46c5ff65d3dde6e284","version":"a7c77e95cde2649813f3fa46c5ff65d3dde6e284","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":2,"deletions":1,"additions":1},"committed_at":"2011-07-11T05:57:25Z","url":"https://api.github.com/gists/1044533/64e20456fc8bbdd677e9ceed4c0f139bd46d02f9","version":"64e20456fc8bbdd677e9ceed4c0f139bd46d02f9","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":2,"deletions":1,"additions":1},"committed_at":"2011-07-11T05:56:28Z","url":"https://api.github.com/gists/1044533/562a55e676fb3d9f332067ea16744174dc31282f","version":"562a55e676fb3d9f332067ea16744174dc31282f","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":27,"deletions":3,"additions":24},"committed_at":"2011-06-25T07:43:09Z","url":"https://api.github.com/gists/1044533/b75127914b83bec4eff77716dcb5a1bb9210c995","version":"b75127914b83bec4eff77716dcb5a1bb9210c995","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":2,"deletions":1,"additions":1},"committed_at":"2011-06-24T13:06:00Z","url":"https://api.github.com/gists/1044533/97e616047ebf8d78d77a550839a2bed820d05005","version":"97e616047ebf8d78d77a550839a2bed820d05005","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":76,"deletions":59,"additions":17},"committed_at":"2011-06-24T10:18:38Z","url":"https://api.github.com/gists/1044533/4c5473019578c9368e0845fd69488878158dd059","version":"4c5473019578c9368e0845fd69488878158dd059","user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433}},{"change_status":{"total":12,"deletions":7,"additions":5},"committed_at":"2011-06-01T13:42:07Z","url":"https://api.github.com/gists/1044533/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50","user":{"login":"140bytes","url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161}},{"change_status":{"total":1,"deletions":0,"additions":1},"committed_at":"2011-06-01T12:27:17Z","url":"https://api.github.com/gists/1044533/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9","user":{"login":"140bytes","url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161}},{"change_status":{"total":2,"deletions":1,"additions":1},"committed_at":"2011-05-31T22:34:03Z","url":"https://api.github.com/gists/1044533/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","user":{"login":"140bytes","url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161}}],"created_at":"2011-06-24T10:06:58Z","forks":[],"git_pull_url":"git://gist.github.com/1044533.git","description":"ES5-ish shim for Date.prototype.toISOString","public":true,"git_push_url":"git@gist.github.com:1044533.git","url":"https://api.github.com/gists/1044533","fork_of":{"comments":49,"created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","user":{"login":"140bytes","url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","id":"962807","updated_at":"2011-05-18T12:15:41Z","files":{"annotated.js":{"filename":"annotated.js","size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"filename":"LICENSE.txt","size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"filename":"README.md","size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"filename":"index.js","size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"filename":"test.html","size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"filename":"package.json","size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}}},"user":{"login":"jed","url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":4433},"html_url":"https://gist.github.com/1044533","id":"1044533","updated_at":"2011-08-24T23:45:12Z","files":{"annotated.js":{"filename":"annotated.js","size":901,"content":"// thanks to @fgnass and @subzey for their awesome golf skills\n// annotation by @fgnass\n\nfunction(a){\n a=this;\n return (\n 1e3 // Insert a leading zero as padding for months < 10\n -~a.getUTCMonth() // Months start at 0, so increment it by one\n *10 // Insert a trailing zero as padding for days < 10\n +a.toUTCString() // Can be \"1 Jan 1970 00:00:00 GMT\" or \"Thu, 01 Jan 1970 00:00:00 GMT\"\n +1e3+a/1 // Append the millis, add 1000 to handle timestamps <= 999\n // The resulting String for new Date(0) will be:\n // \"-1010 Thu, 01 Jan 1970 00:00:00 GMT1000\" or\n // \"-10101 Jan 1970 00:00:00 GMT1000\" (IE)\n ).replace(\n // The two digits after the leading '-1' contain the month\n // The next two digits (at whatever location) contain the day\n // The last three chars are the milliseconds\n /1(..).*?(\\d\\d)\\D+(\\d+).(\\S+).*(...)/,\n '$3-$1-$2T$4.$5Z')\n}","raw_url":"https://gist.github.com/raw/1044533/d15f17e1c3984be3437b90c9056decd0ac94eb7c/annotated.js"},"LICENSE.txt":{"filename":"LICENSE.txt","size":480,"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Jed Schmidt <http://jed.is>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1044533/36a7fa2bb27f413b3412bc15590ddeb27ccea232/LICENSE.txt"},"index.js":{"filename":"index.js","size":140,"content":"function(a){a=this;return(1e3-~a.getUTCMonth()*10+a.toUTCString()+1e3+a/1).replace(/1(..).*?(\\d\\d)\\D+(\\d+).(\\S+).*(...)/,'$3-$1-$2T$4.$5Z')}","raw_url":"https://gist.github.com/raw/1044533/1aac3b93dcc032e1040d3d2f0d9966b40641a4df/index.js"},"test.html":{"filename":"test.html","size":510,"content":"<!DOCTYPE html>\n<title>Date.prototype.toISOString</title>\n<div>Expected value: <b id=\"expected\"></b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n var toISOString = function(a){a=this;return(1e3-~a.getUTCMonth()*10+a.toUTCString()+1e3+a/1).replace(/1(..).*?(\\d\\d)\\D+(\\d+).(\\S+).*(...)/,'$3-$1-$2T$4.$5Z')}\n , now = new Date\n\n document.getElementById( \"expected\" ).innerHTML = Date.prototype.toISOString.call(now)\n document.getElementById( \"ret\" ).innerHTML = toISOString.call(now)\n</script>","raw_url":"https://gist.github.com/raw/1044533/c3ed9db7114e37ff47d7e1c22c118a076ea505c2/test.html"},"package.json":{"filename":"package.json","size":210,"content":"{\n \"name\": \"toISOString\",\n\n \"description\": \"ES5-ish shim for Date.prototype.toISOString\",\n\n \"contributors\": [\"@subzey\", \"@fgnass\"],\n\n \"keywords\": [\n \"ES5\",\n \"shim\",\n \"Date\",\n \"toISOString\"\n ]\n}","raw_url":"https://gist.github.com/raw/1044533/d92b0bfffdb9bddb50b53ca2d53fcbf4427c07d2/package.json"}}}
View
1 data/entries/1044540.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"// from http://twitter.com/WebReflection/status/83867362490720258\nArray.prototype.unique = // extend the array prototype\n[].unique || // if it doesn't exist\nfunction(\n a\n){\n return function() { // with a function that\n return this.filter(a) // filters by the cached function\n }\n}(\n function(a,b,c) { // which\n return c.indexOf( // finds out whether the array contains\n a, // the item\n b + 1 // after the current index\n ) < 0 // and returns false if it does.\n }\n)","size":561,"raw_url":"https://gist.github.com/raw/1044540/217084435d3d8bf8042f48ac074e7c29dbce0b8d/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Jed Schmidt <http://jed.is>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":480,"raw_url":"https://gist.github.com/raw/1044540/36a7fa2bb27f413b3412bc15590ddeb27ccea232/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"Array.prototype.unique=function(a){return function(){return this.filter(a)}}(function(a,b,c){return c.indexOf(a,b+1)<0})","size":120,"raw_url":"https://gist.github.com/raw/1044540/8f5212f3a0ab9575565f85b0f2b03f265e7f242d/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>1,2,3,4,5</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n Array.prototype.unique=function(a){return function(){return this.filter(a)}}(function(a,b,c){return c.indexOf(a,b+1)<0})\n\n document.getElementById( \"ret\" ).innerHTML = [1,2,3,4,5,4,3,2,1].unique().sort()\n</script>","size":348,"raw_url":"https://gist.github.com/raw/1044540/ca9bb40ebbd7a66e9683ee74324c1d02cd5660bf/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"unique\",\n\n \"description\": \"Array.prototype.unique, by @WebReflection\",\n\n \"keywords\": [\n \"array\",\n \"unique\"\n ]\n}","size":133,"raw_url":"https://gist.github.com/raw/1044540/96112d75d3bae2481fb8daa0cbc8ed6c9bfe0388/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed","id":4433},"git_pull_url":"git://gist.github.com/1044540.git","url":"https://api.github.com/gists/1044540","description":"Array.prototype.unique","public":true,"html_url":"https://gist.github.com/1044540","comments":8,"git_push_url":"git@gist.github.com:1044540.git","history":[{"committed_at":"2011-07-11T03:12:23Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed","id":4433},"url":"https://api.github.com/gists/1044540/146317e19ecc8ff8be60889906d17ea648250d26","version":"146317e19ecc8ff8be60889906d17ea648250d26"},{"committed_at":"2011-06-24T10:29:40Z","change_status":{"deletions":56,"additions":26,"total":82},"user":{"url":"https://api.github.com/users/jed","avatar_url":"https://secure.gravatar.com/avatar/7b72d5a18ab92129692e97a76a153fe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jed","id":4433},"url":"https://api.github.com/gists/1044540/95b2a47ef4c9f94bfadb56c794102f57c6eb6b2a","version":"95b2a47ef4c9f94bfadb56c794102f57c6eb6b2a"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"committed_at":"2011-05-23T08:25:12Z","change_status":{"deletions":21,"additions":14,"total":35},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1044540/80a276faf6c6d20ddddf0a6976f251113e82182c","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1044540","updated_at":"2011-06-24T10:29:40Z","created_at":"2011-06-24T10:20:38Z"}
View
1 data/entries/1046891.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"// 109 bytes, 153 including 'Array.prototype.reduceRight=[].reduceRight||' ...\n\n\nfunction (\n a, // callback\n b // initialValue and result\n){\n\n for (\n var c = this, // 'this' shortcut\n d = c.length + 1, // iterator\n e; // 'undefined' and flag for trailing \"holes\" in 'c'\n\n d--;\n )\n\n b = d in c ? a(b, c[d], d, e = c) : e || b !== e ? b : c[d -= d - 1 in c];\n\n return b\n\n}","size":452,"raw_url":"https://gist.github.com/raw/1046891/46d5578c2528602beaeaaa9a0b51b736cd533fd3/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":500,"raw_url":"https://gist.github.com/raw/1046891/f635bdc8f3cf82aa559c6a1390302b55de116562/LICENSE.txt","filename":"LICENSE.txt"},"index.js":{"content":"function(a,b){for(var c=this,d=c.length+1,e;d--;)b=d in c?a(b,c[d],d,e=c):e||b!==e?b:c[d-=d-1 in c];return b}","size":109,"raw_url":"https://gist.github.com/raw/1046891/cfe02b1db36736ac65154d5833456d98411d3f5f/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>16</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n Array.prototype.reduceRight=function(a,b){for(var c=this,d=c.length+1,e;d--;)b=d in c?a(b,c[d],d,e=c):e||b!==e?b:c[d-=d-1 in c];return b}\n\n document.getElementById( \"ret\" ).innerHTML = [,,,1,2,,3,,,,,,].reduceRight(function(a,b){return a+b},10)\n</script>","size":385,"raw_url":"https://gist.github.com/raw/1046891/27a23f020fb82d3081ab7c4cacac5cdeb5da6fba/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"Array.prototype.reduceRight\",\n\n \"description\": \"ES5 Array.prototype.reduceRight polyfill\",\n\n \"keywords\": [\n \"ES5\",\n \"array\",\n \"reduceRight\",\n \"polyfill\"\n ]\n}","size":209,"raw_url":"https://gist.github.com/raw/1046891/6bc98867a49537817ca6a1fa480ca8f6e16aa45b/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"git_pull_url":"git://gist.github.com/1046891.git","url":"https://api.github.com/gists/1046891","description":"Array.prototype.reduceRight","public":true,"html_url":"https://gist.github.com/1046891","comments":6,"git_push_url":"git@gist.github.com:1046891.git","history":[{"committed_at":"2011-07-09T10:02:03Z","change_status":{"deletions":4,"additions":4,"total":8},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/62d61e72abb3c5ef170abe3d6babc505b93b1551","version":"62d61e72abb3c5ef170abe3d6babc505b93b1551"},{"committed_at":"2011-07-05T09:56:06Z","change_status":{"deletions":11,"additions":3,"total":14},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/bd8af0eca26a57e28b788baedcfa68cdfecbc42f","version":"bd8af0eca26a57e28b788baedcfa68cdfecbc42f"},{"committed_at":"2011-07-05T09:19:22Z","change_status":{"deletions":3,"additions":3,"total":6},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/51ad58148f1ff650913420f6926c39ff879db1f9","version":"51ad58148f1ff650913420f6926c39ff879db1f9"},{"committed_at":"2011-07-03T12:42:22Z","change_status":{"deletions":9,"additions":7,"total":16},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/6ed6b84b5f8a94162262e2a76220ac57ee99dfd7","version":"6ed6b84b5f8a94162262e2a76220ac57ee99dfd7"},{"committed_at":"2011-07-01T15:38:36Z","change_status":{"deletions":2,"additions":2,"total":4},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/64f3a279278fd116c1c969a3bb31ad7d94469115","version":"64f3a279278fd116c1c969a3bb31ad7d94469115"},{"committed_at":"2011-07-01T15:31:18Z","change_status":{"deletions":10,"additions":19,"total":29},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/9d2bad1812b80c3ae2c61955ed03b40588af5dda","version":"9d2bad1812b80c3ae2c61955ed03b40588af5dda"},{"committed_at":"2011-06-26T14:05:07Z","change_status":{"deletions":17,"additions":12,"total":29},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/daaf7d3cb7b307720b1e29bff61815fa25baa017","version":"daaf7d3cb7b307720b1e29bff61815fa25baa017"},{"committed_at":"2011-06-25T21:11:55Z","change_status":{"deletions":2,"additions":2,"total":4},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/f100e81cdae643452f0c017afa71e28630d7d6eb","version":"f100e81cdae643452f0c017afa71e28630d7d6eb"},{"committed_at":"2011-06-25T21:10:44Z","change_status":{"deletions":58,"additions":39,"total":97},"user":{"url":"https://api.github.com/users/sebastien-p","avatar_url":"https://secure.gravatar.com/avatar/c6e213017842a00ff4ba94368de54bc3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"sebastien-p","id":522746},"url":"https://api.github.com/gists/1046891/e9baa43698ccc8b211771b28fe85ede724bc9a29","version":"e9baa43698ccc8b211771b28fe85ede724bc9a29"},{"committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1046891/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"}],"fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"html_url":"https://gist.github.com/962807","comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1046891","updated_at":"2011-06-25T21:10:44Z","created_at":"2011-06-25T21:02:43Z"}
View
1 data/entries/1047155.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(f) { // a function that takes 2 args\n // 1) an accumulated value \n // 2) a single value from a list\n // and returns a value which represents\n // the accumulated computation\n return function( // returns a function `curry`\n i, // an initial value for the accumulator\n l // a list of values\n ) {\n return l.length ? arguments.callee( // recurse if length > 0\n f(i, l[0]), l.slice(1)\n ) : i; // else return the aggregation\n }\n}","raw_url":"https://gist.github.com/raw/1047155/310ac6489073457813e047dff4ea78cb31469255/annotated.js","size":687,"filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1047155/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"index.js":{"content":"function(f){return function(i,l){return l.length?arguments.callee(f(i,l[0]),l.slice(1)):i;}}","raw_url":"https://gist.github.com/raw/1047155/baf4e495c87c2452580c25df64c3b6dbf9b33d89/index.js","size":92,"filename":"index.js"},"test.html":{"content":"var foldl = function(f){return function(i,l){return l.length?arguments.callee(f(i,l[0]),l.slice(1)):i;}}\n\nvar sum = foldl(function(a,e){\n return a + e;\n})\nconsole.log(sum(0, [1,2,3,4])) // 10\n\nvar product = foldl(function(a, e) {\n return a * e;\n})\nconsole.log(product(1, [1, 2, 3, 4]))\n\nvar names = foldl(function(a, e) {\n a.push(e.name)\n return a\n})\n\nconsole.log(names([],[{name:\"a\"},{name:\"b\"},{name:\"c\"}]))","raw_url":"https://gist.github.com/raw/1047155/e8a230081f5cd668c45299b7851cf9d1a733bed4/test.html","size":413,"filename":"test.html"},"package.json":{"content":"{\n \"name\": \"foldl\",\n \"description\": \"JavaScript fold left function application\",\n \"keywords\": [\"fp\",\"functional\",\"array\"]\n}","raw_url":"https://gist.github.com/raw/1047155/0a96e54e1cab43e95fecdde262f6b93b978b2c68/package.json","size":126,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/softprops","id":2242,"avatar_url":"https://secure.gravatar.com/avatar/355a2b203154bf8a9423fcdecf9e44cc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"softprops"},"url":"https://api.github.com/gists/1047155","description":"foldl","public":true,"comments":4,"history":[{"user":{"url":"https://api.github.com/users/softprops","id":2242,"avatar_url":"https://secure.gravatar.com/avatar/355a2b203154bf8a9423fcdecf9e44cc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"softprops"},"url":"https://api.github.com/gists/1047155/99052af8a597cef458b3f7783bb6370db8a73585","committed_at":"2011-06-28T04:52:02Z","version":"99052af8a597cef458b3f7783bb6370db8a73585","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/softprops","id":2242,"avatar_url":"https://secure.gravatar.com/avatar/355a2b203154bf8a9423fcdecf9e44cc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"softprops"},"url":"https://api.github.com/gists/1047155/7f1ed9fbf6f8661a9d6d0b52e5b959857f937a51","committed_at":"2011-06-28T04:51:19Z","version":"7f1ed9fbf6f8661a9d6d0b52e5b959857f937a51","change_status":{"deletions":7,"additions":4,"total":11}},{"user":{"url":"https://api.github.com/users/softprops","id":2242,"avatar_url":"https://secure.gravatar.com/avatar/355a2b203154bf8a9423fcdecf9e44cc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"softprops"},"url":"https://api.github.com/gists/1047155/1a1211c386ba9bf8da364dee81669c9011ba610f","committed_at":"2011-06-26T03:14:02Z","version":"1a1211c386ba9bf8da364dee81669c9011ba610f","change_status":{"deletions":65,"additions":38,"total":103}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/1047155/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}}],"git_pull_url":"git://gist.github.com/1047155.git","git_push_url":"git@gist.github.com:1047155.git","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","id":777161,"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"140bytes"},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","html_url":"https://gist.github.com/962807"},"id":"1047155","updated_at":"2011-06-26T03:14:02Z","created_at":"2011-06-26T02:27:38Z","html_url":"https://gist.github.com/1047155"}
View
1 data/entries/1049116.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1049116/4b390079552eee84c37e17e02ddba88b056bafeb/annotated.js","content":"Date.prototype.toFirstOfWeek = function() { \n // just subtract the day of the week by the date.\n this.setDate( this.getDate() - this.getDay() ); \n}","size":153,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1049116/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1049116/e9a3b9e6eb35adfd410b706e034c908a5df89209/README.md","content":"Adds Date.toFirstOfWeek() method that sets the date to the first day in the week (Sunday).\n\nExample:\n 6/28/2011 turns into 6/26/2011","size":135,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1049116/6d70523d971a42379c422ee898ab2f7f96524926/index.js","content":"Date.prototype.toFirstOfWeek=function(){this.setDate(this.getDate()-this.getDay());}","size":84,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1049116/9e9e4f601564b88f0f05b7245f1ded97c7505866/test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>undefined</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n Date.prototype.toFirstOfWeek=function(){this.setDate(this.getDate()-this.getDay());}\n\n\n var date = new Date(2011, 5, 29);\n \n date.toFirstOfWeek();\n // date now equals Sunday, June 26th 2011\n</script>","size":346,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1049116/e493d73096898a63217b8897946e1e6cc6c1b1d4/package.json","content":"{\n \"name\": \"toFirstOfWeek\",\n\n \"description\": \"Sets the date to the first day of the week (Sunday)\",\n\n \"keywords\": [\n \"date\",\n \"prototype\",\n \"week\",\n \"sunday\",\n \"first day of week\"\n ]\n}","size":203,"filename":"package.json"}},"html_url":"https://gist.github.com/1049116","user":{"url":"https://api.github.com/users/ripter","login":"ripter","avatar_url":"https://secure.gravatar.com/avatar/497e8fce7ba1045f399eceed94ef1116?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":121869},"git_push_url":"git@gist.github.com:1049116.git","url":"https://api.github.com/gists/1049116","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"Set date to the first day of the week","public":true,"comments":0,"history":[{"user":{"url":"https://api.github.com/users/ripter","login":"ripter","avatar_url":"https://secure.gravatar.com/avatar/497e8fce7ba1045f399eceed94ef1116?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":121869},"url":"https://api.github.com/gists/1049116/b43e49045b5d99dfe9f6592d19fb45528ab4d856","change_status":{"deletions":52,"additions":19,"total":71},"committed_at":"2011-06-27T15:58:24Z","version":"b43e49045b5d99dfe9f6592d19fb45528ab4d856"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1049116/960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7},"committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1"}],"id":"1049116","updated_at":"2011-06-27T15:58:35Z","created_at":"2011-06-27T15:43:00Z","git_pull_url":"git://gist.github.com/1049116.git"}
View
1 data/entries/1053863.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1053863/505cf8fa2f6f2cd495781e5cae4f0bcab0fb050a/annotated.js","content":"// Polyfill for Date.parse\nDate.parse = Date.parse || function(\n a // ISO Date string\n){\n // turn into array, cutting the first character of the Month\n a = a.split(/\\W\\D?/);\n // create a new date object\n return new Date(\n // year\n a[3],\n // month (starting with zero) \n // we got only the second and third character, so we find it in a string\n // Jan => an => 0, Feb => eb => 1, ...\n \"anebarprayunulugepctovec\".search(a[1]) / 2,\n // day\n a[2],\n // hour\n a[4],\n // minute\n a[5],\n // second\n a[6]\n )\n}","size":581,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1053863/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"filename":"LICENSE.txt"},"index.js":{"raw_url":"https://gist.github.com/raw/1053863/b61465c353066ca8856d0173a6dcd1519078ac09/index.js","content":"Date.parse=Date.parse||function(a){a=a.split(/\\W\\D?/);return new Date(a[3],\"anebarprayunulugepctovec\".search(a[1])/2,a[2],a[4],a[5],a[6])}","size":138,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1053863/2a4d27210e4118b7002037f5d17ef58301b30ff7/test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<div>Expected value: <b>Thu Mar 22 2007 12:56:06...</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n var myFunction = Date.parse=Date.parse||function(a){a=a.split(/\\W\\D?/);return new Date(a[3],\"anebarprayunulugepctovec\".search(a[1])/2,a[2],a[4],a[5],a[6])}\n\n document.getElementById( \"ret\" ).innerHTML = myFunction(''+new Date(2007,2,22,12,56,6));\n</script>","size":409,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1053863/1ff62fa487ee3c4aff473e01ae0830316326cddd/package.json","content":"{\n \"name\": \"parsedate\",\n\n \"description\": \"Date.parse replacement\",\n\n \"keywords\": [\n \"Date\",\n \"parse\"\n ]\n}","size":115,"filename":"package.json"}},"html_url":"https://gist.github.com/1053863","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"git_push_url":"git@gist.github.com:1053863.git","url":"https://api.github.com/gists/1053863","fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_push_url":"git@gist.github.com:962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z","git_pull_url":"git://gist.github.com/962807.git"},"description":"Date.parse polyfill (no timezone support)","public":true,"comments":19,"history":[{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1053863/203bee57eef0eccf5db304d2fd053a74444b0c5c","change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-30T07:31:21Z","version":"203bee57eef0eccf5db304d2fd053a74444b0c5c"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1053863/8f637646ce1e6f0d6227df453f5d7eb8579c797c","change_status":{"deletions":7,"additions":7,"total":14},"committed_at":"2011-06-29T15:06:46Z","version":"8f637646ce1e6f0d6227df453f5d7eb8579c797c"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1053863/ef4d71360218f1b6f78b9ad724b3c2e822ae4330","change_status":{"deletions":3,"additions":3,"total":6},"committed_at":"2011-06-29T14:58:33Z","version":"ef4d71360218f1b6f78b9ad724b3c2e822ae4330"},{"user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1053863/7a0bebd422089d958eaf585a8cbd2c830eb441a1","change_status":{"deletions":56,"additions":33,"total":89},"committed_at":"2011-06-29T13:53:32Z","version":"7a0bebd422089d958eaf585a8cbd2c830eb441a1"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1053863/e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee"}],"id":"1053863","updated_at":"2011-06-29T15:06:46Z","created_at":"2011-06-29T13:46:05Z","git_pull_url":"git://gist.github.com/1053863.git"}
View
1 data/entries/1058674.json
@@ -0,0 +1 @@
+{"forks":[],"files":{"annotated.js":{"content":"function(\n c // cookie name\n){\n // unescape cookie value\n return unescape(\n // coerces to RegExp /name=([^;]+)/ within match\n (document.cookie.match(c+'=(.+?);')||0)[1]||''\n )\n}\n\n// other version:\nfunction(\n c, // cookie name or cookie object\n d, // placeholder\n e // result for object parameterisation\n){\n // init result\n e='';\n // try to parameterize input\n for (d in c)\n // only unprototypical stuff is added to result in the format key=value[; ]\n c.hasOwnProperty(d) && (e+=(e?'; ':e)+d+'='+c[d]);\n // input is not a string?\n return ''+c !== c ?\n // return parameterized input\n e :\n // or coerce the cookiename to a regexp to match its unescaped value\n (document.cookie.match(c+'=(.+?);')||0)[1]\n}\n","size":796,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/1058674/d83bfc032824c9914ef335eea902168a854eb83a/annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/1058674/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"content":"Cookie helper\n=============\n\nA small function to get the escaped value of a named cookie. There's also a bigger function that works as a cookie setting preparer, though it does only get the escaped value and does not yet fit into 140 bytes at the moment (2 bytes golfing, anyone?):\n\n```javascript\nvar C=function(c,d,e){e='';for(d in c)c.hasOwnProperty(d)&&(e+=(e?'; ':e)+d+'='+c[d]);return''+c!==c?e:(document.cookie.match(c+'=(.+?);')||0)[1]}\n// setting a Cookie:\ndocument.cookie = C({cookiename: 'testcookie', expires: (new Date(new Date()*1+6E10)).toGMTString()});\nC('cookiename') // -> returns the still escaped value of the Cookie \"cookiename\"\n```","size":652,"filename":"README.md","raw_url":"https://gist.github.com/raw/1058674/e52cfc7bb047daec78dbef26bfbd133ae4cb8eff/README.md"},"index.js":{"content":"function(c){return unescape((document.cookie.match(c+'=(.+?);')||0)[1]||'')}","size":76,"filename":"index.js","raw_url":"https://gist.github.com/raw/1058674/bc8aec61dcbc127cb06d4a6f49940800c37c050b/index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>Cookie</title>\n<div>Expected value: <b>http[s]://github.com/[your username]</b> (on github content of your github tracker cookie)</div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(c){return unescape((document.cookie.match(c+'=(.+?);')||0)[1]||'')}\n\n document.getElementById( \"ret\" ).innerHTML = myFunction('tracker')\n</script>","size":491,"filename":"test.html","raw_url":"https://gist.github.com/raw/1058674/2ad216d6777c4f7ce3ba64d6a1741a2a16ea41ed/test.html"},"package.json":{"content":"{\n \"name\": \"cookie\",\n\n \"description\": \"Gets a cookie value by name (setting in an extra ungolfed version)\",\n\n \"keywords\": [\n \"cookie\",\n \"value\",\n \"by\",\n \"name\"\n ]\n}","size":180,"filename":"package.json","raw_url":"https://gist.github.com/raw/1058674/71c5a98bcc9fc6a238d369af03b7da44ea809202/package.json"}},"html_url":"https://gist.github.com/1058674","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"git_pull_url":"git://gist.github.com/1058674.git","url":"https://api.github.com/gists/1058674","description":"Cookie helper","public":true,"comments":9,"git_push_url":"git@gist.github.com:1058674.git","history":[{"change_status":{"deletions":5,"additions":5,"total":10},"committed_at":"2011-07-13T13:01:22Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1058674/cd3a1c876a8c24b04c8d94b861f89fd8801d346a","version":"cd3a1c876a8c24b04c8d94b861f89fd8801d346a"},{"change_status":{"deletions":52,"additions":49,"total":101},"committed_at":"2011-07-01T14:50:45Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1058674/02bbc379b4f725aa467cff692e12ab7e6a8523b1","version":"02bbc379b4f725aa467cff692e12ab7e6a8523b1"},{"change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1058674/80a276faf6c6d20ddddf0a6976f251113e82182c","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"}],"fork_of":{"files":{"annotated.js":{"size":396,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"size":1457,"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"size":140,"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"size":393,"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"size":241,"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1058674","updated_at":"2011-07-01T14:50:45Z","created_at":"2011-07-01T14:35:42Z"}
View
1 data/entries/1062308.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/Golmote","login":"Golmote","avatar_url":"https://secure.gravatar.com/avatar/bb7510eedd20c77efed62f8166accbb0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":565460},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"Looping function for Array, Objects and Array-Like","url":"https://api.github.com/gists/1062308","created_at":"2011-07-03T15:21:55Z","history":[{"user":{"url":"https://api.github.com/users/Golmote","login":"Golmote","avatar_url":"https://secure.gravatar.com/avatar/bb7510eedd20c77efed62f8166accbb0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":565460},"url":"https://api.github.com/gists/1062308/a48b9319a27daa8de042574239fe89b86dca8e07","committed_at":"2011-07-03T15:24:47Z","version":"a48b9319a27daa8de042574239fe89b86dca8e07","change_status":{"deletions":62,"additions":65,"total":127}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","change_status":{"deletions":8,"additions":8,"total":16}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","version":"80a276faf6c6d20ddddf0a6976f251113e82182c","change_status":{"deletions":21,"additions":14,"total":35}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1062308/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","version":"960fcc2cd42c2343f8abda98353165bf73f237f1","change_status":{"deletions":4,"additions":3,"total":7}}],"comments":0,"updated_at":"2011-07-03T15:22:20Z","public":true,"forks":[],"html_url":"https://gist.github.com/1062308","git_pull_url":"git://gist.github.com/1062308.git","id":"1062308","files":{"annotated.js":{"filename":"annotated.js","content":"function(\n\ta, // Objet or Array to loop into\n\tb, // Function to execute for each element\n\tc, // Boolean to force \"Object\" behaviour\n\t\n\td, // Placeholders\n\te\n){\n\tif(\n\t\tc // If the \"Object\" loop is forced\n\t\t||\n\t\t(c=a.length) == e // or if there's not any \"length\" property (let's store it)\n\t)\n\t\tfor(d in a) // for/in loop\n\t\t\ta.hasOwnProperty(d) // with hasOwnProperty check\n\t\t\t&&\n\t\t\tb.call(e=a[d],d,e,a); // Call the function as a method of the item\n\telse\n\t\tfor(d=0;d<c;) // else classic loop\n\t\t\tb.call(e=a[d],d++,e,a) // Call the function as a method of the item\n}\n","raw_url":"https://gist.github.com/raw/1062308/81be107c3efc32b25856c19b2c8c2db60f58634e/annotated.js","size":564},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1062308/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"index.js":{"filename":"index.js","content":"function(a,b,c,d,e){if(c||(c=a.length)==e)for(d in a)a.hasOwnProperty(d)&&b.call(e=a[d],d,e,a);else for(d=0;d<c;)b.call(e=a[d],d++,e,a)}","raw_url":"https://gist.github.com/raw/1062308/4f07746eb34a51099b229507fd8717ab97c0b3f4/index.js","size":136},"test.html":{"filename":"test.html","content":"<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>Loop'em all - 136 chars</title>\n\t</head>\n\t<body>\n\t\t<div>Expected value:<br />\n\t\t\t<b>\n\t\t\t\tArray : 0 -> zero, 1 -> one, 2 -> two, <br />\n\t\t\t\tObject : prop -> value, prop2 -> 154.4, <br />\n\t\t\t\tArray-Like : 0 -> zero, 1 -> one, <br />\n\t\t\t\tArray-Like forced as object : 0 -> zero, 1 -> one, length -> 2,\n\t\t\t</b>\n\t\t</div>\n\t\t\n\t\t\n\t\t<div>Actual value:<br /> <b id=\"ret\"></b></div>\n\t\t<script>\n\t\t\tvar each = function(a,b,c,d,e){if(c||(c=a.length)==e)for(d in a)a.hasOwnProperty(d)&&b.call(e=a[d],d,e,a);else for(d=0;d<c;)b.call(e=a[d],d++,e,a)},\n\t\t\t\n\t\t\t\tf = function(i, v) {\n\t\t\t\t\tstr += i + ' -> ' + v + ', ';\n\t\t\t\t},\n\t\t\t\tstr = 'Array : ';\n\t\t\t\n\t\t\teach(['zero', 'one', 'two'], f);\n\t\t\tstr += '<br />Object : ';\n\t\t\teach({prop: 'value', prop2: 154.4}, f);\n\t\t\tstr += '<br />Array-Like : ';\n\t\t\teach({0: 'zero', 1: 'one', length: 2}, f);\n\t\t\tstr += '<br />Array-Like forced as object : ';\n\t\t\teach({0: 'zero', 1: 'one', length: 2}, f, true);\n\t\t\t\n\t\t\tdocument.getElementById('ret').innerHTML = str;\n\t\t</script>\n\t</body>\n</html>","raw_url":"https://gist.github.com/raw/1062308/ace934e606cad4b8ebda3cf5ed3c594a05864cb7/test.html","size":1044},"package.json":{"filename":"package.json","content":"{\n \"name\": \"loopThemAll\",\n\n \"description\": \"Function for looping through Arrays, Objects and Array-Like Objects\",\n\n \"keywords\": [\n \"loop\",\n \"array\",\n \"objects\",\n \"array-like\"\n ]\n}","raw_url":"https://gist.github.com/raw/1062308/76c15b77756054be9c5a545c96c664ac37dfd12a/package.json","size":195}},"git_push_url":"git@gist.github.com:1062308.git"}
View
1 data/entries/1063144.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1129106","id":"1129106","updated_at":"2011-08-06T07:01:01Z","created_at":"2011-08-06T07:01:01Z"}],"files":{"annotated.js":{"content":"function( c, r){\n // c: the callback\n // r: the requestAnimationFrame function\n setTimeout(function(){\n // if c is still defined, call it with the \n // param false and set c to false\n c&&c(c=!1)\n },50);\n r(function(){\n // if c is still defined, call it with the \n // param true and set c to 0( falsy)\n c&&c(!(c=0))\n })\n}","size":380,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/1063144/9c0a1b8c1cb92485d85081d22f6c1990703a8e20/annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Kambfhase\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":462,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/1063144/35f08789500ff639e7223c43504c8ea64bed1cce/LICENSE.txt"},"README.md":{"content":"I've been hanging around in the jQuery IRC-Channel today, when somebody came in and asked a simple question:\n\n <simulation> how can i know if the page is on visible tab or passive tab ?\n\nAt first I thought this'd be impossible. Neither I there an API that I know of, nor should it be possible because of privacy. (Note: There are Fx internal APIs like `tabs.focused`)\n\nThankfully recently Browser vendors added the requestAnimationFrame function. We can use that to hack something together.\n\nload the reqAF-shim: https://gist.github.com/997619 and save it to any variable, eg reqAF.\n\n \n\n\n","size":594,"filename":"README.md","raw_url":"https://gist.github.com/raw/1063144/e75e9eae15fa6942a206a5a1f6074aa4484c4c49/README.md"},"index.js":{"content":"function(c,r){setTimeout(function(){c&&c(c=!1)},50);r(function(){c&&c(!(c=0))})}","size":80,"filename":"index.js","raw_url":"https://gist.github.com/raw/1063144/f82cfb167c480798113e2a201b368f095ed8c4cd/index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>detect activity</title>\n<script>\nvar reqAF= function(a,b){while(a--&&!(b=this[\"oR0msR0mozR0webkitR0r\".split(0)[a]+\"equestAnimationFrame\"]));return b||function(a){setTimeout(a,15)}}(5);\n\nvar active = function(c,r){setTimeout(function(){c&&c(c=!1)},50);r(function(){c&&c(!(c=0))})};\n\nfunction checkLater(){\n setTimeout( function(){\n active(function( a){\n console.log( a);\n }, reqAF);\n }, 1000);\n}\n\n</script>\n<a href=\"javascript: checkLater();\">Check if this page is active. when in doubt, logs true.</a>","size":556,"filename":"test.html","raw_url":"https://gist.github.com/raw/1063144/6d35ba42ea7c0df067168fe3dc3f9236bcd564ce/test.html"},"package.json":{"content":"{\n \"name\": \"activity detection\",\n\n \"description\": \"detects if the user is looking at your page right now.\",\n\n \"keywords\": [\n \"five\",\n \"descriptive\",\n \"keywords\",\n \"or\",\n \"fewer\"\n ]\n}","size":201,"filename":"package.json","raw_url":"https://gist.github.com/raw/1063144/3f1a14fbf705d13f97fed2fe1749a78d3406f56c/package.json"}},"html_url":"https://gist.github.com/1063144","user":{"url":"https://api.github.com/users/Kambfhase","login":"Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":295387},"git_pull_url":"git://gist.github.com/1063144.git","url":"https://api.github.com/gists/1063144","description":"activity detection","public":true,"comments":5,"git_push_url":"git@gist.github.com:1063144.git","history":[{"change_status":{"deletions":46,"additions":36,"total":82},"committed_at":"2011-07-04T10:35:38Z","user":{"url":"https://api.github.com/users/Kambfhase","login":"Kambfhase","avatar_url":"https://secure.gravatar.com/avatar/a695053c20d82044680643fc355f4d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":295387},"url":"https://api.github.com/gists/1063144/e884f843b51cdad3909dcb55e91d4e5d891a1f80","version":"e884f843b51cdad3909dcb55e91d4e5d891a1f80"},{"change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/cb7ce28cbcfb095a319f290d0632332f22d90c72","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"change_status":{"deletions":19,"additions":17,"total":36},"committed_at":"2011-05-31T18:10:31Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"change_status":{"deletions":6,"additions":6,"total":12},"committed_at":"2011-05-26T16:25:15Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/e69917d0323336a4cb552f60484b73c09eb538ee","version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"change_status":{"deletions":8,"additions":8,"total":16},"committed_at":"2011-05-25T11:57:53Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"change_status":{"deletions":21,"additions":14,"total":35},"committed_at":"2011-05-23T08:25:12Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/80a276faf6c6d20ddddf0a6976f251113e82182c","version":"80a276faf6c6d20ddddf0a6976f251113e82182c"},{"change_status":{"deletions":4,"additions":3,"total":7},"committed_at":"2011-05-23T08:18:48Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1063144/960fcc2cd42c2343f8abda98353165bf73f237f1","version":"960fcc2cd42c2343f8abda98353165bf73f237f1"}],"fork_of":{"files":{"annotated.js":{"size":396,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"size":1457,"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"size":140,"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"size":393,"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"size":241,"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1063144","updated_at":"2011-07-04T10:35:38Z","created_at":"2011-07-04T09:45:27Z"}
View
1 data/entries/1072010.json
@@ -0,0 +1 @@
+{"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1072010/30fc6c44b1ba30f5aef1e9b9debbd76876443948/annotated.js","content":"function(\n\ts, // string, Morse-encoded.\n\t // Any char that is not \".\" or \"-\" is considered whitespace.\n\t // One whitespace is the letter separator. 2+ whitespaces are the word separator.\n\tt // string, substitution \"table\" between char and morse code\n){\n\t// a single-replace code\n\treturn s.replace(\n\t\t// Regexp:\n\t\t// Capture any sequence of \".\" and \"-\" (greedy) and store into 1st paren. Then get any char if possible. (Due to \"greedy\" quantificator \"any char\" is never \".\" or \"-\")\n\t\t// ELSE\n\t\t// Capture any sequence of chars that are not \".\" or \"-\" (greedy).\n\t\t// Dot inside square brackets may be unescaped.\n\t\t/([.-]+).?|([^.-]+)/g,\n\t\tfunction(\n\t\t\ti, // full captured string. Its value is useless.\n\t\t\ts, // \"string\". First captured paren that may contain only \".\" or \"-\".\n\t\t\tf // \"fail\". Second captured string. Its certain value is useless, only string length. It's rather a flag.\n\t\t){\n\t\t\ti=1; // Assign 1 to unused `i` variable. It will be offset constructed from .'s and -'s.\n\t\t\t// If \"fail\" paren is captured it means that current char in original string is second whitespace, so this place is word boundary. Insert space here.\n\t\t\t// If not, get char from \"table\"-string at certain offset:\n\t\t\treturn f ? ' ' : t.charAt (\n\t\t\t\t// Eval statement:\n\t\t\t\teval(\n\t\t\t\t\t// Replace in \"local\" `s`...\n\t\t\t\t\ts.replace(\n\t\t\t\t\t\t/./g, // .. any char (it is only \".\" or \"-\") with...\n\t\t\t\t\t\t// ... well.. with chunk of text. \"$&\" is the captured char.\n\t\t\t\t\t\t\"i=i*2-~$&1;\"\n\t\t\t\t\t\t// So if input is \"-\" the replacement is:\n\t\t\t\t\t\t// i=i*2-~-1;\n\t\t\t\t\t\t// And if it is \".\":\n\t\t\t\t\t\t// i=i*2-~.1;\n\t\t\t\t\t\t// \"~-1\" is eval'd to 0; \"~.1\" is eval'd to -1.\n\t\t\t\t\t)\n\t\t\t\t\t// Thus, a sequence of these chunks each time doubles the `i` and adds or not 1.\n\t\t\t\t\t// For example, if input string is \"--...\", `i` = (binary) 100111.\n\t\t\t\t)\n\t\t\t\t// And `i` is the return value of eval.\n\t\t\t) || '?' // Finally, if there's no such char in table (invalid Morse code), use '?' instead.\n\t\t}\n\t)\n}","size":1973,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1072010/964b0b156963212a98c659ce59d8764cccf0a599/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 subzey <subzey@immelman.ru>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":480,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1072010/d64f560305e507dad308f3ad8ae64f3786cd2988/README.md","content":"deMorse\n=======\n\nTranslates Morse code into readable text using conversion dictionary.\n\nUsage\n-----\n```\ndemorse (\n\tstring, *required*\n\tdictionary *required*\n)\n```","size":162,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1072010/f5cfc819c678663779ccb4b139ea1551fac8de8c/index.js","content":"function(s,t){return s.replace(/([.-]+).?|([^.-]+)/g,function(i,s,f){i=1;return f?' ':t.charAt(eval(s.replace(/./g,\"i=i*2-~$&1;\")))||'?'})}","size":139,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1072010/564860473b16e2a812f77b66e1baa02736d48b5f/test.html","content":"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\">\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n\t\t<title>demorse140 demo</title>\n\t\t<style type=\"text/css\">\n\t\t\t#message,\n\t\t\t#raw {\n\t\t\t\tborder: solid gray 1px;\n\t\t\t\tpadding: 3px;\n\t\t\t\ttext-align: right;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\toverflow: hidden;\n\t\t\t\theight: 1em;\n\t\t\t}\n\t\t\th1 {\n\t\t\t\tborder: solid gray 1px;\n\t\t\t\tbackground: lightgrey;\n\t\t\t\ttext-align: center;\n\t\t\t\tfont: normal normal normal 18px 'Tahoma', sans-serif;\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<h1>Use space key</h1>\n\t\t<pre id=\"message\"></pre>\n\t\t<pre id=\"raw\"></pre>\n\t\t\n\t\t<script type=\"text/javascript\">\n\t\t\tvar demorse = function(s,t){return s.replace(/([.-]+).?|([^.-]+)/g,function(i,s,f){i=1;return f?' ':t.charAt(eval(s.replace(/./g,\"i=i*2-~$&1;\")))||'?'})}\n\t\t\tvar morseTable = \"??TEMNAIOGKDWRUS??QZYCXBJP?L?FVH09?8???7???????61???????2???3?45\"\n\t\t</script>\n\t\t<script type=\"text/javascript\">\n\t\t\tvar keyState;\n\t\t\tvar morseMessage = \".---- ....- ----- -... -.-- - . ...\";\n\t\t\tvar lastDown = 0;\n\t\t\tvar lastUp = 0;\n\t\t\tvar ditLength = 200;\n\t\t\t\n\t\t\tfunction keyStateChange(e){\n\t\t\t\tif (e.keyCode != 0x20) return;\n\n\t\t\t\tif (!keyState && e.type==\"keydown\"){\n\t\t\t\t\tkeyState = 1;\n\t\t\t\t\tlastDown = +new Date;\n\t\t\t\t\tvar timeDiff = (lastDown - lastUp) / ditLength;\n\t\t\t\t\tif (timeDiff >= 3){\n\t\t\t\t\t\tmorseMessage += \" \";\n\t\t\t\t\t};\n\t\t\t\t\tif (timeDiff >= 7){\n\t\t\t\t\t\tmorseMessage += \" \";\n\t\t\t\t\t};\n\t\t\t\t\t\n\t\t\t\t} else if (keyState && e.type==\"keyup\"){\n\t\t\t\t\tkeyState = 0;\n\t\t\t\t\tlastUp = +new Date;\n\t\t\t\t\tif ((lastUp - lastDown) / ditLength >= 3){\n\t\t\t\t\t\tmorseMessage += \"-\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmorseMessage += \".\";\n\t\t\t\t\t};\n\t\t\t\t} else return;\n\t\t\t\tupdateView()\n\t\t\t};\n\t\t\tif (document.addEventListener){\n\t\t\t\tdocument.addEventListener(\"keyup\", keyStateChange, true);\n\t\t\t\tdocument.addEventListener(\"keydown\", keyStateChange, true);\n\t\t\t} else if (document.attachEvent) {\n\t\t\t\tdocument.attachEvent(\"onkeyup\", keyStateChange, true);\n\t\t\t\tdocument.attachEvent(\"onkeydown\", keyStateChange, true);\n\t\t\t}\n\t\t\t\n\t\t\tvar rawField = document.getElementById(\"raw\");\n\t\t\tvar messageField = document.getElementById(\"message\");\n\t\t\tfunction updateView(){\n\t\t\t\trawField.innerHTML = \"\";\n\t\t\t\trawField.appendChild(document.createTextNode(morseMessage));\n\t\t\t\trawField.scrollLeft = rawField.scrollWidth;\n\t\t\t\tmessageField.innerHTML = \"\";\n\t\t\t\tmessageField.appendChild(document.createTextNode(demorse(morseMessage, morseTable)));\n\t\t\t\tmessageField.scrollLeft = messageField.scrollWidth;\n\t\t\t};\n\t\t\tupdateView();\n\t\t</script>\n\t\t\n\t\n\t</body>\n</html>","size":2619,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1072010/8b67de63660e4b83a40fa417c3ccca7393ea295a/package.json","content":"{\n \"name\": \"deMorse\",\n\n \"description\": \"Translates Morse code into readable text\",\n\n \"keywords\": [\n \"morse\"\n ]\n}","size":119,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/subzey","login":"subzey","id":810582},"url":"https://api.github.com/gists/1072010","description":"deMorse: Morse code → text","public":true,"comments":6,"history":[{"user":{"avatar_url":"https://secure.gravatar.com/avatar/ac8a5e8739b75bda6567a4630b91dd82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/subzey","login":"subzey","id":810582},"url":"https://api.github.com/gists/1072010/26b3c2e7d8347206c5ff53b50dd7c61fe07979bf","committed_at":"2011-07-08T14:54:54Z","change_status":{"deletions":58,"additions":145,"total":203},"version":"26b3c2e7d8347206c5ff53b50dd7c61fe07979bf"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"e69917d0323336a4cb552f60484b73c09eb538ee"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/a811e92efd1c0ae72be6dc9a95c4fcf1598134dd","committed_at":"2011-05-25T11:57:53Z","change_status":{"deletions":8,"additions":8,"total":16},"version":"a811e92efd1c0ae72be6dc9a95c4fcf1598134dd"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/80a276faf6c6d20ddddf0a6976f251113e82182c","committed_at":"2011-05-23T08:25:12Z","change_status":{"deletions":21,"additions":14,"total":35},"version":"80a276faf6c6d20ddddf0a6976f251113e82182c"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1072010/960fcc2cd42c2343f8abda98353165bf73f237f1","committed_at":"2011-05-23T08:18:48Z","change_status":{"deletions":4,"additions":3,"total":7},"version":"960fcc2cd42c2343f8abda98353165bf73f237f1"}],"html_url":"https://gist.github.com/1072010","git_pull_url":"git://gist.github.com/1072010.git","git_push_url":"git@gist.github.com:1072010.git","id":"1072010","updated_at":"2011-07-08T14:54:54Z","created_at":"2011-07-08T14:52:42Z"}
View
1 data/entries/1075080.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1127016","id":"1127016","updated_at":"2011-08-05T06:24:35Z","created_at":"2011-08-05T06:24:35Z"},{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1129139","id":"1129139","updated_at":"2011-08-06T07:33:13Z","created_at":"2011-08-06T07:33:13Z"}],"files":{"annotated.js":{"content":"function(\n a, // the template string\n c // the values\n){\n return a.replace(/{ *([^} ]+) *}/g, // searches for { variable_name } to replace\n function( // the replacer function\n b, // no use here. it holds the entire \"{ variable_name }\" string \n a // we will use this instead, it holds \"variable_name\"\n ){\n b=c; // re-assign the placeholder to values\n a.replace(/[^.]+/g,function(a){ // find all the key names\n b=b[a] // one by one until it's reduced to the one we are looking for\n });\n return b // return this value to be replaced\n }\n )\n}\n","size":590,"raw_url":"https://gist.github.com/raw/1075080/3ec1796654f769cab61521f9342fa06c3fc0e88f/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Haochi Chen <http://ihaochi.com>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n","size":486,"raw_url":"https://gist.github.com/raw/1075080/03ffe8d6fb885b44b335448fc8ff587ebe705c8d/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"Tofu is a logic-less, tweet-size (minified) JavaScript templating engine similar to [mustache.js](https://github.com/janl/mustache.js), except that tofu is true logic-less.\n\n## Usage\nTofu takes two parameters: a string as template, and a object as values. Variables inside the template are surrounded by a pair of curly braces.\n\n`tofu(\"{ Ich } am { ein } Berliner\", { Ich: \"I\", ein: \"a\" });` will return `I am a Berliner`.\n\nYou can access nested object values through the familar dot notation that JavaScript uses, so you can do something like\n\n tofu(\"Welcome to { place.name }! The current temperature is { place.temperature.magnitude } degrees { place.temperature.unit }.\", { \n place: {\n name: \"Hong Kong\",\n temperature: {\n magnitude: 20,\n unit : \"Celcius\"\n }\n }\n });\n\nand it will return `Welcome to Hong Kong! The current temperature is 20 degrees Celcius.`\n\n## Gotchas\nThere aren't really any gotchas, but I will just put it here.\n\n1. I have made the key names for the values object is very forgiving, so you can write something like `tofu(\"{ *** }\", { \"***\": \"Hello, World!\"})`. It should be able to accept any string (including symbols and non-Latin characters) as long as it doesn't include spaces or the closing curly brace (i.e. `}`). The reasoning is pretty obvious so I am not going to state it here. You can look at the source code for the exact regular expression. My empirical research shows that you won't have to worry about it 99.9999999% of the time. As a general rule of thumb, pretend like you are accessing a JavaScript object using dot notation and you should be fine.\n\n## Why should you use Tofu?\nTofu is fast, tiny, and gets the job done if you don't need the fancy conditional and enumerable sections that mustache offers.\n","size":1803,"raw_url":"https://gist.github.com/raw/1075080/be31d5afa9ee56e6793a188106d69b8bb3755519/README.md","filename":"README.md"},"index.js":{"content":"function(a,c){return a.replace(/{ *([^} ]+) *}/g,function(b,a){b=c;a.replace(/[^.]+/g,function(a){b=b[a]});return b})}\n","size":119,"raw_url":"https://gist.github.com/raw/1075080/1fabb9f40038e379482ab1eb526300d67f773780/index.js","filename":"index.js"},"test.html":{"content":"<!DOCTYPE html5>\n<html>\n<head>\n <link rel=\"stylesheet\" href=\"http://code.jquery.com/qunit/git/qunit.css\" type=\"text/css\" media=\"screen\" />\n <script src=\"http://code.jquery.com/jquery-latest.js\"></script>\n <script src=\"http://code.jquery.com/qunit/git/qunit.js\"></script>\n <script>\n var tofu = function(a,c){return a.replace(/{ *([^} ]+) *}/g,function(b,a){b=c;a.replace(/[^.]+/g,function(a){b=b[a]});return b})};\n </script>\n <script>\n $(document).ready(function(){\n test(\"Simple object test\", function() {\n equals(\"I am a Berliner\", tofu(\"{Ich} am {ein} Berliner\", {Ich: \"I\", ein: \"a\"}));\n });\n\n module(\"Nested object values\");\n test(\"Simple test\", function() {\n var expected_message = \"Welcome to Hong Kong! The current temperature is 20 degrees Celcius.\"\n , template = \"Welcome to { place.name }! The current temperature is { place.temperature.magnitude } degrees { place.temperature.unit }.\"\n , rendered_message = tofu(template, {\n place: {\n name: \"Hong Kong\",\n temperature: {\n magnitude: 20,\n unit : \"Celcius\"\n }\n }\n });\n equals(expected_message, rendered_message);\n });\n test(\"Multiple occurances\", function(){\n var expected_message = \"A rose is a rose is a rose\"\n , rendered_message = tofu(\"A { flower } is a { flower } is a { flower }\", { flower: \"rose\" });\n\n equals(expected_message, rendered_message);\n });\n\n module(\"Fancy key names\");\n test(\"Invalid JavaScript variable name\", function(){\n var expected_message = \"Tofu is yummy.\"\n , rendered_message = tofu(\"{ #@! } is { *** }.\", { \"#@!\": \"Tofu\", \"***\": \"yummy\" });\n\n equals(expected_message, rendered_message);\n });\n test(\"Accented Latin characters\", function(){\n var expected_message = \"Tofu is yummy.\"\n , rendered_message = tofu(\"{ á } is { ǽ }.\", { \"á\": \"Tofu\", \"ǽ\": \"yummy\" });\n\n equals(expected_message, rendered_message);\n });\n test(\"Asian characters\", function(){\n var expected_message = \"Hong Kong is part of China.\"\n , rendered_message = tofu(\"{ 香港 } is part of { 中國 }.\", { \"香港\": \"Hong Kong\", \"中國\": \"China\" });\n\n equals(expected_message, rendered_message);\n });\n\n module(\"Misc.\");\n test(\"Make sure the outgoing values are the same as the incoming values\", function(){\n var expected_message = \"What does a cat do? It meows!\",\n template = \"What does a { animal.species.name } do? It { animal.species.action }!\",\n values = { animal: {\n species: {\n name: \"cat\",\n action: \"meows\"\n },\n some_other_stuff: \"should still be here!\"\n } };\n\n equals(expected_message, tofu(template, values));\n equals(template, \"What does a { animal.species.name } do? It { animal.species.action }!\");\n deepEqual(values, { animal: {\n species: {\n name: \"cat\",\n action: \"meows\"\n },\n some_other_stuff: \"should still be here!\"\n } });\n });\n });\n </script>\n</head>\n<body>\n <h1 id=\"qunit-header\">QUnit</h1>\n <h2 id=\"qunit-banner\"></h2>\n <div id=\"qunit-testrunner-toolbar\"></div>\n <h2 id=\"qunit-userAgent\"></h2>\n <ol id=\"qunit-tests\"></ol>\n <div id=\"qunit-fixture\">test markup, will be hidden</div>\n</body>\n</html>\n","size":3365,"raw_url":"https://gist.github.com/raw/1075080/b0972e7fcca264afe339f17d3ba517e6cca2009b/test.html","filename":"test.html"},"package.json":{"content":"{\n \"name\": \"tofu\",\n\n \"description\": \"Tofu is a logic-less, tweet-size JavaScript templating engine.\",\n\n \"keywords\": [\n \"tofu\",\n \"template\"\n ]\n}\n","size":154,"raw_url":"https://gist.github.com/raw/1075080/8f216e6d8e02a841bc39c3202908a5bae5b765cb/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"html_url":"https://gist.github.com/1075080","url":"https://api.github.com/gists/1075080","description":"tofu: tiny templating engine","public":true,"comments":4,"history":[{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/fc4ff2d8a278444b511dec9e25e10c5c5b66cf65","change_status":{"deletions":21,"additions":15,"total":36},"committed_at":"2011-07-11T23:31:50Z","version":"fc4ff2d8a278444b511dec9e25e10c5c5b66cf65"},{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/2a8893c35c5a3924780e13cb6b1db1335c3cd0d6","change_status":{"deletions":26,"additions":24,"total":50},"committed_at":"2011-07-11T04:09:22Z","version":"2a8893c35c5a3924780e13cb6b1db1335c3cd0d6"},{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/2cba008b4f898e9eebfaf859bbe9006eb8044b9f","change_status":{"deletions":1,"additions":2,"total":3},"committed_at":"2011-07-11T02:50:34Z","version":"2cba008b4f898e9eebfaf859bbe9006eb8044b9f"},{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/0f22e00d6bebb2e1300667de6a221e4f81396c8d","change_status":{"deletions":4,"additions":28,"total":32},"committed_at":"2011-07-11T02:37:59Z","version":"0f22e00d6bebb2e1300667de6a221e4f81396c8d"},{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/ad71e9d2254a50645dc01bf96ce4a203357a1c55","change_status":{"deletions":26,"additions":17,"total":43},"committed_at":"2011-07-10T23:48:02Z","version":"ad71e9d2254a50645dc01bf96ce4a203357a1c55"},{"user":{"url":"https://api.github.com/users/haochi","login":"haochi","avatar_url":"https://secure.gravatar.com/avatar/72118291ae5796481afcb96a6ef1731f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":351715},"url":"https://api.github.com/gists/1075080/305b5fb382f1c8e104c349465ff7890db518d3de","change_status":{"deletions":33,"additions":104,"total":137},"committed_at":"2011-07-10T23:43:50Z","version":"305b5fb382f1c8e104c349465ff7890db518d3de"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1075080/97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1075080/df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1075080/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1075080/cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13},"committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"}],"git_pull_url":"git://gist.github.com/1075080.git","git_push_url":"git@gist.github.com:1075080.git","id":"1075080","fork_of":{"files":{"annotated.js":{"size":396,"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"size":483,"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"size":1457,"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","filename":"README.md"},"index.js":{"size":140,"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","filename":"index.js"},"test.html":{"size":393,"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","filename":"test.html"},"package.json":{"size":241,"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","filename":"package.json"}},"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"html_url":"https://gist.github.com/962807","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"updated_at":"2011-07-10T23:51:16Z","created_at":"2011-07-10T23:23:00Z"}
View
1 data/entries/1084501.json
@@ -0,0 +1 @@
+{"fork_of":{"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"forks":[],"files":{"annotated.js":{"raw_url":"https://gist.github.com/raw/1084501/fc5713067f53e4aa3c82b9d3fc225d411fd1dbe6/annotated.js","content":"function(\n a, // canvas node\n b, // commands array\n c, // command map\n d, // placeholder\n e // counter\n){\n for(\n // get 2d canvas context, initialize counter\n a=a.getContext('2d'), e=0;\n // get next command\n d=b[e++];\n )\n // long (string) or short (array) command?\n '' + d === d ?\n // string = evaluate long command in the scope of the context\n eval('with(a){' + d + '}') : \n // array = apply arguments to short command (get name from command map)\n a[c[d[0]]].apply(a, d.slice(1))\n}","size":528,"filename":"annotated.js"},"LICENSE.txt":{"raw_url":"https://gist.github.com/raw/1084501/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"filename":"LICENSE.txt"},"README.md":{"raw_url":"https://gist.github.com/raw/1084501/4fb95fae212443789670a06f60ee3168653a0703/README.md","content":"canvas tool\n===========\n\nWill iterate a command array to run each command on an canvas 2d context.\n\nUsage\n-----\nfn(canvas node, commands, commandmap)\n\ncommandmap = 'beginPath0closePath0moveTo0lineTo0quadraticCurveTo0bezierCurveTo0arcTo0rect0arc0fill0fillRect0stroke0clip0fillText0strokeText0measureText0drawImage0createImageData'.split(0);\n\nCommands can be issued either as long or short commands. Long commands are strings to be evaluated within the Canvas 2d context's scope, while short commands are arrays with the command number and the other arguments in order.\n\nShort Command numbers:\n\n* 0 = beginPath\n* 1 = closePath\n* 2 = moveTo\n* 3 = lineTo\n* 4 = quadraticCurveTo\n* 5 = bezierCurveTo\n* 6 = arcTo\n* 7 = rect\n* 8 = arc\n* 9 = fill\n* 10 = fillRect\n* 11 = stroke\n* 12 = clip\n* 13 = fillText\n* 14 = strokeText\n* 15 = measureText\n* 16 = drawImage\n* 17 = createImageData\n\nThis was done so we could render the logo of the 140byt.es homepage in canvas with a script that's smaller than 140bytes :)\n\nNevertheless, since we wanted to use as few external data as possible, we reduced this to a tool that only executed strings in the Canvas 2d-context and rendered bezierCurves:\n\n`function(a,b,c,d){a=a.getContext('2d');for(c in b)d=b[c],eval('with(a){'+(''+d!==d?((d[2]?'bezierCurveTo(':'moveTo(')+d+')'):d)+'}')}`","size":1311,"filename":"README.md"},"index.js":{"raw_url":"https://gist.github.com/raw/1084501/f1b30df8ddad0963ceb563a47d7c250bcd72f896/index.js","content":"function(a,b,c,d,e){for(a=a.getContext('2d'),e=0;d=b[e++];)''+d===d?eval('with(a){'+d+'}'):a[c[d[0]]].apply(a,d.slice(1))}","size":122,"filename":"index.js"},"test.html":{"raw_url":"https://gist.github.com/raw/1084501/0540e5ae57fb94b01d64603896e4dabe5545f49c/test.html","content":"<!DOCTYPE html> \n<title>Foo</title>\n<canvas id=\"ret\"></canvas>\n<div>Expected result: a red triangle</div>\n<script>\n // write a small example that shows off the API for your example\n // and tests it in one fell swoop.\n\n var myFunction = function(a,b,c,d,e){for(a=a.getContext('2d'),e=0;d=b[e++];)''+d===d?eval('with(a){'+d+'}'):a[c[d[0]]].apply(a,d.slice(1))},\n commandmap = 'beginPath0closePath0moveTo0lineTo0quadraticCurveTo0bezierCurveTo0arcTo0rect0arc0fill0fillRect0stroke0clip0fillText0strokeText0measureText0drawImage0createImageData'.split(0),\n testdata = ['canvas.width=canvas.height=150;fillStyle=\"#f00\"',[0],[3,100,10],[3,0,100],[3,15,15],[1],[9]];\n\n myFunction(document.getElementById('test'), testdata, commandmap);\n</script>\n<div>Expected Result: white on black 140byt.es logo</div>\n<canvas id=\"logocanvas\"></canvas>\n<script>\nvar Canvas = document.getElementById('logocanvas'),\nlogo=['canvas.width=200;canvas.height=32',[6,10],[8,10,11,10,11,16],[11,18,11,19,11,20],[23,10],[23,10.6,23,11.4,23,12],[23,18,33,18,33,12],[33,10],[33,12,33,18,33,20],[50,10],[43.6,10,43.6,20,50,20],[56.4,20,56.4,10,50,10],[67,6],[67,8,67,12,67,15],[67,22,77,22,77,15],[77,12,74,10,72,10],[69,10,68,10,67,10],[89,10],[89,11,89,12,89,13],[89,23,101,23,101,13],[101,13,101,12,101,10],[95,21],[95,22,95,23,95,26],[113,6],[113,8,113,10,113,12],[112.8,19.6,115,20.4,120,20],[115,10],[116,10,118,10,120,10],[132,20],[132,20,132,20,132,20],[154,14],[153,8,145,8,144,14],[144,21,150,20.2,154,20],[176,9],[165.8,8.6,166.6,12,166,12],[166,20],[176.2,20.6,175.4,18,176,18],'lineCap=\"round\";strokeStyle=\"#000\";lineWidth=11;stroke();strokeStyle=\"#fff\";lineWidth=4.2;stroke()'],\nlogoFunc = function(a,b,c,d){a=a.getContext('2d');for(c in b)d=b[c],''+d===d?eval('with(a){'+d+'}'):a[d[2]?'bezierCurveTo':'moveTo'].apply(a,d)};\nlogoFunc(Canvas, logo);\n</script>","size":1849,"filename":"test.html"},"package.json":{"raw_url":"https://gist.github.com/raw/1084501/bce267de05237cf130d8f336326e18adf2ecaed7/package.json","content":"{\n \"name\": \"canvasTool\",\n\n \"description\": \"Tool to do about everything that's possible in canvas using a small data format\",\n\n \"keywords\": [\n \"html5\",\n \"canvas\",\n \"2d\",\n \"drawing\"\n ]\n}","size":200,"filename":"package.json"}},"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1084501","description":"canvas tool","public":true,"comments":0,"history":[{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1084501/daede5d04359881493ed353cdb9d54ef4c89744e","committed_at":"2011-07-18T15:58:45Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"daede5d04359881493ed353cdb9d54ef4c89744e"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1084501/0c72f127efd409b76f45413f3fee2e23c17415f9","committed_at":"2011-07-18T15:58:15Z","change_status":{"deletions":1,"additions":13,"total":14},"version":"0c72f127efd409b76f45413f3fee2e23c17415f9"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1084501/69dcc20a025519fb2d77370680e594ebca061f76","committed_at":"2011-07-15T11:29:31Z","change_status":{"deletions":18,"additions":18,"total":36},"version":"69dcc20a025519fb2d77370680e594ebca061f76"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/atk","login":"atk","id":220405},"url":"https://api.github.com/gists/1084501/32b4d4df9f3cb79e63197257b9b405b856aa77f8","committed_at":"2011-07-15T11:28:01Z","change_status":{"deletions":51,"additions":65,"total":116},"version":"32b4d4df9f3cb79e63197257b9b405b856aa77f8"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","change_status":{"deletions":7,"additions":5,"total":12},"version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","change_status":{"deletions":0,"additions":1,"total":1},"version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","change_status":{"deletions":1,"additions":1,"total":2},"version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","change_status":{"deletions":0,"additions":13,"total":13},"version":"cb7ce28cbcfb095a319f290d0632332f22d90c72"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","change_status":{"deletions":19,"additions":17,"total":36},"version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b"},{"user":{"avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/140bytes","login":"140bytes","id":777161},"url":"https://api.github.com/gists/1084501/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","change_status":{"deletions":6,"additions":6,"total":12},"version":"e69917d0323336a4cb552f60484b73c09eb538ee"}],"html_url":"https://gist.github.com/1084501","git_pull_url":"git://gist.github.com/1084501.git","git_push_url":"git@gist.github.com:1084501.git","id":"1084501","updated_at":"2011-07-15T11:28:01Z","created_at":"2011-07-15T11:15:36Z"}
View
1 data/entries/1084980.json
@@ -0,0 +1 @@
+{"forks":[{"user":{"url":"https://api.github.com/users/cmevans2","login":"cmevans2","avatar_url":"https://secure.gravatar.com/avatar/6f7328ef7295bc21e2c489e499e121a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":150755},"url":"https://api.github.com/gists/1129070","id":"1129070","updated_at":"2011-08-06T06:18:54Z","created_at":"2011-08-06T06:18:54Z"}],"files":{"annotated.js":{"content":"function(\n c, // code\n r // regexp\n){\n return c.replace(r, \n // use a replace callback\n function(\n f, // full match\n i // counter\n ){\n for(\n // initialize counter (with count of regexp arguments)\n i=7;\n // only continue until i is other than -1 (~i becomes 0) \n // and arguments[i] is not present (!'' becomes true coerces to 1),\n // decrease counter\n ~i * !arguments[i--]\n // found something?\n return f ? \n // encapsulate it with a t-tag adding the corresponding class name\n '<t class=f' + i + '>' + \n // replace \"<\" so it will not be interpreted as a tag\n f.replace('<','&lt;') + \n '</t>' : \n // otherwise return empty string\n '';\n })\n}\n","size":776,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/1084980/c222147bb0b511e5ce0ebb9f0acd473829c9d365/annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":484,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/1084980/d9c87b40629cf7df4b00318d7e6fdb8dd9ccba6f/LICENSE.txt"},"README.md":{"content":"basic js syntax highlighting\n============================\n\nEncapsulates found regexp, strings, comments, keywords, predefined objects, numbers, brackets and operators into t-tags with a matching class.\n\nUsage\n-----\n\nRequires a RegExp to match regexp, strings, comments, keywords, predefined objects, numbers, brackets and operators, e.g.:\n\n`var re = /(?![\\d\\w]\\s*)(\\/[^\\/\\*][^\\n\\/]*\\/[gi])|(\".*?\"|'.*?')|(\\/\\/.*?\\n|\\/\\*[\\x00-\\xff\\u00\\uffff]*?\\*\\/)|(?:\\b)(abstract|boolean|break|byte|case|catch|char|class|const|continue|debugger|default|delete|do|double|else|enum|export|extends|false|final|finally|float|for|function|goto|if|implements|import|in|instanceof|int|interface|long|native|new|null|package|private|protected|public|return|short|static|super|switch|synchronized|this|throw|throws|transient|true|try|typeof|var|void|volatile|while|with)(?:\\b)|(?:\\b)(Array|Boolean|Date|Function|Math|Number|Object|RegExp|String|document|window|arguments)(?:\\b)|(\\d[\\d\\.eE]*)|([\\x28-\\x2b\\x2d\\x3a-\\x3f\\x5b\\x5d\\x5e\\x7b-\\x7e]+|\\x2f|(?=\\D)\\.(?=\\D))/g;`\n\nProvides a filter inserting t-tags* with the following classNames:\n\n* f-1 = regexp\n* f1 = string\n* f2 = comment\n* f3 = keyword\n* f4 = predefined object\n* f5 = number\n* f6 = operator, bracket\n\nremember to use innerText/firstChild.data instead of innerHTML to avoid its ability to convert HTML entities which cannot be matched here. \"&\" needs to be escaped beforehand, otherwise will be transformed on html reinsertion.\n\n\\* IE6-8 need a js shim to allow for the non-standard tag:\n`document.createElement('t');`\n\nThis was created with the 140byt.es homepage in mind, too :-)\n","size":1613,"filename":"README.md","raw_url":"https://gist.github.com/raw/1084980/1a3dc8350705d2b2ca4318a8436296fee48cca1d/README.md"},"index.js":{"content":"function(c,r){return c.replace(r,function(f,i){for(i=7;~i*!arguments[i--];);return i?'<t class=f'+i+'>'+f.replace('<','&lt;')+'</t>':''})}\n","size":139,"filename":"index.js","raw_url":"https://gist.github.com/raw/1084980/d03b970f727a39efad2429e311cb51cc34236d37/index.js"},"test.html":{"content":"<!DOCTYPE html> \n<title>small syntax highlighting</title>\n<style>\n/* syntax highlighting styles, shameless ripoff off github ;-) */\nbody{font-family:sans-serif;}\npre{color:#333;font-size:120%;background:#fff;width:100%;overflow-x:auto;padding:5px;}\n/* regexp */\n.f-1, .f-1 * {color:#092;}\n/* string */\n.f1,.f1 * {color:#d14;}\n/* comment */\n.f2,.f2 * {color:#999;font-style:italic;}\n/* keyword */\n.f3,.f3 * {color:#000;font-weight: 700;}\n/* predefined object */\n.f4,.f4 * {color:#08B;}\n/* number */\n.f5,.f5 * {color:#099;}\n/* bracket, operator */\n.f6 {color:#000;}\n</style>\n<div>\n<h2>Code with syntax highlighting:</h2>\n<pre id=\"ret\">/* index.js */\n\nfunction(c,r){return c.replace(r,function(f,i){for(i=7;~i*!arguments[i--];);return i?'&lt;t class=f'+i+'>'+f.replace('&lt;','&amp;lt;')+'&lt;/t>':''})}\n\n/* annotated.js */\n\nfunction(\n c, // code\n r // regexp\n){\n return c.replace(r, \n // use a replace callback\n function(\n f, // full match\n i // counter\n ){\n for(\n // initialize counter (with count of regexp arguments)\n i=6;\n // only continue until i is other than -1 (~i becomes 0) \n // and arguments[i] is not present (!'' becomes true coerces to 1),\n // decrease counter\n ~i * !arguments[i--]\n // found something?\n return f ? \n // encapsulate it with a t-tag adding the corresponding class name\n '&lt;t class=f' + i + '>' + \n // replace \"&lt;\" so it will not be interpreted as a tag\n f.replace('&lt;','&amp;lt;') + \n '&lt;/t>' : \n // otherwise return empty string\n '';\n })\n}\n\n</pre>\n</div>\n\n<script>\n // RegExp to detect regexp, strings, comments, keywords, predefined object, numbers and operators\n var re = /(?![\\d\\w]\\s*)(\\/[^\\/\\*][^\\n\\/]*\\/[gi])|(\".*?\"|'.*?')|(\\/\\/.*?\\n|\\/\\*[\\x00-\\xff\\u00\\uffff]*?\\*\\/)|(?:\\b)(abstract|boolean|break|byte|case|catch|char|class|const|continue|debugger|default|delete|do|double|else|enum|export|extends|false|final|finally|float|for|function|goto|if|implements|import|in|instanceof|int|interface|long|native|new|null|package|private|protected|public|return|short|static|super|switch|synchronized|this|throw|throws|transient|true|try|typeof|var|void|volatile|while|with)(?:\\b)|(?:\\b)(Array|Boolean|Date|Function|Math|Number|Object|RegExp|String|document|window|arguments)(?:\\b)|(\\d[\\d\\.eE]*)|([\\x28-\\x2b\\x2d\\x3a-\\x3f\\x5b\\x5d\\x5e\\x7b-\\x7e]+|\\x2f|(?=\\D)\\.(?=\\D))/g;\n // syntax highlighting filter\n var myFunction = function(c,r){return c.replace(r,function(f,i){for(i=7;~i*!arguments[i--];);return i?'<t class=f'+i+'>'+f.replace('<','&lt;')+'</t>':''})}\n // test it on the textual contents of the pre tag with the id \"ret\"\n var ret = document.getElementById( \"ret\" );\n ret.innerHTML = myFunction(ret.firstChild.data.replace(/&/g,'&amp;'),re);\n</script>\n","size":2831,"filename":"test.html","raw_url":"https://gist.github.com/raw/1084980/e53363b8a42887df0cc21977b275a4f2358f5b36/test.html"},"package.json":{"content":"{\n \"name\": \"jsSyntaxHighlighting\",\n\n \"description\": \"Basic JS Syntax highlighting in 138bytes\",\n\n \"keywords\": [\n \"JavaScript\",\n \"Syntax\",\n \"Highlighting\"\n ]\n}","size":171,"filename":"package.json","raw_url":"https://gist.github.com/raw/1084980/14b6432d6f4ed2d65a610b8a00af0a5986c3e04e/package.json"}},"html_url":"https://gist.github.com/1084980","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"git_pull_url":"git://gist.github.com/1084980.git","url":"https://api.github.com/gists/1084980","description":"basic js syntax highlighting","public":true,"comments":6,"git_push_url":"git@gist.github.com:1084980.git","history":[{"change_status":{"deletions":2,"additions":2,"total":4},"committed_at":"2011-07-22T23:43:15Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/52028d1900f22593e3f4490218cab469580ea585","version":"52028d1900f22593e3f4490218cab469580ea585"},{"change_status":{"deletions":26,"additions":70,"total":96},"committed_at":"2011-07-22T23:34:45Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/ea3efe2d19b073a73d5e53d23f34ab85e1b69a01","version":"ea3efe2d19b073a73d5e53d23f34ab85e1b69a01"},{"change_status":{"deletions":16,"additions":24,"total":40},"committed_at":"2011-07-17T09:58:35Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/b3b285625c5090caaaa8ba499bdb54b6232c210c","version":"b3b285625c5090caaaa8ba499bdb54b6232c210c"},{"change_status":{"deletions":7,"additions":7,"total":14},"committed_at":"2011-07-17T08:19:11Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/2a33e0072997ceebcfff992960f4e7320fded8ad","version":"2a33e0072997ceebcfff992960f4e7320fded8ad"},{"change_status":{"deletions":15,"additions":21,"total":36},"committed_at":"2011-07-16T20:05:13Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/345c56c5711a81dc851f7ae5a4e3b4736a863b38","version":"345c56c5711a81dc851f7ae5a4e3b4736a863b38"},{"change_status":{"deletions":16,"additions":20,"total":36},"committed_at":"2011-07-16T18:45:37Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/d9cc528ea91d93f2832ca09482bd6df286c4b937","version":"d9cc528ea91d93f2832ca09482bd6df286c4b937"},{"change_status":{"deletions":45,"additions":53,"total":98},"committed_at":"2011-07-15T16:25:25Z","user":{"url":"https://api.github.com/users/atk","login":"atk","avatar_url":"https://secure.gravatar.com/avatar/cf11b026211a14ae41613d83850f2a62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":220405},"url":"https://api.github.com/gists/1084980/a0e5842313b44ad1eb01b53cbaad1366c6aa8c2d","version":"a0e5842313b44ad1eb01b53cbaad1366c6aa8c2d"},{"change_status":{"deletions":7,"additions":5,"total":12},"committed_at":"2011-06-01T13:42:07Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1084980/97b4f64048ad388d12e0473b416d7e4893391f50","version":"97b4f64048ad388d12e0473b416d7e4893391f50"},{"change_status":{"deletions":0,"additions":1,"total":1},"committed_at":"2011-06-01T12:27:17Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1084980/df573b0569cc36550aa73fa9244286f24823fbb9","version":"df573b0569cc36550aa73fa9244286f24823fbb9"},{"change_status":{"deletions":1,"additions":1,"total":2},"committed_at":"2011-05-31T22:34:03Z","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1084980/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca"}],"fork_of":{"files":{"annotated.js":{"size":396,"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js"},"LICENSE.txt":{"size":483,"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt"},"README.md":{"size":1457,"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md"},"index.js":{"size":140,"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js"},"test.html":{"size":393,"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html"},"package.json":{"size":241,"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json"}},"html_url":"https://gist.github.com/962807","user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"git_pull_url":"git://gist.github.com/962807.git","url":"https://api.github.com/gists/962807","description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","public":true,"comments":45,"git_push_url":"git@gist.github.com:962807.git","id":"962807","updated_at":"2011-05-18T12:15:41Z","created_at":"2011-05-09T16:13:35Z"},"id":"1084980","updated_at":"2011-07-15T16:25:25Z","created_at":"2011-07-15T16:08:36Z"}
View
1 data/entries/1086384.json
@@ -0,0 +1 @@
+{"user":{"url":"https://api.github.com/users/tsaniel","login":"tsaniel","avatar_url":"https://secure.gravatar.com/avatar/6fdfb0c997ac1fe30bfe2d8da79ca364?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":898237},"fork_of":{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"description":"140byt.es -- Click ↑↑ fork ↑↑ to play!","url":"https://api.github.com/gists/962807","created_at":"2011-05-09T16:13:35Z","comments":45,"updated_at":"2011-05-18T12:15:41Z","public":true,"html_url":"https://gist.github.com/962807","git_pull_url":"git://gist.github.com/962807.git","id":"962807","files":{"annotated.js":{"filename":"annotated.js","raw_url":"https://gist.github.com/raw/962807/cd5c9947f41abdfd608a8995e02ba4a160bb2a08/annotated.js","size":396},"LICENSE.txt":{"filename":"LICENSE.txt","raw_url":"https://gist.github.com/raw/962807/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","raw_url":"https://gist.github.com/raw/962807/6832f0d91100cdb4373f2cfd42e12fc06532eac9/README.md","size":1457},"index.js":{"filename":"index.js","raw_url":"https://gist.github.com/raw/962807/c89ef021071af3b78eea79bcf0288a6e7873a62e/index.js","size":140},"test.html":{"filename":"test.html","raw_url":"https://gist.github.com/raw/962807/22ac2a8244f3a1fd650faf81dfdde9cbae7453e5/test.html","size":393},"package.json":{"filename":"package.json","raw_url":"https://gist.github.com/raw/962807/323b4aaa685a2bf7b15abdeed2fe03e11d63859f/package.json","size":241}},"git_push_url":"git@gist.github.com:962807.git"},"description":"UTF8 encoder","url":"https://api.github.com/gists/1086384","created_at":"2011-07-16T14:07:08Z","history":[{"user":{"url":"https://api.github.com/users/tsaniel","login":"tsaniel","avatar_url":"https://secure.gravatar.com/avatar/6fdfb0c997ac1fe30bfe2d8da79ca364?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":898237},"url":"https://api.github.com/gists/1086384/afaae13b55176eb6224450e399278bbbb5ef8a87","committed_at":"2011-07-19T10:44:25Z","version":"afaae13b55176eb6224450e399278bbbb5ef8a87","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/tsaniel","login":"tsaniel","avatar_url":"https://secure.gravatar.com/avatar/6fdfb0c997ac1fe30bfe2d8da79ca364?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":898237},"url":"https://api.github.com/gists/1086384/284fda44909fa3703f7833540f10cc0e08240094","committed_at":"2011-07-17T04:30:15Z","version":"284fda44909fa3703f7833540f10cc0e08240094","change_status":{"deletions":4,"additions":4,"total":8}},{"user":{"url":"https://api.github.com/users/tsaniel","login":"tsaniel","avatar_url":"https://secure.gravatar.com/avatar/6fdfb0c997ac1fe30bfe2d8da79ca364?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":898237},"url":"https://api.github.com/gists/1086384/539ec4f86394bafa1cb2fc8843703e83faf81981","committed_at":"2011-07-17T01:42:24Z","version":"539ec4f86394bafa1cb2fc8843703e83faf81981","change_status":{"deletions":2,"additions":2,"total":4}},{"user":{"url":"https://api.github.com/users/tsaniel","login":"tsaniel","avatar_url":"https://secure.gravatar.com/avatar/6fdfb0c997ac1fe30bfe2d8da79ca364?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":898237},"url":"https://api.github.com/gists/1086384/a2718d414ae04d7ae7c24d448af9b495220f5c9a","committed_at":"2011-07-16T15:01:51Z","version":"a2718d414ae04d7ae7c24d448af9b495220f5c9a","change_status":{"deletions":53,"additions":29,"total":82}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/97b4f64048ad388d12e0473b416d7e4893391f50","committed_at":"2011-06-01T13:42:07Z","version":"97b4f64048ad388d12e0473b416d7e4893391f50","change_status":{"deletions":7,"additions":5,"total":12}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/df573b0569cc36550aa73fa9244286f24823fbb9","committed_at":"2011-06-01T12:27:17Z","version":"df573b0569cc36550aa73fa9244286f24823fbb9","change_status":{"deletions":0,"additions":1,"total":1}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","committed_at":"2011-05-31T22:34:03Z","version":"2da28b4a103c6a4ca00d4d0fa808ee258b5d6eca","change_status":{"deletions":1,"additions":1,"total":2}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/cb7ce28cbcfb095a319f290d0632332f22d90c72","committed_at":"2011-05-31T18:15:34Z","version":"cb7ce28cbcfb095a319f290d0632332f22d90c72","change_status":{"deletions":0,"additions":13,"total":13}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","committed_at":"2011-05-31T18:10:31Z","version":"a1fcbcb83329294f8afe9b71c132790e0c1f7d8b","change_status":{"deletions":19,"additions":17,"total":36}},{"user":{"url":"https://api.github.com/users/140bytes","login":"140bytes","avatar_url":"https://secure.gravatar.com/avatar/53e21508b6995fa42f2e034b87daa901?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","id":777161},"url":"https://api.github.com/gists/1086384/e69917d0323336a4cb552f60484b73c09eb538ee","committed_at":"2011-05-26T16:25:15Z","version":"e69917d0323336a4cb552f60484b73c09eb538ee","change_status":{"deletions":6,"additions":6,"total":12}}],"comments":6,"updated_at":"2011-07-16T15:01:51Z","public":true,"forks":[],"html_url":"https://gist.github.com/1086384","git_pull_url":"git://gist.github.com/1086384.git","id":"1086384","files":{"annotated.js":{"filename":"annotated.js","content":"function(\n a, // the text\n b, // String.fromCharCode\n c, // placeholder\n d, // placeholder\n e // placeholder\n){\n for (c=e=''; d=a.charCodeAt(c++); ) // get the Unicode value of the current character \n e += d < 128 ? // U+0000-U+007F\n b(d) : // 0xxxxxxx\n (d < 2048 ? // U+0080-U+07FF\n b(d >> 6 | 192) : // 110xxxxx\n b(d >> 12 | 224, d >> 6 & 63 | 128) // U+0800-U+FFFF 1110xxxx 10xxxxxx\n ) + b(d & 63 | 128); // 10xxxxxx\n return e;\n}","raw_url":"https://gist.github.com/raw/1086384/2b06e471a428fa9e4df577fd352d9daea6f116eb/annotated.js","size":472},"LICENSE.txt":{"filename":"LICENSE.txt","content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","raw_url":"https://gist.github.com/raw/1086384/dfb480a5038214d152544bddb412dfe2e8656413/LICENSE.txt","size":483},"README.md":{"filename":"README.md","content":"UTF8 encoder\n=========\n\nA simple UTF8 encoder.","raw_url":"https://gist.github.com/raw/1086384/9626468742758518473144380d160312723b3f65/README.md","size":46},"index.js":{"filename":"index.js","content":"function(a,b,c,d,e){for(c=0,e=\"\";d=a.charCodeAt(c++);)e+=d<128?b(d):(d<2048?b(d>>6|192):b(d>>12|224,d>>6&63|128))+b(d&63|128);return e}","raw_url":"https://gist.github.com/raw/1086384/8ca67097b74f35d2602c2f9fe8a43e6ff5f40657/index.js","size":135},"test.html":{"filename":"test.html","content":"<!DOCTYPE html> \n<title>UTF8 encode</title>\n<div>Expected value: <b>Normal text</b></div>\n<div>Actual value: <b id=\"ret\"></b></div>\n<script>\n\n var myFunction = function(a,b,c,d,e){for(c=0,e=\"\";d=a.charCodeAt(c++);)e+=d<128?b(d):(d<2048?b(d>>6|192):b(d>>12|224)+b(d>>6&63|128))+b(d&63|128);return e};\n\n document.getElementById( \"ret\" ).inne