Some exercises from the Falsy Values workshops.
The good parts:
- HTTP server and client in same script
- Express cookies example
- Express routing example
- Express error handling
- Express middlewares example
- Simple HTTP proxy
| $('select.bit-rate').each(function() { $(this).find('option:first').attr('selected', 'selected'); }); |
| We deeply regret to inform you that we will not be able to deliver your | |
| subscription copy of the February 11th issue of The Economist. | |
| This issue includes a special report on Pakistan and features a map | |
| showing the disputed territories. India does not allow us to show the | |
| current effective border, requiring us instead to show only its | |
| territorial claims. As a result, the issue has been seized by the Indian | |
| customs authorities. | |
| We apologise sincerely for any inconvenience this may cause. We will be |
Some exercises from the Falsy Values workshops.
The good parts:
| /** | |
| * CSS to add section numbers to top-level headings in | |
| * a Google Docs (or any HTML) document. | |
| * | |
| * See <http://www.w3.org/TR/CSS2/generate.html> for | |
| * more details. | |
| */ | |
| body { | |
| counter-reset: section; | |
| } |
| #!/usr/bin/env python | |
| # trac-post-commit-hook | |
| # | |
| # This version trac-post-commit-hook has a few customizations. | |
| # | |
| # 1. fix/fixes/fixed commands set status to 'testing' instead of closed. | |
| # | |
| # 2. Added a new command to create new versions. Any commit message with | |
| # a pattern 'tagging version VERSION_NUMBER' or 'tagged version |
| #!/usr/bin/env bash | |
| # Gives you file-by-file change stats between two archives. | |
| # Assuming your two archives are original.tar.gz and modified.tar.gz in | |
| # the curent directory. | |
| # I know that there is a tool called diffstat for this very purpose, | |
| # and git probably uses it internally as well. I wanted to demo the | |
| # git-diff --stat command. | |