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
#!/bin/bash | |
# Check if there is a vendor/bin/ or vendor-bin/ directory that contains PHPUnit | |
if [ -f $PWD"/vendor/bin/phpunit" ]; then | |
echo "Using vendor/bin/phpunit..." | |
$PWD/vendor/bin/phpunit $@ | |
exit 0 | |
fi | |
if [ -f $PWD"/vendor/bin/simple-phpunit" ]; then |
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 | |
/** | |
* Plugin Name: Test All Filter | |
*/ | |
add_filter('all', function(){ | |
static $calls; | |
if(!$calls){ | |
$calls = 0; |
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 | |
use Illuminate\Support\Facades\Http; | |
use Tests\TestCase; | |
class HttpSeriesTest extends TestCase | |
{ | |
public function testHttpRequestsInSequence() { |
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 | |
$a = null; | |
$start = microtime(true); | |
for($i = 0; $i < 1000000000; $i++){ | |
if( !empty( $a ) ){} | |
} | |
$empty = microtime(true) - $start; | |
$start = microtime(true); | |
for($i = 0; $i < 1000000000; $i++){ |
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
'signed_info' => -1, | |
'body' => array( | |
'display_name' => 'output', | |
'message' => $meta[1], | |
'type' => 'main', | |
'type' => 'string', | |
'dOT_QUEMTMOFATE_MASSION'] => array( | |
'libng', | |
), | |
'type' => 'string', |
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
.gitignore | |
wp-config.php | |
.htaccess | |
wp-content/plugins/* | |
wp-content/themes/* |
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
selectID: function(channel){ | |
var id, nick, list = []; | |
if( typeof this.weights[ channel ] == 'undefined' || this.weights[ channel ].length < 1 ){ | |
this.identities[ channel ] = this.nicks[ channel ][ Math.floor( Math.random() * this.nicks[ channel ].length ) ]; | |
return; | |
} | |
for( nick in this.weights[ channel ] ){ |