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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
# don't recommend running as one script | |
# list merged remote branches | |
git branch -a --merged live | grep -v live | |
# delete remote merged branches | |
git branch -a --merged live | grep -v live | xargs -n 1 git push --delete origin | |
# list merged local branches | |
git branch --merged live | grep -v live |
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 FooTest extends PHPUnit_Framework_Testcase | |
{ | |
public function testDoSomethingEditsDataAndReturnsArray() | |
{ | |
$foo = new Foo; | |
$user = [ | |
'name' => 'Phil', |
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 FooTest extends PHPUnit_Framework_Testcase | |
{ | |
public function testDoSomethingEditsDataAndReturnsArray() | |
{ | |
$foo = new Foo; | |
$user = [ | |
'name' => 'Phil', |
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 FakeBar | |
{ | |
public $users = [ | |
1 => [ | |
'name' => 'Adam', | |
'email' => '[email protected]' | |
] | |
]; |
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 FooTest extends PHPUnit_Framework_Testcase | |
{ | |
public function testDoSomethingEditsDataAndReturnsArray() | |
{ | |
$foo = new Foo; | |
$bar = new Bar; | |
$user = $foo->doSomething($bar, 1, , 'Phil', '[email protected]'); |
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 Foo | |
{ | |
protected $bar; | |
public function doSomething($bar, $id, $name, $email) | |
{ | |
$this->bar = $bar; | |
// .. possibly manipulate $id, $name and $email |
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 Foo | |
{ | |
public function doSomething($id, $name, $email) | |
{ | |
$bar = new Bar; | |
// .. possibly manipulate $id, $name and $email |
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
Verifying that +philipobenito is my blockchain ID. https://onename.com/philipobenito |
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 | |
$container = new League\Container\Container; | |
$container->add('Zend\Diactoros\ServerRequest', function () { | |
return Zend\Diactoros\ServerRequestFactory::fromGlobals( | |
$_SERVER, | |
$_GET, | |
$_POST, | |
$_COOKIE, |
NewerOlder