Lightweight implementation of fetch api
import fetch from './fetch'I hereby claim:
To claim this, I am signing this object:
Ever wanted to update a Customer.io environment using a CSV that you have, maybe acquired from an event, or exported?
Now you can.
You can obtain your Customer.io credentials on the integration page.
I wrote this after having built Kong from scratch and having to remove / reverse engineer some brew packages.
Note this will remove your current environment and build a new one.
Note #2 This does not install OpenSSL, I used brew to install it instead.
| var store = require('store') | |
| var page = require('page') | |
| var m = require('mithril') | |
| var containers = [] | |
| var internalState = [] | |
| var xstore = { | |
| set: function(key, val, exp) { | |
| store.set(key, { val:val, exp:exp, time:new Date().getTime() }) | |
| }, |
Document for the best design choices you can make for your software.
Terminology
components containing all component files.File Structure
Structuring applications is hard, here are a few resources to help.
| function pify (method, context) { | |
| var resolver, rejector | |
| var error, success | |
| var done = false | |
| var promise = { | |
| then: function (a) { | |
| if (!done && success != null) done = true, a(success); else resolver = a | |
| return { catch: promise.catch } | |
| }, |
Download files over a Socks Proxy
$ scp -i <pem_key> -o ProxyCommand="nc -x localhost:<proxy_port> %h %p" <ec2_user>@<private_ip>:<file_path> <local_path>Dump MongoDB and Create TAR File
$ mongodump --db --out ./dump| var https = require('https') | |
| function check (body, callback) { | |
| if (typeof body === 'function') { | |
| callback = body | |
| body = null | |
| } | |
| body = body || {} | |
| callback = callback || function () {} |
Extremely quick POC caching for NPM v3
Warning
This file is a proof-of-concept, and is not at all a reliable patch. This simply tests whether it would be faster (for HDD / CPU) to cache all package.json lookups in the read-package-tree module versus reloading every time.
From my findings it goes for me personally on a project with (80 modules) from 20 minutes to 3 seconds
Notes