Skip to content

Instantly share code, notes, and snippets.

View trq's full-sized avatar

Tony R Quilkey trq

  • thorpesystems
  • Sydney, Australia
View GitHub Profile
(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 () {
(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,
*
!.gitignore
<?php
class TimePeriod
{
protected $periodRepresentation;
protected function __construct($periodRepresentation)
{
$this->periodRepresentation = $periodRepresentation;
}
<?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())
cms_module.controller.search:
class: "%cms_module.controller.search.class%"
arguments:
- @templating
calls:
- [setApiKey, ["%google_cse_key%"]]
- [setCxKey, ["%google_cse_cx%"]]
<?php
namespace Foo\SiteBundle\EventListener;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Gedmo\Sluggable\Util\Urlizer;
use Foo\SiteBundle\Entity\Category;
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
<?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";
}
<?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