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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8/> | |
<title>Dev playground</title> | |
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
<script src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js"></script> | |
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-1.0.0-pre.2.js"></script> | |
</head> | |
<body> |
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: HTTPS everywhere | |
Plugin URI: http:// | |
Description: HTTPS everywhere | |
Author: Rickard Andersson | |
Version: 1.0 | |
Author URI: http://0x539.se/ | |
*/ |
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 Tests_Term_Intl extends WP_UnitTestCase { | |
function test_one_char_terms() { | |
$post = array( | |
'post_content' => 'test', | |
'post_status' => 'publish', | |
'post_title' => 'test', | |
'post_type' => 'post', |
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 test_multiple_calls() { | |
$key = rand_str(); | |
$obj1 = new stdClass; | |
$obj2 = new stdClass; | |
$obj1->prop = false; |
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 test1() { | |
$a = new stdClass; | |
$a->foo = false; | |
$b = new stdClass; | |
$b->foo = false; |
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 | |
if [ -z $1 ]; then | |
echo "Usage: $0 /path/to/destination/folder" | |
exit 1 | |
fi | |
BASE=$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
div[role='main'] { | |
width: 610px; | |
float: left; | |
// Strange android 4.x browser bug, layout will f-up if there's no background color set | |
article * { | |
background-color: #fff; | |
} | |
} |
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 JsonDecoder implements DecoderInterface { | |
public function decode( $data ) | |
{ | |
$decoded = @json_decode( $data, true ); | |
$decoded = $this->removeBooleans( $decoded ); |
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 testWPDB extends wpdb { | |
function prepare( $query, $arguments ) | |
{ | |
return vsprintf( $query, $arguments ); | |
} | |
} |
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
There was 1 error: | |
1) UTCW_Test_Data::test_author | |
mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) | |
/www/wpstable/wp-includes/wp-db.php:1038 | |
/www/wpstable/wp-includes/wp-db.php:504 | |
/www/utcw2/tests/test_utcw_data.php:11 | |
/usr/bin/phpunit:46 |