Skip to content

Instantly share code, notes, and snippets.

View cbou's full-sized avatar
🎯
Focusing

charles bourasseau cbou

🎯
Focusing
  • Pidoco GmbH
  • Berlin
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@cbou
cbou / robot.js
Created December 5, 2012 09:09 — forked from cgardner/robot.js
derp
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
@cbou
cbou / Configuration.class.php
Created May 16, 2011 14:16 — forked from pborreli/Configuration.class.php
adding ":" to all labels and "*" to all required fields inside symfony 1.3+ forms
<?php
class privateConfiguration extends sfApplicationConfiguration
{
public function configure()
{
$this->dispatcher->connect('form.post_configure', array($this, 'listenToFormPostConfigure'));
}
/**