Skip to content

Instantly share code, notes, and snippets.

View ubermuda's full-sized avatar

Geoffrey Bachelet ubermuda

  • Coconut Software
  • Granby, QC
View GitHub Profile
<?php
/**
* BaseChannel
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property string $feed_url
* @property string $title
* @property string $link
<?php
class Car
{
protected function checkOilLevel()
{
echo 'oil level checked';
}
public function thisWorks()
<?php
class sfValidatorBlacklist extends sfValidatorBase
{
protected function configure($options = array(), $messages = array())
{
$this->addMessage('invalid', 'This value is invalid');
$this->addOption('blacklist');
}
<?php
class userActions extends sfActions
{
public function executeCheckUsername(sfWebRequest $request)
{
$username = $request->getParameter('username');
$availability = (bool) Doctrine_Core::getTable('User')->checkUsername($username);
return $this->renderText(json_encode($availability);
ash@parangon:~/tmp$ ls -la template/hooks/post-checkout
-rwxr-xr-x 1 ash ash 21 2010-01-26 19:28 template/hooks/post-checkout
ash@parangon:~/tmp$ cat template/hooks/post-checkout
#!/bin/sh
echo 'foo'
ash@parangon:~/tmp$ git clone git@gamma.riskle.com:hooks.git --template=template/
Initialized empty Git repository in /home/ash/tmp/hooks/.git/
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
$('input[id=perso]').change(function(e) {
var pro = $('#landing-form-pro');
e.checked ? pro.hide() : pro.show();
});
<?php
class CarSport extends Car
{
public function getMaxSpeed()
{
return 230;
}
}
<?php
namespace Application\SpringbokBundle;
use Symfony\Foundation\Bundle\Bundle as BaseBundle;
class Bundle extends BaseBundle
{
public function boot(ContainerInterface $container)
{
<?php
/**
* @method Ticket getByUsername(string $username) Returns a user
*/
class UserService extends BaseService
{
}
We couldn’t find that file to show.