Permalink
Browse files

Raw sled.com dump after initial trademark scrub

  • Loading branch information...
1 parent 2419852 commit 5a557ce63ead85ef632355c2d89b71880b399894 @hueniverse hueniverse committed Aug 10, 2011
Showing with 28,243 additions and 0 deletions.
  1. +24 −0 LICENSE
  2. +4 −0 Readme.md
  3. +2 −0 api/.gitignore
  4. +145 −0 api/base64.js
  5. +311 −0 api/batch.js
  6. +814 −0 api/db.js
  7. +264 −0 api/details.js
  8. +517 −0 api/email.js
  9. +73 −0 api/error.js
  10. +92 −0 api/index.js
  11. +247 −0 api/invite.js
  12. +326 −0 api/last.js
  13. +79 −0 api/log.js
  14. +19 −0 api/package.json
  15. +63 −0 api/rules.js
  16. +768 −0 api/server.js
  17. +647 −0 api/session.js
  18. +1,313 −0 api/sled.js
  19. +186 −0 api/sort.js
  20. +272 −0 api/storage.js
  21. +422 −0 api/stream.js
  22. +236 −0 api/suggestions.js
  23. +484 −0 api/task.js
  24. +17 −0 api/test.js
  25. +86 −0 api/tips.js
  26. +1,741 −0 api/user.js
  27. +189 −0 api/utils.js
  28. +27 −0 api/vault.js
  29. +4 −0 clients/view/client.json
  30. +5 −0 clients/view/client.json.example
  31. +2,281 −0 clients/view/css/styles.css
  32. BIN clients/view/images/background.png
  33. BIN clients/view/images/colage.png
  34. BIN clients/view/images/line.png
  35. BIN clients/view/images/mountains.png
  36. BIN clients/view/images/suggestions-loading.gif
  37. BIN clients/view/images/tasks-loading.gif
  38. BIN clients/view/images/tour-assign.png
  39. BIN clients/view/images/tour-assigned.png
  40. BIN clients/view/images/tour-checkbox.png
  41. BIN clients/view/images/tour-comments.png
  42. +385 −0 clients/view/index.html
  43. +265 −0 clients/view/js/authentication.js
  44. +462 −0 clients/view/js/calendar.js
  45. +692 −0 clients/view/js/contacts.js
  46. +435 −0 clients/view/js/dnd.js
  47. +33 −0 clients/view/js/global.js
  48. +52 −0 clients/view/js/history.js
  49. +454 −0 clients/view/js/loadsled.js
  50. +236 −0 clients/view/js/mac.js
  51. +185 −0 clients/view/js/network.js
  52. +146 −0 clients/view/js/settings.js
  53. +6 −0 clients/view/js/sled-load-min.js
  54. +936 −0 clients/view/js/sled-menu.js
  55. +17 −0 clients/view/js/sled-overlay-extras.js
  56. +783 −0 clients/view/js/sled.js
  57. +407 −0 clients/view/js/sledlist.js
  58. +2 −0 clients/view/js/socket.io.min.js
  59. +498 −0 clients/view/js/stream.js
  60. +159 −0 clients/view/js/suggestionlist.js
  61. +1,458 −0 clients/view/js/tasklist.js
  62. +438 −0 clients/view/js/templates.js
  63. +134 −0 clients/view/js/tips.js
  64. +521 −0 clients/view/js/tooltips.js
  65. +195 −0 clients/view/js/tour.js
  66. +487 −0 clients/view/js/uiutils.js
  67. +110 −0 clients/view/js/user.js
  68. +2 −0 web/.gitignore
  69. +171 −0 web/account.js
  70. +143 −0 web/api.js
  71. +145 −0 web/base64.js
  72. +63 −0 web/client.js
  73. +57 −0 web/email.js
  74. +31 −0 web/error.js
  75. +31 −0 web/home.js
  76. +64 −0 web/index.js
  77. +81 −0 web/log.js
  78. +654 −0 web/login.js
  79. +99 −0 web/misc.js
  80. +19 −0 web/package.json
  81. +527 −0 web/server.js
  82. +419 −0 web/session.js
  83. +265 −0 web/signup.js
  84. +1,189 −0 web/static/css/base.css
  85. +169 −0 web/static/css/node-menunav-core.css
  86. BIN web/static/favicon.ico
  87. BIN web/static/images/404.png
  88. BIN web/static/images/500.png
  89. BIN web/static/images/ajax-loader.gif
  90. BIN web/static/images/background.png
  91. BIN web/static/images/black-35.png
  92. BIN web/static/images/button_verified.png
  93. BIN web/static/images/button_verify_over.png
  94. BIN web/static/images/button_verify_up.png
  95. BIN web/static/images/buttons_connect.png
  96. BIN web/static/images/buttons_disconnect.png
  97. BIN web/static/images/colage.png
  98. BIN web/static/images/facebook-footer.png
  99. BIN web/static/images/gradient-dev.png
  100. BIN web/static/images/gray-95.png
  101. BIN web/static/images/icon_facebook.png
  102. BIN web/static/images/icon_twitter.png
  103. BIN web/static/images/icon_yahoo.png
  104. BIN web/static/images/logo.png
  105. BIN web/static/images/mobile/bg.png
  106. BIN web/static/images/mobile/box.png
  107. BIN web/static/images/mobile/button_facebook.png
  108. BIN web/static/images/mobile/button_twitter.png
  109. BIN web/static/images/mobile/button_yahoo.png
  110. BIN web/static/images/mobile/logo.png
  111. BIN web/static/images/mountains-dev.png
  112. BIN web/static/images/mountains.png
  113. BIN web/static/images/snow-dev.png
  114. BIN web/static/images/twitter-footer.png
  115. BIN web/static/images/unknown.png
  116. BIN web/static/images/warning.png
  117. BIN web/static/images/withstupid.png
  118. +2 −0 web/static/robots.txt
  119. +572 −0 web/static/scripts/base.js
  120. +236 −0 web/static/scripts/mac.js
  121. +1 −0 web/static/view
  122. +14 −0 web/test.js
  123. +53 −0 web/tos.js
  124. +98 −0 web/utils.js
  125. +56 −0 web/vault.js
  126. +27 −0 web/views/about.jade
  127. +66 −0 web/views/account-emails.jade
  128. +58 −0 web/views/account-linked.jade
  129. +35 −0 web/views/account-profile.jade
  130. +1,139 −0 web/views/developer.jade
  131. +4 −0 web/views/error.jade
  132. +42 −0 web/views/feedback.jade
  133. +42 −0 web/views/home.jade
  134. +24 −0 web/views/invite-in.jade
  135. +15 −0 web/views/invite-invalid.jade
  136. +24 −0 web/views/invite-out.jade
  137. +72 −0 web/views/layout.jade
  138. +49 −0 web/views/login.jade
  139. +81 −0 web/views/mobile.jade
  140. +27 −0 web/views/oauth.jade
  141. +45 −0 web/views/register.jade
  142. +14 −0 web/views/stupid.jade
  143. +145 −0 web/views/test.jade
  144. +19 −0 web/views/tos.jade
