(By Jeroen Laros.)
Go to the Python website. In the Downloads tab, click the Python 2.7.9
| /* | |
| * Hide comments on Losse Veter (losseveter.nl) | |
| * | |
| * Most of the user comments on Losse Veter are either racist or zealot | |
| * epistels about doping. With this Firefox setting, you can enjoy just | |
| * the track and field news. | |
| * | |
| * Edit this file and copy it as userContent.css into your Firefox | |
| * profile-directory/chrome/ | |
| */ |
| #!/bin/bash | |
| # Limit directory size by deleting files accessed least recently. | |
| # | |
| # Use inotify to wait for files written to the specified directory. On such an | |
| # event, and if the directory size is over the specified maximum size, keep | |
| # deleting files until the size is below the maximum. Repeat (so, never exit). | |
| # | |
| # Names of deleted files are written to stdout, messages are prefixed with the | |
| # string ">>>". | |
| # |
| .ipynb_checkpoints | |
| *.fa | |
| [abcde].k1 | |
| [abcde].k2 | |
| [abcde].k3 | |
| [abcde].k4 | |
| [abcde].k5 | |
| [abcde].k6 | |
| [abcde].k7 |
(By Jeroen Laros.)
Go to the Python website. In the Downloads tab, click the Python 2.7.9
| 'use strict'; | |
| var React = require('react'); | |
| var Form = require('plexus-form'); | |
| var Example = React.createClass({ | |
| getInitialState: function() { | |
| return {values: {name: 'Pierre'}}; | |
| }, | |
| onSubmit: function(output, value, errors) { |
| """ | |
| Monkey patch: http://en.wikipedia.org/wiki/Monkey_patch | |
| """ | |
| def monkey_patch_suds(): | |
| """ | |
| Apply our monkey patch for the suds package. | |
| For some weird reason the location http://www.w3.org/2001/xml.xsd is used |
| #!/usr/bin/env python | |
| """ | |
| Clean a directory (e.g. cache) by removing rarely used files. | |
| Usage: | |
| ./clean_directory directory [max_size] | |
| The max_size argument is expected in megabytes. File removals are reported to | |
| standard output and afterwards empty directories are (silently) removed. |
| #!/usr/bin/env python | |
| """ | |
| Example Python pattern: try something a number of times, and only really fail | |
| after that. | |
| """ | |
| import sys | |
| import time |