See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| require 'vendor/autoload.php'; | |
| use SebastianBergmann\CodeCoverage\Filter; | |
| use SebastianBergmann\CodeCoverage\Driver\Selector; | |
| use SebastianBergmann\CodeCoverage\CodeCoverage; | |
| use SebastianBergmann\CodeCoverage\Report\PHP as PhpReport; | |
| $filter = new Filter; | |
| $filter->includeDirectory( __DIR__ . '/html' ); |
Calling nvm use automatically in a directory with a .nvmrc file
Put this into your $HOME/.zshrc to call nvm use automatically whenever you enter a directory that contains an .nvmrc file with a string telling nvm which node to use:
| import csv | |
| import sys | |
| import os | |
| # example usage: python split.py example.csv 200 | |
| # above command would split the `example.csv` into smaller CSV files of 200 rows each (with header included) | |
| # if example.csv has 401 rows for instance, this creates 3 files in same directory: | |
| # - `example_1.csv` (row 1 - 200) | |
| # - `example_2.csv` (row 201 - 400) | |
| # - `example_3.csv` (row 401) |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ruleset name="Laravel and similar phpmd ruleset" | |
| xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
| xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
| <description> | |
| Inspired by https://github.com/phpmd/phpmd/issues/137 | |
| using http://phpmd.org/documentation/creating-a-ruleset.html | |
| </description> |
| #!/usr/bin/env bash | |
| TMP_FILE=/tmp/docker-compose.$$.yaml | |
| finish() { | |
| rm ${TMP_FILE} ${TMP_FILE}.tmp 2>/dev/null | |
| } | |
| trap finish EXIT | |
The *.html example assumes you have integrated the tracking code as an iframe in the instant articles feed.
<figure class="op-tracker">
<iframe src="https://www.example.com/fia-google-analytics-tracking.html"></iframe>
</figure>
http://undraw.co — you are is awesome!
pup2 is https://github.com/ericchiang/pup, for my OS X it's works only in Go version, not in binary installed or from Brew ¯_(ツ)_/¯jq is https://github.com/stedolan/jqaria2c is https://aria2.github.io/, but you can use curl, wget or something whatever... :)| <?php | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |