This file contains hidden or 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
#!/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 (?) |
This file contains hidden or 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
document.addEvent('domready', function() { | |
$$('a.blank').addEvent('click', function(link, e){ | |
e.stop(); | |
window.open(link.get('href')); | |
}); | |
}; |
This file contains hidden or 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 myForm extends sfFormDoctrine | |
{ | |
public function processValues($values = null) | |
{ | |
$values = parent::processValues($values); | |
// calculate the value of virtual field "foo" | |
$values['foo'] = $foo; | |
return $values; |