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 characters
| # See http://www.s-anand.net/blog/shortening-sentences/ | |
| # Removing vowels from words reduces the readability, but shrinks text by 18% [column 1] | |
| # Removing only single vowels (e.g. read -> read, but yet -> yt) shrinks by 14% [column 2] | |
| # Is the difference worth it? Here are some examples: | |
| abbrviatn abbrviation | |
| ablitn ablition | |
| ablits ablities | |
| abnd abound | |
| abndng aboundng |
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 characters
| // Textarea maxlength | |
| // Ensures that textarea's maxlength is validated | |
| // | |
| // (c) S Anand, 2010, MIT License | |
| // Credits: http://yelotofu.com/2009/12/jquery-textarea-max-length/ | |
| // Credits: http://stackoverflow.com/questions/43569/max-length-for-html-text-areas | |
| (function() { | |
| var ignore = [8,9,13,33,34,35,36,37,38,39,40,46]; | |
| function limit(event) { |
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 characters
| @echo off | |
| REM = """ | |
| REM python -x skipped that first line... | |
| REM make sure that this file is saved with Windows newlines | |
| REM make sure to change the next lines to whatever this file is called: | |
| set FOLDER=D:/Apps/Misc | |
| python -x %FOLDER%/o.cmd %* | |
| if errorlevel == 1 goto changedir | |
| goto end |
NewerOlder