Skip to content

Instantly share code, notes, and snippets.

Justin Hileman bobthecow

Block or report user

Report or block bobthecow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View one.twig
<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 Jul 6, 2010
`git todo` alias is the hotness.
View .gitconfig
[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
View gist:468498
You learned to use a pastebin? Your mom would be so proud!
View untitled.txt
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
View untitled.txt
>>>True,False=False,True
>>>False
True
>>>1==2
False
>>>(1==2)==True
True
View gist:637794
Apple Developer
Technologies
Resources
Programs
Support
Member Center
Search Developer
View MustacheCallTest.php
<?php
require_once '../Mustache.php';
class MustacheCallTest extends PHPUnit_Framework_TestCase {
public function testCallEatsContext() {
$foo = new Foo();
$foo->name = 'Bob';
View ls_dead_branches.sh
#!/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
View PartialsLoader.php
<?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__);
View gist:735467
<!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">
...
You can’t perform that action at this time.