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
git init mygit | |
ls | |
cd mygit/ | |
ls | |
ls | |
cd .git/ | |
ls | |
cat config | |
git config --local user.email "me@lornajane.net" | |
cat config |
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 | |
$client = new SoapClient('http://api.radioreference.com/soap2/?wsdl&v=latest'); | |
$countries = $client->getCountryList(); | |
print_r($countries); |
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 5 wrappers (PHP 5.6 Ubuntu package) | |
// stream_get_wrappers() | |
Array | |
( | |
[0] => https | |
[1] => ftps | |
[2] => compress.zlib | |
[3] => compress.bzip2 | |
[4] => php | |
[5] => file |
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
Some riveting text |
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
Some riveting text |
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
Some riveting text |
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
$ gradle build | |
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
A problem occurred configuring root project 'android-app'. | |
> Could not resolve all dependencies for configuration ':_debugCompile'. | |
> Could not find com.android.support:appcompat-v7:22.2.0. | |
Searched in the following locations: |
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 Message | |
{ | |
public function __construct($msg, $user) { | |
$this->msg = $msg; | |
$this->user = $user; | |
$this->created = new DateTime(); | |
} |
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
function makeImgTag($src) { | |
return "<img src=\"" . $src . "\" />"; | |
} |
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
Average time to run bench.php on my laptop, by PHP version | |
• 5.2.17: 3.77 seconds | |
• 5.3.23: 2.63 seconds | |
• 5.4.15: 1.98 seconds | |
• 5.5RC1: 2.11 seconds |