jqn -r markdown-table 'map(x => "## " + x.name + "\n\n" + markdownTable(x.columns.map(y => [y.name, y.type])) ) | join("\n\n")' < /tmp/stripe.json
id | varchar |
---|---|
business_name | varchar |
business_url | varchar |
### Keybase proof | |
I hereby claim: | |
* I am FGRibreau on github. | |
* I am fgribreau (https://keybase.io/fgribreau) on keybase. | |
* I have a public key whose fingerprint is 5C44 FB61 55CB 31BF 8CD7 9ED7 BD7F 1108 C2C8 5857 | |
To claim this, I am signing this object: |
/// Additional conversion methods for `HeaderValue`. | |
pub trait HeaderValueExt { | |
fn to_string(&self) -> String; | |
} | |
impl HeaderValueExt for HeaderValue { | |
fn to_string(&self) -> String { | |
self.to_str().unwrap_or_default().to_string() | |
} | |
} |
/* | |
fileExistSync - Check if a file exist in NodeJS | |
Twitter: @FGRibreau / fgribreau.com | |
Usage: | |
var fileExistSync = require('./fileExistSync'); | |
var exist = fileExistSync('/var/folders/zm/jmjb49l172g6g/T/65b199'); | |
Support for Nodev0.6 |
-- table.filter({"a", "b", "c", "d"}, function(o, k, i) return o >= "c" end) --> {"c","d"} | |
-- | |
-- @FGRibreau - Francois-Guillaume Ribreau | |
-- @Redsmin - A full-feature client for Redis http://redsmin.com | |
table.filter = function(t, filterIter) | |
local out = {} | |
for k, v in pairs(t) do | |
if filterIter(v, k, t) then out[k] = v end | |
end |
/** | |
* Patch the console methods in order to provide timestamp information | |
* | |
* Usage: | |
* > console.log('ok') | |
* 2012-09-06T11:52:56.769Z ok true | |
* | |
* Note: | |
* The patch will only be applied with the first call. | |
* |
var dummySocket = new ReadWriteNetStream();
// Debug
dummySocket.on('data', function(data){
console.log('write received', data);
});
dummySocket.write('hey !');
node_modules |
// | |
// Usage: require('./pid')("myapp"); | |
// | |
var fs = require('fs'); | |
module.exports = function(appname){ | |
process.title = appname; | |
var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
//Do this only one time ! | |
makeChainable(console, 'assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log profile profileEnd time timeEnd warn'.split(' ')); | |
//Usage: | |
console | |
.profile() | |
.time('testTime') | |
.group('GroupTest') | |
.debug('test', 1, 2, 3) | |
.warn('warniiing!') |