Skip to content

Instantly share code, notes, and snippets.

View tonio's full-sized avatar
🏔️

Antoine Abt tonio

🏔️
View GitHub Profile
<?php
class myForm extends sfFormDoctrine
{
public function processValues($values = null)
{
$values = parent::processValues($values);
// calculate the value of virtual field "foo"
$values['foo'] = $foo;
return $values;
document.addEvent('domready', function() {
$$('a.blank').addEvent('click', function(link, e){
e.stop();
window.open(link.get('href'));
});
};
#!/bin/bash
# usage: ./svngrep http://svn.example.com/trunk/file foobar
#
# This example will look for the string foobar in all rev of file
#
# @todo better argv handling
# @todo add a --verbose option
# @todo automatic branches and tags detection (?)