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
watch: { | |
src: { | |
files: '<%= jshint.core.src %>', | |
tasks: ['jshint:src', 'qunit', 'concat'] | |
}, | |
test: { | |
files: '<%= jshint.test.src %>', | |
tasks: ['jshint:test', 'qunit'] | |
}, | |
less: { |
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
<li class="promo-code"> | |
<label for="ctl00_cphMain_txtPromoCode" id="ctl00_cphMain_lblPromoCode"> | |
If you have a promo code for this class,<br />please enter it here: | |
</label> | |
<input name="ctl00$cphMain$txtPromoCode" type="text" id="ctl00_cphMain_txtPromoCode" class="promo-code-field" /> | |
</li> |
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
less: { | |
compileMaster: { | |
options: { | |
strictMath: true, | |
sourceMap: true, | |
outputSourceFiles: true, | |
sourceMapURL: 'master.css.map', | |
sourceMapFilename: 'dist/css/master.css.map' | |
}, | |
src: 'less/master.less', |
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 PostController | |
{ | |
public function publishAction(Post $post) | |
{ | |
$this->postManager->publish($post); | |
return $this->redirectTo('post_edit', array('id' => $post->getId())); |
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
{ | |
sinks: { | |
"boom_box": { | |
"wattage": "8", | |
"standby_wattage": "5.2", | |
"name": "Boom Box", | |
"categories": ["home_entertainment"] | |
} | |
}, | |
categories: { |
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 | |
var_dump($argv); | |
$testMode = isset($argv[1]); | |
if ($testMode) { | |
die('testMode!'); | |
} |
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> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="foo">My foo</div> | |
<iframe src="testiframe.html" width="100%" height="400"></iframe> | |
</body> |
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 | |
$cacheStore = new Symfony\Component\HttpKernel\HttpCache\Store('/path/to/app/cache/prod/http_cache'); | |
$cacheStore->purge('http://www.foo.com/my/url'); |
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 | |
$em = $container->get('doctrine.orm.default_entity_manager'); | |
$repo = $em->getRepository('VDWVTFABundle:Organization'); | |
$org = $repo->findOneByName('Vermont Sustainable Jobs Fund'); | |
$org->setName('HAHAHA BAD CRAP'); | |
$em->flush(); |
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 TransformerAbstract | |
{ | |
private $fields; | |
private $allowedFields = array('id', 'name', 'phone', 'email', 'bio', 'num_friends'); | |
private $partialFields = array( | |
'id' => array('id', 'name'), | |
'info' => array('name', 'phone', 'email', 'bio'), | |
'bio' => array('bio') |