I hereby claim:
- I am dharfr on github.
- I am oad (https://keybase.io/oad) on keybase.
- I have a public key whose fingerprint is 562F CA1A 515F D1B7 D0B8 2EA9 9967 66E6 24A9 4F77
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* $.unserialize | |
* | |
* Takes a string in format "param1=value1¶m2=value2" and returns an object { param1: 'value1', param2: 'value2' }. | |
* If the "param1" ends with "[]" the param is treated as an array. | |
* | |
* Parses the value as String, Int or Boolean | |
* @todo: parseFloat could also be useful I guess. | |
* | |
* Example: |
<script language="javascript" type="text/javascript"> | |
function formUploadCallback (result) { | |
console.log("Upload OK:", result); | |
alert('Upload OK'); | |
} | |
</script> | |
<form target="upload_target" action="upload.php" enctype="multipart/form-data" method="post"> | |
File: <input name="myfile" type="file" /> | |
<input name="submitBtn" type="submit" value="Submit" /> | |
</form> |
/** | |
* jQuery helpBox plugin v0.1 | |
* ========================== | |
* | |
* http://www.dhar.fr | |
* | |
* Provides a simple way to add contextual help in your page. | |
* @author Olivier Audard - audard[AT]gmail[DOT]com | |
* | |
* Usage: |
utils = utils || {} | |
utils.extractURLParams =-> | |
params = window.location.search.substring(1).split "&" | |
result = {} | |
for param in params | |
strParam = param.toString() | |
sepPos = strParam.indexOf "=" | |
key = strParam.substring 0, sepPos |
# for more details, see: http://stackoverflow.com/questions/4608798/svn-how-to-remove-all-deleted-files-from-repository | |
svn st | grep '^!' | awk '{print $2}' | xargs svn delete --force |
###* | |
* jQuery queue plugin v0.1 | |
* ========================== | |
* | |
* Used to queue $.Deferred's Promise objects | |
* author @_dhar | |
### | |
(($) -> |
<snippet> | |
<content><![CDATA[ | |
def "${1:name your test}"() { | |
setup: | |
// setup your test | |
def l = [1, 2, 3] | |
when: | |
// test something | |
def r = l.findAll {it > 2} | |
then: |
oaudard@work:~/Projects/sample-grails-project$ grailsenv | |
GRAILS_HOME=/home/oaudard/dev-utils/grails | |
grails | |
grails-1.3.7 | |
grails-1.3.8 | |
grails-2.0.0 | |
grails-2.0.1 | |
grails-2.0.3 | |
grails-2.0.4 | |
grails-2.1.0 |