See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| #!/bin/bash | |
| #get highest tag number | |
| VERSION=`git describe --abbrev=0 --tags` | |
| #replace . with space so can split into an array | |
| VERSION_BITS=(${VERSION//./ }) | |
| #get number parts and increase last one by 1 | |
| VNUM1=${VERSION_BITS[0]} |
| function standardDeviation(values, avg) { | |
| var squareDiffs = values.map(value => Math.pow(value - avg, 2)); | |
| return Math.sqrt(average(squareDiffs)); | |
| } | |
| function average(data) { | |
| return data.reduce((sum, value)=>sum + value) / data.length; | |
| } | |
| if (responseCode.code === 200 || responseCode.code === 201) { |
| #!/bin/sh | |
| # Configure homebrew permissions to allow multiple users on MAC OSX. | |
| # Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
| # allow admins to manage homebrew's local install directory | |
| chgrp -R admin /usr/local | |
| chmod -R g+w /usr/local | |
| # allow admins to homebrew's local cache of formulae and source files | |
| chgrp -R admin /Library/Caches/Homebrew |
| <?php | |
| /** | |
| * Get an excerpt | |
| * | |
| * @param string $content The content to be transformed | |
| * @param int $length The number of words | |
| * @param string $more The text to be displayed at the end, if shortened | |
| * @return string | |
| */ |
| <?php | |
| /* | |
| Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
| --------- | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |
| /* | |
| * Customized by Misato Takahashi <misato@takahashi.name> | |
| * - fix if Html document has "<!DOCTYPE>" then parse error. | |
| * - fix if Attribute name includes "-" then parse error | |
| * - fix if Unmatch case start tag and end tag then parse error | |
| * - add function "getElementById" | |
| * | |
| * HTML Parser By John Resig (ejohn.org) | |
| * Original code by Erik Arvidsson, Mozilla Public License | |
| * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js |