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
(function() { | |
var calculator = angular.module('calculator', ['ui.check', 'ui.tick', 'mm.foundation', 'mm.foundation.tooltip', 'mm.foundation.modal']); | |
calculator.controller('ModalInstanceCtrl', ['$scope', '$modalInstance', function($scope, $modalInstance, email) { | |
$scope.user = { | |
email = email | |
} | |
$scope.ok = function () { |
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
(function() { | |
var calculator = angular.module('calculator', ['ui.check']); | |
calculator.controller('FormCtrl', ['$scope', '$http', function($scope, $http) { | |
$scope.selections = { | |
planType : null, | |
existingClient : null, | |
twins : null, | |
hospitalType : null, |
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
* | |
!.gitignore |
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 TimePeriod | |
{ | |
protected $periodRepresentation; | |
protected function __construct($periodRepresentation) | |
{ | |
$this->periodRepresentation = $periodRepresentation; | |
} |
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 '../include/conectar.php'; | |
if (isset($_POST['borrar_id']) && is_array($_POST['borrar_id'])) | |
{ | |
foreach ($_POST['borrar_id'] as $id) | |
{ | |
$result = $db->query("SELECT `direccion` FROM `imagenes` WHERE `id`='{$id}'"); | |
while ($obj = $result->fetchObject()) |
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
cms_module.controller.search: | |
class: "%cms_module.controller.search.class%" | |
arguments: | |
- @templating | |
calls: | |
- [setApiKey, ["%google_cse_key%"]] | |
- [setCxKey, ["%google_cse_cx%"]] |
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 | |
namespace Foo\SiteBundle\EventListener; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\ORM\Event\LifecycleEventArgs; | |
use Gedmo\Sluggable\Util\Urlizer; | |
use Foo\SiteBundle\Entity\Category; |
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
g:vdebug_options['path_maps'] = {"/var/www/cc": "/Users/trq/src/clients/cc/site"} | |
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType htmljinja setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType php setlocal ts=4 sts=4 sw=4 expandtab |
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 | |
$formatter = new NumberFormatter('en_AU', NumberFormatter::SPELLOUT); | |
$formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal"); | |
for ($i = 1; $i <= 5; $i++) { | |
echo $formatter->format($i) . "\n"; | |
} |
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 | |
public function registerEngineResolver() | |
{ | |
$this->app->bindShared('view.engine.resolver', function($app) | |
{ | |
$resolver = new EngineResolver; | |
// Next we will register the various engines with the resolver so that the | |
// environment can resolve the engines it needs for various views based |