Skip to content

Instantly share code, notes, and snippets.

View bobthecow's full-sized avatar

Justin Hileman bobthecow

View GitHub Profile
<a href="{% route 'product_sellable' with ["sellerName": activity.sellable.seller.identity.username , "productSlug": activity.sellable.product.slug] %}">
<img src="{{ activity.sellable.product.images[0].thumbUrl }}">
</a>
@bobthecow
bobthecow / .gitconfig
Created July 6, 2010 00:56
`git todo` alias is the hotness.
[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
You learned to use a pastebin? Your mom would be so proud!
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
>>>True,False=False,True
>>>False
True
>>>1==2
False
>>>(1==2)==True
True
Apple Developer
Technologies
Resources
Programs
Support
Member Center
Search Developer
<?php
require_once '../Mustache.php';
class MustacheCallTest extends PHPUnit_Framework_TestCase {
public function testCallEatsContext() {
$foo = new Foo();
$foo->name = 'Bob';
#!/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
<?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__);
<!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">
...