gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class StephanisAddition { | |
public static function add_two_numbers( $number_one, $number_two ) { | |
if ( ! is_numeric( $number_one ) || ! is_numeric( $number_two ) ) { | |
return null; | |
} | |
return $number_one + $number_two; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* http://stackoverflow.com/questions/11305797/remove-zero-width-space-characters-from-a-javascript-string | |
* U+200B zero width space | |
* U+200C zero width non-joiner Unicode code point | |
* U+200D zero width joiner Unicode code point | |
* U+FEFF zero width no-break space Unicode code point | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* List unique CSS properties for all DOM elements | |
* Initially created to list unique font stacks on a page | |
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer} | |
* | |
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file} | |
* | |
* @author AndrewRMinion Design (https://andrewrminion.com) | |
* @version 1.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName | |
/** | |
* Plugin Name: RA Local Dev Plugin | |
* Description: Install as an mu-plugin to enable and disable other plugins during local development. | |
* Version: 0.1.0 | |
* License: GPL version 2 or any later version | |
* Author: Mark Jaquith, Andrey Savchenko, Paul Biron, Richard Aber | |
* | |
* Inspired by Paul Biron https://gist.github.com/pbiron/52bb63042cf220256ece89bc07fb57b0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Function `parse_yturl()` from <http://stackoverflow.com/a/10524505/624466> | |
/** | |
* Check if the input string is a valid YouTube URL | |
* and try to extract the YouTube Video ID from it. | |
* | |
* @author Stephan Schmitz <[email protected]> | |
* @param $url string The string that shall be checked. |