This file contains 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 | |
# INSTALL: Put this in a shell script (eg, `~/bin/robert`). | |
# USE: `$ robert anticonstitutionnellement`. | |
wordId=$(curl "http://petitrobert.bvdep.com/list.asp?word=$1" \ | |
-b "PR1Login=OK" 2>/dev/null \ | |
| sed -En "/onload/{s/.*'([A-Z0-9]+)'.*/\1/ | |
p | |
}") |
This file contains 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
var async = require('async'); | |
function differedFactorial(n /* Number */, cb /* Function */) { | |
if (n < 0) cb(new Error('Complex infinity')); | |
setTimeout(function() { | |
var result = 1; | |
for (; n > 1; n--) { | |
result = result * n; | |
} | |
cb(null, result); // No errors, result is given. |
This file contains 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
configure: looking for configure programs | |
configure: found mkdir | |
configure: found printf | |
configure: found cut | |
configure: found grep | |
configure: found xargs | |
configure: found cp | |
configure: found find | |
configure: found uname | |
configure: found date |
This file contains 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
// ==UserScript== | |
// @name *[data-markdown] | |
// @version 2.0 | |
// @description Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> and others | |
// @include * | |
// ==/UserScript== | |
// Contribs: | |
// Thaddee Tyl <http://espadrine.github.com/> |
This file contains 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
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/>, bits by Thaddee Tyl <http://espadrine.github.com/> | |
// @link http://git.io/data-markdown | |
// @include * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
This file contains 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 | |
# Configure your account. | |
USER=espadrine | |
# Ask for the password. | |
echo -n password\ ; read -s PASS | |
curl -u $USER:$PASS -d status="$1" http://twitter.com/statuses/update.xml |
NewerOlder