Skip to content

Instantly share code, notes, and snippets.

@lornajane
lornajane / gist:db34c0ae5d8c1649474e
Created August 26, 2015 11:55
History file from my presentation at Laracon "Advanced Git for Developers"
git init mygit
ls
cd mygit/
ls
ls
cd .git/
ls
cat config
git config --local user.email "me@lornajane.net"
cat config
<?php
$client = new SoapClient('http://api.radioreference.com/soap2/?wsdl&v=latest');
$countries = $client->getCountryList();
print_r($countries);
// 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
@lornajane
lornajane / text.txt
Created July 23, 2015 18:30
Gist created by API
Some riveting text
@lornajane
lornajane / text.txt
Created July 23, 2015 18:30
Gist created by API
Some riveting text
@lornajane
lornajane / text.txt
Created July 23, 2015 18:29
Gist created by API
Some riveting text
@lornajane
lornajane / gist:dc2b38443e5e1dbb5ab8
Created July 8, 2015 20:40
Android compile error
$ 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:
@lornajane
lornajane / Message.php
Created August 9, 2013 08:13
Toy Messages classes
<?php
class Message
{
public function __construct($msg, $user) {
$this->msg = $msg;
$this->user = $user;
$this->created = new DateTime();
}
function makeImgTag($src) {
return "<img src=\"" . $src . "\" />";
}
@lornajane
lornajane / benchmarks
Last active December 18, 2015 01:38
PHP benchmarks and version adoption, May 2013
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