I hereby claim:
- I am fgandellini on github.
- I am gandellinux (https://keybase.io/gandellinux) on keybase.
- I have a public key ASBIWg54AEvksRABPByq5AAZkFuaVd-iCJiStBnkLwN0lgo
To claim this, I am signing this object:
| gulp.task('bundle', function () { | |
| watchify.args.debug = true; | |
| //watchify.args.ignoreMissing = true; | |
| var bundler = watchify(browserify('./main.js', watchify.args)); | |
| bundler.on('update', rebundle); | |
| function rebundle() { | |
| return bundler.bundle() | |
| //.pipe(exorcist(__dirname + '/dist/bundle.js.map')) |
| function check(link) { | |
| var errorMessage = 'Mumble mumble... this seems to be an invalid link! :('; | |
| return new Promise(function(resolve, reject) { | |
| try { | |
| http.request(link, function(res) { | |
| debug('link status is ', res.statusCode); | |
| if (res.statusCode !== 404) { | |
| resolve(link); | |
| } else { | |
| reject(errorMessage); |
| var url = require('url'); | |
| var request = require('superagent'); | |
| var debug = require('debug')('url-utils'); | |
| function parse(link) { | |
| return new Promise(function(resolve, reject) { | |
| try { | |
| var parsedUrl = url.parse(link, true, true); | |
| if (isValid(parsedUrl)) { | |
| return isAvailable(parsedUrl) |
| import xs from 'xstream' | |
| import XStreamAdapter from '@cycle/xstream-adapter' | |
| export function makePouchDBDriver(PouchDB, dbName, dbOptions) { | |
| PouchDB.plugin(require('relational-pouch')) | |
| const db = new PouchDB(dbName, dbOptions) | |
| const api = ['put', 'get', 'allDocs' , 'destroy', 'setSchema', 'rel.save', 'rel.find', 'rel.del'] | |
| return (sinks, streamAdapter) => |
| const Rx = require('rxjs/Rx') | |
| const getB = (a, cb) => setTimeout(a => cb(null, a+'b'), 10000) | |
| const getbAsObservable = Rx.Observable.bindNodeCallback(getB) | |
| const a$ = Rx.Observable.from([1, 2, 3]) | |
| const b$ = a$.map(a => getbAsObservable(a)) | |
| const c$ = a$.zip(b$.mergeAll()) | |
| c$.subscribe(data => console.log(data)) |
I hereby claim:
To claim this, I am signing this object:
| const arraySum = prop => arr => | |
| arr.reduce((acc, r) => acc + r[prop], 0) | |
| const amountByCode = r => ({ | |
| 'regular': 2 + (r.days > 2 ? ((r.days - 2) * 1.5) : 0), | |
| 'new': r.days * 3, | |
| 'childrens': 1.5 + (r.days > 3 ? ((r.days - 3) * 1.5) : 0), | |
| }) | |
| const frequentRenterPointsByCode = r => ({ |
| #!/bin/sh | |
| git clone --bare https://github.com/fgandellini/dotfiles $HOME/.dotfiles | |
| function dotfiles { | |
| /usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
| } | |
| mkdir -p .dotfiles-backup | |
| dotfiles checkout |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |