The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
Use Git and git-flow to manage code.
If we're working across multiple major Drupal versions, prefix the branch with d7-, d8- etc.
Two options:
| #!/usr/bin/env python | |
| """ | |
| Calculate Body Mass Index. | |
| BMI = mass (kg) / height (m) ^ 2 | |
| Mass and height must be numbers. | |
| """ |
| #!/usr/bin/env perl | |
| # Convert from USD to AUD. | |
| # Time-stamp: <2009-03-15 19:55:57 claudine> | |
| use strict; | |
| use warnings; | |
| use Carp; | |
| use Finance::Quote; | |
| use Getopt::Long; |
| #!/bin/bash | |
| # Originally copied from https://linode.com/docs/applications/configuration-management/vagrant-linode-environments | |
| apt-get install apache2 -y | |
| mv /etc/apache2/ports.conf /etc/apache2/ports.conf.backup | |
| mv /etc/apache2/ports1.conf /etc/apache2/ports.conf | |
| a2dissite 000-default.conf | |
| a2ensite vhost.conf | |
| service apache2 reload |
| .filter(function() { | |
| return this.id.match(/[A-Z]*\-/) | |
| }) |
| { | |
| "comment": "This works on https://xkpasswd.net/ but not with the Perl hsxkpasswd CLI tool.", | |
| "num_words": 2, | |
| "word_length_min": 4, | |
| "word_length_max": 8, | |
| "case_transform": "LOWER", | |
| "separator_character": "NONE", | |
| "padding_digits_before": 0, | |
| "padding_digits_after": 2, | |
| "padding_type": "NONE", |
| Start typing to select existing keywords or add new ones. Separate keywords with commas. |
| /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
| /* ========================================================================== | |
| HTML5 display definitions | |
| ========================================================================== */ | |
| /** | |
| * Correct `block` display not defined in IE 8/9. | |
| */ |