class UnexceptableInputException extends Exception{
public UnexceptableInputException() {}
public UnexceptableInputException(String message){
super(message);
}
}
Installing Google Test on Mac
One bash script to install google test (and mock) on your Mac. I assume you already had install cmake
(if not, use brew - brew install cmake
).
It use brew directories to store gmock and gtest.
#!/usr/bin/env bash
This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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
#!/bin/bash | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install homebrew's official php tap | |
brew tap josegonzalez/homebrew-php | |
This file contains hidden or 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
function parse_url(url) { | |
/* Dom parsing of A | |
based at https://gist.github.com/jlong/2428561 | |
*/ | |
var parser = document.createElement('a'); | |
parser.href = url; | |
/* Exception for user:password */ | |
var re = /(\/\/)(.+?)((:(.+?))?)@/i; | |
if ( re.exec(url) ){ |
NewerOlder