Skip to content

Instantly share code, notes, and snippets.

@sebastien-p
Forked from 140bytes/LICENSE.txt
Created August 25, 2011 13:00
Show Gist options
  • Save sebastien-p/1170594 to your computer and use it in GitHub Desktop.
Save sebastien-p/1170594 to your computer and use it in GitHub Desktop.

Revisions

  1. Sebastien P. revised this gist Sep 20, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion annotated.js
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ function (
    d = a.charCodeAt(c++); // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    )

    b = b * 62 + d - [, 48, 29, 87][d >> 5];
    b = b * 62 + d - [, 48, 29, 87][d >> 5]; // See comments : https://gist.github.com/1170594#gistcomment-48129

    return b // positive base10 integer or '-1' if 'a' is not a base62 encoded string

  2. Sebastien P. revised this gist Sep 20, 2011. 3 changed files with 4 additions and 6 deletions.
    6 changes: 2 additions & 4 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -7,12 +7,10 @@ function (

    for (
    b = c = ( // 'false - 1' will return '-1' and 'true - 1' will return '0'
    a === (a += "") && // tests if 'a' is a string and then coerces 'a' to a string
    /^[a-z\d]+$/i.test(a) // tests if 'a' is a properly base62-encoded string
    a === (/\W|_|^$/.test(a += "") || a) // tests if 'a' is a properly base62-encoded string and coerces it to one
    ) - 1; // so, 'b' and 'c' are initialized with either '-1' or '0'

    d = a.charCodeAt(c++); // if 'a' is not a string, this part throws an error we don't want
    // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    d = a.charCodeAt(c++); // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    )

    b = b * 62 + d - [, 48, 29, 87][d >> 5];
    2 changes: 1 addition & 1 deletion index.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b}
    function(a,b,c,d){for(b=c=(a===(/\W|_|^$/.test(a+="")||a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b}
    2 changes: 1 addition & 1 deletion test.html
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    <div>Expected value: <b>3748986303764</b></div>
    <div>Actual value: <b id="ret"></b></div>
    <script>
    var base62decode = function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};
    var base62decode = function(a,b,c,d){for(b=c=(a===(/\W|_|^$/.test(a+="")||a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};

    document.getElementById("ret").innerHTML = base62decode("140bytes")
    </script>
  3. Sebastien P. revised this gist Sep 16, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    b62d = function (
    function (
    a, // base62 encoded string
    b, // placeholder for result
    c, // placeholder for iterator
  4. Sebastien P. revised this gist Sep 3, 2011. 2 changed files with 6 additions and 4 deletions.
    4 changes: 3 additions & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,8 @@
    "keywords": [
    "base62",
    "decode",
    "string"
    "string",
    "number",
    "integer"
    ]
    }
    6 changes: 3 additions & 3 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    <!DOCTYPE html>
    <title>Foo</title>
    <div>Expected value: <b>90</b></div>
    <div>Expected value: <b>3748986303764</b></div>
    <div>Actual value: <b id="ret"></b></div>
    <script>
    var myFunction = function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};
    var base62decode = function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};

    document.getElementById("ret").innerHTML = myFunction("1s")
    document.getElementById("ret").innerHTML = base62decode("140bytes")
    </script>
  5. Sebastien P. revised this gist Aug 30, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion annotated.js
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ b62d = function (
    ) - 1; // so, 'b' and 'c' are initialized with either '-1' or '0'

    d = a.charCodeAt(c++); // if 'a' is not a string, this part throws an error we don't want
    // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    )

    b = b * 62 + d - [, 48, 29, 87][d >> 5];
  6. Sebastien P. revised this gist Aug 30, 2011. 1 changed file with 16 additions and 11 deletions.
    27 changes: 16 additions & 11 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,22 @@
    function (
    a, // base62 encoded string
    b, // placeholder for result
    c, // placeholder for iterator
    d // placeholder for char code
    b62d = function (
    a, // base62 encoded string
    b, // placeholder for result
    c, // placeholder for iterator
    d // placeholder for char code
    ) {

    for (
    b = c = (a === (a += "") && /^[a-z\d]+$/i.test(a)) - 1;
    d = a.charCodeAt(c++);
    )
    for (
    b = c = ( // 'false - 1' will return '-1' and 'true - 1' will return '0'
    a === (a += "") && // tests if 'a' is a string and then coerces 'a' to a string
    /^[a-z\d]+$/i.test(a) // tests if 'a' is a properly base62-encoded string
    ) - 1; // so, 'b' and 'c' are initialized with either '-1' or '0'

    b = b * 62 + d - [, 48, 29, 87][d >> 5];
    d = a.charCodeAt(c++); // if 'a' is not a string, this part throws an error we don't want
    // if 'c' equals '-1', 'd' is 'NaN' which breaks the loop execution
    )

    return b // positive base10 integer or '-1' if 'a' is not a base62 encoded string
    b = b * 62 + d - [, 48, 29, 87][d >> 5];

    return b // positive base10 integer or '-1' if 'a' is not a base62 encoded string

    }
  7. Sebastien P. revised this gist Aug 26, 2011. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,6 @@
    <div>Expected value: <b>90</b></div>
    <div>Actual value: <b id="ret"></b></div>
    <script>
    // write a small example that shows off the API for your example
    // and tests it in one fell swoop.

    var myFunction = function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};

    document.getElementById("ret").innerHTML = myFunction("1s")
  8. Sebastien P. revised this gist Aug 26, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion annotated.js
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,6 @@ function (

    b = b * 62 + d - [, 48, 29, 87][d >> 5];

    return b
    return b // positive base10 integer or '-1' if 'a' is not a base62 encoded string

    }
  9. Sebastien P. revised this gist Aug 26, 2011. 3 changed files with 6 additions and 5 deletions.
    4 changes: 2 additions & 2 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    b62d = function (
    function (
    a, // base62 encoded string
    b, // placeholder for result
    c, // placeholder for iterator
    @@ -10,7 +10,7 @@ b62d = function (
    d = a.charCodeAt(c++);
    )

    b += (d - (d > 57 ? d < 91 ? 29 : 87 : 48)) * Math.pow(62, a.length - c);
    b = b * 62 + d - [, 48, 29, 87][d >> 5];

    return b

    1 change: 1 addition & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b}
    6 changes: 3 additions & 3 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    <!DOCTYPE html>
    <title>Foo</title>
    <div>Expected value: <b>undefined</b></div>
    <div>Expected value: <b>90</b></div>
    <div>Actual value: <b id="ret"></b></div>
    <script>
    // write a small example that shows off the API for your example
    // and tests it in one fell swoop.

    var myFunction = function(){ /* the code here should be identical to the entry. */ }
    var myFunction = function(a,b,c,d){for(b=c=(a===(a+="")&&/^[a-z\d]+$/i.test(a))-1;d=a.charCodeAt(c++);)b=b*62+d-[,48,29,87][d>>5];return b};

    document.getElementById( "ret" ).innerHTML = myFunction()
    document.getElementById("ret").innerHTML = myFunction("1s")
    </script>
  10. Sebastien P. revised this gist Aug 25, 2011. 5 changed files with 22 additions and 50 deletions.
    2 changes: 1 addition & 1 deletion LICENSE.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    Version 2, December 2004

    Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
    Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp

    Everyone is permitted to copy and distribute verbatim or modified
    copies of this license document, and changing it is allowed as long
    32 changes: 0 additions & 32 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,32 +0,0 @@
    140byt.es
    =========

    A tweet-sized, fork-to-play, community-curated collection of JavaScript.

    How to play
    -----------

    1. Click the ![Fork](https://d3nwyuy0nl342s.cloudfront.net/images/gist/buttons/fork_button.png) button above to fork this gist.
    2. Modify all the files to according to the rules below.
    3. Save your entry and tweet it up!

    Keep in mind that thanks to the awesome sensibilities of the GitHub team, gists are just repos. So feel free to clone yours and work locally for a more comfortable environment, and to allow commit messages.

    Rules
    -----
    All entries must exist in an `index.js` file, whose contents are

    1. an assignable, valid Javascript expression that
    2. contains no more than 140 bytes, and
    3. does not leak to the global scope.

    All entries must also be licensed under the [WTFPL](http://sam.zoy.org/wtfpl/) or equally permissive license.

    For more information
    --------------------

    See the [140byt.es](http://140byt.es) site for a showcase of entries (built itself using 140-byte entries!), and follow [@140bytes](http://twitter.com/140bytes) on Twitter.

    To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to [the wiki](https://github.com/jed/140bytes/wiki/Byte-saving-techniques).

    140byt.es is brought to you by [Jed Schmidt](http://jed.is), with help from Alex Kloss. It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/).
    25 changes: 16 additions & 9 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,17 @@
    function(){
    // make sure
    // to annotate
    // your code
    // so everyone
    // can learn
    // from it!
    // see jed's entries
    // for examples.
    b62d = function (
    a, // base62 encoded string
    b, // placeholder for result
    c, // placeholder for iterator
    d // placeholder for char code
    ) {

    for (
    b = c = (a === (a += "") && /^[a-z\d]+$/i.test(a)) - 1;
    d = a.charCodeAt(c++);
    )

    b += (d - (d > 57 ? d < 91 ? 29 : 87 : 48)) * Math.pow(62, a.length - c);

    return b

    }
    1 change: 0 additions & 1 deletion index.js
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    function(){/* Your entry, a useful, unique, and valid JavaScript expression that packs as much functionality into 140 bytes as possible. */}
    12 changes: 5 additions & 7 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,11 @@
    {
    "name": "theNameOfYourLibWhichMustBeAValidCamelCasedJavaScriptIdentifier",
    "name": "base62 decode",

    "description": "This should be a short description of your entry.",
    "description": "A JavaScript implementation of base62 decode.",

    "keywords": [
    "five",
    "descriptive",
    "keywords",
    "or",
    "fewer"
    "base62",
    "decode",
    "string"
    ]
    }
  11. @140bytes 140bytes revised this gist Jul 28, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ All entries must also be licensed under the [WTFPL](http://sam.zoy.org/wtfpl/) o
    For more information
    --------------------

    See the [140byt.es](http://140byt.es) for a showcase of entries built itself using 140-byte entries, and follow [@140bytes](http://twitter.com/140bytes) on Twitter.
    See the [140byt.es](http://140byt.es) site for a showcase of entries (built itself using 140-byte entries!), and follow [@140bytes](http://twitter.com/140bytes) on Twitter.

    To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to [the wiki](https://github.com/jed/140bytes/wiki/Byte-saving-techniques).

  12. @140bytes 140bytes revised this gist Jul 28, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -25,8 +25,8 @@ All entries must also be licensed under the [WTFPL](http://sam.zoy.org/wtfpl/) o
    For more information
    --------------------

    The [140byt.es](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter.
    See the [140byt.es](http://140byt.es) for a showcase of entries built itself using 140-byte entries, and follow [@140bytes](http://twitter.com/140bytes) on Twitter.

    To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to [the wiki](https://github.com/jed/140bytes/wiki/Byte-saving-techniques).

    140byt.es is brought to you by [Jed Schmidt](http://jed.is). It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/).
    140byt.es is brought to you by [Jed Schmidt](http://jed.is), with help from Alex Kloss. It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/).
  13. @140bytes 140bytes revised this gist Jun 1, 2011. 1 changed file with 5 additions and 7 deletions.
    12 changes: 5 additions & 7 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,12 @@
    <!DOCTYPE html>
    <body>
    <div>Expected value: <b>undefined</b></div>
    <div>Actual value: <b id="ret"></b></div>
    </body>
    <!DOCTYPE html>
    <title>Foo</title>
    <div>Expected value: <b>undefined</b></div>
    <div>Actual value: <b id="ret"></b></div>
    <script>
    // write a small example that shows off the API for your example
    // and tests it in one fell swoop.

    var myFunction = function(){ /* the code here should be identical to the entry. */ }
    var ret = myFunction()

    document.getElementById( "ret" ).innerHTML = ret
    document.getElementById( "ret" ).innerHTML = myFunction()
    </script>
  14. @140bytes 140bytes revised this gist Jun 1, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    <!DOCTYPE html>
    <body>
    <div>Expected value: <b>undefined</b></div>
    <div>Actual value: <b id="ret"></b></div>
  15. @140bytes 140bytes revised this gist May 31, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion test.html
    Original file line number Diff line number Diff line change
    @@ -9,5 +9,5 @@
    var myFunction = function(){ /* the code here should be identical to the entry. */ }
    var ret = myFunction()

    document.getElementById( "ret" ) = ret
    document.getElementById( "ret" ).innerHTML = ret
    </script>
  16. @140bytes 140bytes revised this gist May 31, 2011. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions test.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <body>
    <div>Expected value: <b>undefined</b></div>
    <div>Actual value: <b id="ret"></b></div>
    </body>
    <script>
    // write a small example that shows off the API for your example
    // and tests it in one fell swoop.

    var myFunction = function(){ /* the code here should be identical to the entry. */ }
    var ret = myFunction()

    document.getElementById( "ret" ) = ret
    </script>
  17. @140bytes 140bytes revised this gist May 31, 2011. 3 changed files with 17 additions and 19 deletions.
    17 changes: 9 additions & 8 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    function(){
    /* Rules:
    (1) anonymous function or IIFE // make sure
    (2) may execute immediately // to annotate
    (3) <=140 bytes // your code
    (4) no globals // so everyone
    (5) permissive license // can learn
    (6) have a good time! // from it!
    */}
    // make sure
    // to annotate
    // your code
    // so everyone
    // can learn
    // from it!
    // see jed's entries
    // for examples.
    }
    2 changes: 1 addition & 1 deletion index.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    function(){/******************************************************************************************************************************/}
    function(){/* Your entry, a useful, unique, and valid JavaScript expression that packs as much functionality into 140 bytes as possible. */}
    17 changes: 7 additions & 10 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,13 @@
    {
    // [REQUIRED] A name for your library.
    // This must match /^[a-z_]\w*$/i
    "name": "140bytes",
    "name": "theNameOfYourLibWhichMustBeAValidCamelCasedJavaScriptIdentifier",

    // [OPTIONAL] A description of your library, phrased as a verb predicate.
    // The gist description is used by default.
    "description": "Explain the 140byt.es rules.",
    "description": "This should be a short description of your entry.",

    // [OPTIONAL] Up to 5 keywords used for indexing.
    "keywords": [
    "140bytes",
    "master",
    "rules"
    "five",
    "descriptive",
    "keywords",
    "or",
    "fewer"
    ]
    }
  18. @140bytes 140bytes revised this gist May 26, 2011. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    function(){
    /* Rules:
    (1) anonymous function // make sure
    (2) may execute immediately // to annotate
    (3) <=140 bytes // your code
    (4) no globals // so everyone
    (5) permissive license // can learn
    (6) have a good time! // from it!
    (1) anonymous function or IIFE // make sure
    (2) may execute immediately // to annotate
    (3) <=140 bytes // your code
    (4) no globals // so everyone
    (5) permissive license // can learn
    (6) have a good time! // from it!
    */}
  19. @140bytes 140bytes revised this gist May 25, 2011. 3 changed files with 8 additions and 8 deletions.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Rules
    -----
    All entries must exist in an `index.js` file, whose contents are

    1. an assignable, valid Javascript expression, that
    1. an assignable, valid Javascript expression that
    2. contains no more than 140 bytes, and
    3. does not leak to the global scope.

    12 changes: 6 additions & 6 deletions annotated.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    function(){
    /* Rules:
    (1) anonymous function // make sure
    (2) may be self-executing // to annotate
    (3) <=140 bytes // your code
    (4) no globals // so everyone
    (5) MIT license // can learn
    (6) have a good time! // from it!
    (1) anonymous function // make sure
    (2) may execute immediately // to annotate
    (3) <=140 bytes // your code
    (4) no globals // so everyone
    (5) permissive license // can learn
    (6) have a good time! // from it!
    */}
    2 changes: 1 addition & 1 deletion index.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    function(){/*Rules: (1) anonymous function (2) may be self-executing (3) <=140 bytes (4) no globals (5) MIT license (6) have a good time!*/}
    function(){/******************************************************************************************************************************/}
  20. @140bytes 140bytes revised this gist May 23, 2011. 2 changed files with 14 additions and 21 deletions.
    33 changes: 13 additions & 20 deletions LICENSE.txt
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,13 @@
    Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE

    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    Version 2, December 2004

    Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>

    Everyone is permitted to copy and distribute verbatim or modified
    copies of this license document, and changing it is allowed as long
    as the name is changed.

    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

    0. You just DO WHAT THE FUCK YOU WANT TO.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ All entries must exist in an `index.js` file, whose contents are
    2. contains no more than 140 bytes, and
    3. does not leak to the global scope.

    All entries must also be licensed under a license as or more permitting than the MIT license.
    All entries must also be licensed under the [WTFPL](http://sam.zoy.org/wtfpl/) or equally permissive license.

    For more information
    --------------------
  21. @140bytes 140bytes revised this gist May 23, 2011. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -16,12 +16,11 @@ Rules
    -----
    All entries must exist in an `index.js` file, whose contents are

    1. a valid Javascript function expression, that
    2. optionally self-executes,
    1. an assignable, valid Javascript expression, that
    2. contains no more than 140 bytes, and
    3. does not pollute global scope.
    3. does not leak to the global scope.

    All entries must also be licensed under the MIT license.
    All entries must also be licensed under a license as or more permitting than the MIT license.

    For more information
    --------------------
  22. @140bytes 140bytes revised this gist May 22, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@ How to play
    2. Modify all the files to according to the rules below.
    3. Save your entry and tweet it up!

    Keep in mind that thanks to the awesome sensibilities of the GitHub team, gists are just repos. So feel free to clone yours and work locally for a more comfortable environment, and to allow commit messages.

    Rules
    -----
    All entries must exist in an `index.js` file, whose contents are
  23. @140bytes 140bytes revised this gist May 21, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -26,4 +26,6 @@ For more information

    The [140byt.es](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter.

    To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to [the wiki](https://github.com/jed/140bytes/wiki/Byte-saving-techniques).

    140byt.es is brought to you by [Jed Schmidt](http://jed.is). It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/).
  24. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@

    // [OPTIONAL] A description of your library, phrased as a verb predicate.
    // The gist description is used by default.
    "description": "Explain the 140byt.es rules."
    "description": "Explain the 140byt.es rules.",

    // [OPTIONAL] Up to 5 keywords used for indexing.
    "keywords": [
  25. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,16 @@
    {
    // [REQUIRED] A name for your library.
    // This must match /^[a-z_]\w*$/i
    "name": "140bytes",
    "keywords": [ "140bytes", "master", "rules" ]

    // [OPTIONAL] A description of your library, phrased as a verb predicate.
    // The gist description is used by default.
    "description": "Explain the 140byt.es rules."

    // [OPTIONAL] Up to 5 keywords used for indexing.
    "keywords": [
    "140bytes",
    "master",
    "rules"
    ]
    }
  26. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -24,4 +24,6 @@ All entries must also be licensed under the MIT license.
    For more information
    --------------------

    The [140byt.es](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter.
    The [140byt.es](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter.

    140byt.es is brought to you by [Jed Schmidt](http://jed.is). It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/).
  27. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -14,8 +14,8 @@ Rules
    -----
    All entries must exist in an `index.js` file, whose contents are

    1. a valid Javascript function expression, that is
    2. is optionally self-executing,
    1. a valid Javascript function expression, that
    2. optionally self-executes,
    2. contains no more than 140 bytes, and
    3. does not pollute global scope.

  28. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,20 @@ How to play
    -----------

    1. Click the ![Fork](https://d3nwyuy0nl342s.cloudfront.net/images/gist/buttons/fork_button.png) button above to fork this gist.
    2. Modify all the files to according to the rules and style guide below.
    2. Modify all the files to according to the rules below.
    3. Save your entry and tweet it up!

    Rules
    -----
    All entries must exist in an `index.js` file, whose contents are

    1. a valid Javascript function expression, that is
    2. is optionally self-executing,
    2. contains no more than 140 bytes, and
    3. does not pollute global scope.

    All entries must also be licensed under the MIT license.

    For more information
    --------------------

  29. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    140byt.es
    =========

    All the Codes that Fits in Tweet
    A tweet-sized, fork-to-play, community-curated collection of JavaScript.

    How to play
    -----------
    @@ -12,4 +12,5 @@ How to play

    For more information
    --------------------
    The 140byt.es site launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter, and keep you eye on http://140byt.es.

    The [140byt.es](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter.
  30. @140bytes 140bytes revised this gist May 18, 2011. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,15 @@
    140byt.es
    =========
    =========

    All the Codes that Fits in Tweet

    How to play
    -----------

    1. Click the ![Fork](https://d3nwyuy0nl342s.cloudfront.net/images/gist/buttons/fork_button.png) button above to fork this gist.
    2. Modify all the files to according to the rules and style guide below.
    3. Save your entry and tweet it up!

    For more information
    --------------------
    The 140byt.es site launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter, and keep you eye on http://140byt.es.