See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| // half-hearted CSS minification | |
| $css = preg_replace( | |
| array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
| array('$1{ ','$1$3;',"",'} '), | |
| file_get_contents('linked.css') | |
| ); | |
| // embed as a data: uri | |
| $base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
| def unicodetoascii(text): | |
| TEXT = (text. | |
| replace('\\xe2\\x80\\x99', "'"). | |
| replace('\\xc3\\xa9', 'e'). | |
| replace('\\xe2\\x80\\x90', '-'). | |
| replace('\\xe2\\x80\\x91', '-'). | |
| replace('\\xe2\\x80\\x92', '-'). | |
| replace('\\xe2\\x80\\x93', '-'). | |
| replace('\\xe2\\x80\\x94', '-'). |
| #!/bin/bash | |
| # Download it. | |
| # Name it as 'theme' | |
| # Place it in /usr/bin/ | |
| # shell_prompt$ theme | |
| echo ' | |
| 3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3) | |
| Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6) | |
| Arthur ( 7) Atom ( 8) Belafonte Day ( 9) | |
| Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12) |