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
[alias] | |
# install t first: http://github.com/sjl/t | |
todo = !python ~/path/to/t.py --task-dir "$(git rev-parse --show-toplevel)" --list TODO | |
bug = !python ~/path/to/t.py --task-dir "$(git rev-parse --show-toplevel)" --list BUGS |
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
You learned to use a pastebin? Your mom would be so proud! |
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
IIIIIIIIIIIIIIIPHP Fatal error: Symfony\Component\Routing\Router::needsReload(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Symfony\Components\Routing\FileResource" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /Users/justin/projects/www/vendor/symfony/src/Symfony/Component/Routing/Router.php on line 230 | |
Fatal error: Symfony\Component\Routing\Router::needsReload(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Symfony\Components\Routing\FileResource" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /Users/justin/projects/www/vendor/symfony/src/Symfony/Component/Routing/Router.php on line 230 |
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
>>>True,False=False,True | |
>>>False | |
True | |
>>>1==2 | |
False | |
>>>(1==2)==True | |
True |
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
Apple Developer | |
Technologies | |
Resources | |
Programs | |
Support | |
Member Center | |
Search Developer |
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 | |
require_once '../Mustache.php'; | |
class MustacheCallTest extends PHPUnit_Framework_TestCase { | |
public function testCallEatsContext() { | |
$foo = new Foo(); | |
$foo->name = 'Bob'; |
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 | |
cd "./$(git rev-parse --show-cdup)" | |
for branch in $(git branch | tr -d " |*" | grep -v "\(develop\|production\)"); do | |
[[ -z $(git diff develop...$branch) ]] && echo $branch | |
done |
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 PartialsLoader implements ArrayAccess { | |
protected $baseDir; | |
protected $extensions = array('mustache', 'stache', 'ms'); | |
protected $partials = array(); | |
public function __construct($baseDir = null) { | |
$this->baseDir = (isset($baseDir)) ? $baseDir : dirname(__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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
</DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
... |
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 | |
// unit test: | |
foreach(array(Order::BILLING, Order::SHIPPING) as $type){ | |
${$type."Address"} = new CustomerAddress(); | |
${$type."Address"}->setFirstName("{$type} First"); | |
${$type."Address"}->setLastName("{$type} Last"); | |
${$type."Address"}->setAddress1("{$type} 123 Main Street"); | |
${$type."Address"}->setAddress2("{$type} Apt 123"); |