const { join } = require('path') | |
const Hyperdrive = require('@geut/hyperdrive-promise') | |
const Networker = require('@corestore/networker') | |
const Corestore = require('corestore') | |
const raf = require('random-access-file') | |
const { once } = require('events') | |
const tempy = require('tempy') | |
const externalKey = process.argv[2] |
const P2PCommons = require('@p2pcommons/sdk-js') | |
const tempy = require('tempy')) | |
const baseDir = tempy.directory() | |
console.log(`baseDir is: ${baseDir}`) | |
const commons = new P2PCommons({ verbose: true, baseDir }) | |
process.once('SIGINT', () => commons.destroy()) |
Keybase proof
I hereby claim:
- I am dpaez on github.
- I am carax (https://keybase.io/carax) on keybase.
- I have a public key ASBTYeB2azqpGbUsWMgFQWiIyo0SuoRaHtRgOPvdPtjhQAo
To claim this, I am signing this object:
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d` |
const P2PCommons = require('.') // liberate science constructor function | |
const tempy = require('tempy') | |
const commons = new P2PCommons({ baseDir: tempy.directory(), verbose: true }) | |
process.once('SIGINT', () => commons.destroy()) | |
;(async () => { | |
await commons.ready() | |
// create some content | |
const { rawJSON, metadata } = await commons.init({ | |
type: 'content', |
Componiendo choo apps.
TLDR
En este articulo vamos a ver los conceptos de composición y plugin. Vamos a relacionarlos usando el framework Choo teniendo como objetivo la creación de un componente nuevo que otrxs tal vez pueden usar.
Intro
Choo es un framework para construir aplicaciones web (otro mas
To be used on concurrency notes/post:
About thundering herd problem:
- https://lkml.org/lkml/2004/5/2/108
- http://www.citi.umich.edu/projects/linux-scalability/reports/accept.html (possible linux solution)
- https://en.wikipedia.org/wiki/Lock_convoy
About exponential backoff (lil bit related to thundering -can cause it?-):
export CLICOLOR=1 | |
# Set colors to match iTerm2 Terminal Colors | |
export TERM=xterm-256color | |
export NVM_DIR="/Users/deka/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
source ~/.git-completion.bash |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" deka | |
" Based on the Awesome vimrc project by Amir Salihefendic | |
" https://github.com/amix/vimrc | |
" | |
" Sections: | |
" -> General | |
" -> VIM user interface | |
" -> Colors and Fonts |