Directions for getting windows 10 to work with virtualbox 6.0.12.
If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install
without entering credentials.
If you have used other Github packages from
{my-org}
before, you may be able to skip this step.
-
Click Generate new token.
This procedure is tested on Mac OS X 10.14.0 with Xcode Developer Tools installed (xCode).
PHP 5.6, 7.0, 7.1, and 7.2 installed with Homebrew following the instructions here.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
/** | |
* Sends an HTML snippet to the W3C validator and returns the result as JSON. | |
* @param string $html HTML code | |
* @return string | |
* @link https://github.com/validator/validator/wiki/Service:-Input:-POST-body | |
* @link https://gist.github.com/tap52384/60cc27fd0a76869cc38b#file-php_html_validator-php | |
*/ | |
public static function validateHtml($html = '') | |
{ | |
$default = array( |
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
// This function plays an audio/video element and creates a promise | |
// that resolves when the audio/video finishes playing | |
// It's nice :) | |
function HTML5Play(target){ | |
var t = $(target); | |
if(t.length != 1 || !t.is('audio, video')) return undefined; //These are invalid cases | |
var deferred = new $.Deferred(); | |
t.on('ended', function(){ deferred.resolve(t) }) |
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 MyModel extends Eloquent { | |
public function getSql() | |
{ | |
$builder = $this->getBuilder(); | |
$sql = $builder->toSql(); | |
foreach($builder->getBindings() as $binding) | |
{ |
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
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |