-
-
Save dciccale/1119280 to your computer and use it in GitHub Desktop.
Revisions
-
dciccale revised this gist
Sep 12, 2012 . 4 changed files with 27 additions and 35 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,17 @@ function( a, // elements b, // elements length c // each dom element and then its value ) { // check if element is an array of elements a=a.type ? [a] : a; for(b=a.length;b--&&!c;) { // save reference to the element c=a[b] // get the value of the form element c=/di|b/.test(c.type) ? c.checked : !!c.value } // switch the bool value return!!c } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ function(b,c,a){b=b.type?[b]:b;for(c=b.length;c--&&!a;)a=b[c],a=/di|b/.test(a.type)?a.checked:!!a.value;return!!a} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ { "name": "FormValidator", "description": "Validate any form field", "keywords": [ "field", This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,14 @@ <!doctype html> <title>FormValidator</title> <script> var validate = function(b,c,a){b=b.type?[b]:b;for(c=b.length;c--&&!a;)a=b[c],a=/di|b/.test(a.type)?a.checked:!!a.value;return!!a}; </script> <p> <input type="text" id="text" /> <a href="#" onclick="alert(validate(document.getElementById('text')));return false">has value?</a> </p> <p> <select id="select"> <option value=""></option> @@ -20,29 +17,26 @@ </select> <a href="javascript:alert(validate(document.getElementById('select')))">has value?</a> </p> <p> <textarea id="textarea" rows="4" cols="50"></textarea> <a href="javascript:alert(validate(document.getElementById('textarea')))">has value?</a> </p> <p> <input type="password" id="password" /> <a href="javascript:alert(validate(document.getElementById('password')))">password has value?</a> </p> <p> <input type="checkbox" id="checkbox" /> <a href="javascript:alert(validate(document.getElementById('checkbox')))">is checked?</a> </p> <p> <input type="radio" name="radios" id="radio1" /> <input type="radio" name="radios" id="radio2" /> <input type="radio" name="radios" id="radio3" /> <input type="radio" name="radios" id="radio4" /> <a href="#" onclick="alert(validate(document.querySelectorAll('input[type=radio]')));return false">is any radio checked?</a> </p> -
dciccale revised this gist
Aug 2, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function a( // is an array of elements else { // loop the elements and call the validation function // maybe only useful for radios, maybe something can be done with the bytes left for(c=b.length;c--;) if(a( b[c] )) return!0 -
dciccale revised this gist
Aug 2, 2011 . No changes.There are no files selected for viewing
-
dciccale revised this gist
Aug 2, 2011 . 3 changed files with 9 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function a( // check for type (this will be true only if b is one element, else is an array) if(c=b.type) // test if type has either a d for raDio or a b checkBox return/d.|b/.test(c) ? b.checked : !!b.value // return wether is checked or has empty value // is an array of elements else { // loop the elements and call the validation function This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ function a(b,c){if(c=b.type)return/d.|b/.test(c)?b.checked:!!b.value; else for(c=b.length;c--;)if(a(b[c]))return!0;return!1} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ <!doctype html> <head> <title>Empty Fields Validation</title> <script> var validate = function a(b,c){if(c=b.type)return/d.|b/.test(c)?b.checked:!!b.value; else for(c=b.length;c--;)if(a(b[c]))return!0;return!1}; </script> </head> <body> @@ -26,6 +26,11 @@ <a href="javascript:alert(validate(document.getElementById('textarea')))">has value?</a> </p> <p> <input type="password" id="password" /> <a href="javascript:alert(validate(document.getElementById('password')))">password has value?</a> </p> <p> <input type="checkbox" id="checkbox" /> <a href="javascript:alert(validate(document.getElementById('checkbox')))">is checked?</a> -
dciccale revised this gist
Aug 2, 2011 . No changes.There are no files selected for viewing
-
dciccale revised this gist
Aug 2, 2011 . 6 changed files with 67 additions and 60 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 Denis Ciccale <http://webdecs.wordpress.com> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,32 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,19 @@ function a( b, // element(s) c // placeholder ) { // check for type (this will be true only if b is one element, else is an array) if(c=b.type) // test if type has either a d for raDio or a b checkBox return/d|b/.test(c) ? b.checked : !!b.value // return wether is checked or has empty value // is an array of elements else { // loop the elements and call the validation function // maybe only useful for radios, maybe something can be done with the 17b left for(c=b.length;c--;) if(a( b[c] )) return!0 // if none returned true, return false return!1 } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ function a(b,c){if(c=b.type)return/d|b/.test(c)?b.checked:!!b.value; else for(c=b.length;c--;)if(a(b[c]))return!0;return!1} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ { "name": "emptyFieldValidator", "description": "Validate most common form fields", "keywords": [ "field", "validation", "form", "validator" ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,43 @@ <!doctype html> <head> <title>Empty Field Validator</title> <script> var validate = function a(b,c){if(c=b.type)return/d|b/.test(c)?b.checked:!!b.value; else for(c=b.length;c--;)if(a(b[c]))return!0;return!1}; </script> </head> <body> <p> <input type="text" id="text" /> <a href="#" onclick="alert(validate(document.getElementById('text')));return false">has value?</a> </p> <p> <select id="select"> <option value=""></option> <option value="option_1">Option 1</option> <option value="option_2">Option 2</option> </select> <a href="javascript:alert(validate(document.getElementById('select')))">has value?</a> </p> <p> <textarea id="textarea" rows="4" cols="50"></textarea> <a href="javascript:alert(validate(document.getElementById('textarea')))">has value?</a> </p> <p> <input type="checkbox" id="checkbox" /> <a href="javascript:alert(validate(document.getElementById('checkbox')))">is checked?</a> </p> <p> <input type="radio" name="radios" id="radio1" /> <input type="radio" name="radios" id="radio2" /> <input type="radio" name="radios" id="radio3" /> <input type="radio" name="radios" id="radio4" /> <a href="#" onclick="alert(validate(document.querySelectorAll('input[type=radio]')));return false">is any radio checked?</a> </p> </body> </html> -
140bytes revised this gist
Jul 28, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) 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). -
140bytes revised this gist
Jul 28, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -------------------- 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), with help from Alex Kloss. It was inspired by work from [Thomas Fuchs](http://mir.aculo.us) and [Dustin Diaz](http://www.dustindiaz.com/). -
140bytes revised this gist
Jun 1, 2011 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,12 @@ <!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. */ } document.getElementById( "ret" ).innerHTML = myFunction() </script> -
140bytes revised this gist
Jun 1, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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> -
140bytes revised this gist
May 31, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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" ).innerHTML = ret </script> -
140bytes revised this gist
May 31, 2011 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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> -
140bytes revised this gist
May 31, 2011 . 3 changed files with 17 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,10 @@ function(){ // make sure // to annotate // your code // so everyone // can learn // from it! // see jed's entries // for examples. } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ function(){/* Your entry, a useful, unique, and valid JavaScript expression that packs as much functionality into 140 bytes as possible. */} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,13 @@ { "name": "theNameOfYourLibWhichMustBeAValidCamelCasedJavaScriptIdentifier", "description": "This should be a short description of your entry.", "keywords": [ "five", "descriptive", "keywords", "or", "fewer" ] } -
140bytes revised this gist
May 26, 2011 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ 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! */} -
140bytes revised this gist
May 25, 2011 . 3 changed files with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 2. contains no more than 140 bytes, and 3. does not leak to the global scope. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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! */} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ function(){/******************************************************************************************************************************/} -
140bytes revised this gist
May 23, 2011 . 2 changed files with 14 additions and 21 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,13 @@ 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. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 the [WTFPL](http://sam.zoy.org/wtfpl/) or equally permissive license. For more information -------------------- -
140bytes revised this gist
May 23, 2011 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. 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 a license as or more permitting than the MIT license. For more information -------------------- -
140bytes revised this gist
May 22, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
140bytes revised this gist
May 21, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/). -
140bytes revised this gist
May 18, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.", // [OPTIONAL] Up to 5 keywords used for indexing. "keywords": [ -
140bytes revised this gist
May 18, 2011 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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", // [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" ] } -
140bytes revised this gist
May 18, 2011 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. 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/). -
140bytes revised this gist
May 18, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 2. optionally self-executes, 2. contains no more than 140 bytes, and 3. does not pollute global scope. -
140bytes revised this gist
May 18, 2011 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,9 +7,20 @@ How to play ----------- 1. Click the  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! 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 -------------------- -
140bytes revised this gist
May 18, 2011 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ 140byt.es ========= 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](http://140byt.es) site hasn't launched yet, but for now follow [@140bytes](http://twitter.com/140bytes) on Twitter. -
140bytes revised this gist
May 18, 2011 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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  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. -
140bytes revised this gist
May 18, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ 140byt.es ========= -
140bytes revised this gist
May 18, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ { "name": "140bytes", "keywords": [ "140bytes", "master", "rules" ] } -
140bytes revised this gist
May 18, 2011 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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! */} -
140bytes revised this gist
May 18, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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!*/}
NewerOlder