View
24 LICENSE
@@ -0,0 +1,24 @@
+Copyright (c) 2011, Yahoo, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Yahoo! Inc. nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
4 Readme.md 100644 → 100755
@@ -0,0 +1,4 @@
+# About
+
+This is a raw code dump of the discontinued experimental Yahoo! Sled project - a collaborative list making tool built using JS and Node.js.
+For more information about the project and latest updates go to: https://github.com/hueniverse/postmile.
View
@@ -0,0 +1,2 @@
+node_modules/
+cert/
View
@@ -0,0 +1,145 @@
+/*
+* Copyright (c) 2011 Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License.
+* See LICENSE file included with this code project for license terms.
+*/
+
+// Adapted from: Version 1.0 12/25/99 Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp>
+
+// Declare internals
+
+var internals = {
+
+ encodeChars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
+ decodeChars: [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
+ -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
+ -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1]
+};
+
+
+// Base64 encode
+
+exports.encode = function (string) {
+
+ var c1, c2, c3;
+
+ var len = string.length;
+ var i = 0;
+ var result = '';
+
+ while (i < len) {
+
+ c1 = string.charCodeAt(i++) & 0xff;
+
+ if (i === len) {
+
+ result += internals.encodeChars.charAt(c1 >> 2);
+ result += internals.encodeChars.charAt((c1 & 0x3) << 4);
+ result += '===';
+ break;
+ }
+
+ c2 = string.charCodeAt(i++);
+
+ if (i === len) {
+
+ result += internals.encodeChars.charAt(c1 >> 2);
+ result += internals.encodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));
+ result += internals.encodeChars.charAt((c2 & 0xF) << 2);
+ result += '=';
+ break;
+ }
+
+ c3 = string.charCodeAt(i++);
+
+ result += internals.encodeChars.charAt(c1 >> 2);
+ result += internals.encodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));
+ result += internals.encodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >> 6));
+ result += internals.encodeChars.charAt(c3 & 0x3F);
+ }
+
+ return result;
+};
+
+
+// Base64 decode
+
+exports.decode = function (string) {
+
+ var c1, c2, c3, c4;
+
+ var len = string.length;
+ var i = 0;
+ var result = '';
+
+ while (i < len) {
+
+ do {
+
+ c1 = internals.decodeChars[string.charCodeAt(i++) & 0xff];
+ }
+ while (i < len && c1 === -1);
+
+ if (c1 === -1) {
+
+ break;
+ }
+
+ do {
+
+ c2 = internals.decodeChars[string.charCodeAt(i++) & 0xff];
+ }
+ while (i < len && c2 === -1);
+
+ if (c2 === -1) {
+
+ break;
+ }
+
+ result += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
+
+ do {
+
+ c3 = string.charCodeAt(i++) & 0xff;
+ if (c3 === 61) {
+
+ return result;
+ }
+
+ c3 = internals.decodeChars[c3];
+ }
+ while (i < len && c3 === -1);
+
+ if (c3 === -1) {
+
+ break;
+ }
+
+ result += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
+
+ do {
+
+ c4 = string.charCodeAt(i++) & 0xff;
+ if (c4 === 61) {
+
+ return result;
+ }
+
+ c4 = internals.decodeChars[c4];
+ }
+ while (i < len && c4 === -1);
+
+ if (c4 === -1) {
+
+ break;
+ }
+
+ result += String.fromCharCode(((c3 & 0x03) << 6) | c4);
+ }
+
+ return result;
+};
Oops, something went wrong.

0 comments on commit 5a557ce

Please sign in to comment.