Skip to content

Instantly share code, notes, and snippets.

View Divine1's full-sized avatar
🎯
Focusing

Divine C Divine1

🎯
Focusing
View GitHub Profile
@yauhen-info
yauhen-info / Links.txt
Last active July 8, 2019 17:52
Maven, Jersey, Tomcat Embedded sample
@d2s
d2s / installing-node-with-nvm.md
Last active March 13, 2024 12:09
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@ccnokes
ccnokes / axios-instance-config.js
Created July 6, 2017 16:23
Good default configuration for axios in node.js
const axios = require('axios');
const http = require('http');
const https = require('https');
module.exports = axios.create({
//60 sec timeout
timeout: 60000,
//keepAlive pools and reuses TCP connections, so it's faster
httpAgent: new http.Agent({ keepAlive: true }),

Frontend Masters: AWS for Frontend Engineers

You should have the following completed on your computer before the workshop:

  • Install the AWS CLI.
  • Have Node.js installed on your system. (Recommended: Use nvm.)
    • Install yarn with brew install yarn.
  • Create an AWS account. (This will require a valid credit card.)
  • Create a Travis CI account. (This should be as simple as logging in via GitHub).
const fs = require("fs");
setImmediate(() => {
process.stdout.write(`setImmediate (after poll phase)\n`);
process.nextTick(() => {
process.stdout.write(`nextTick (nested registered in setImmediate())\n`);
});
});
setTimeout(() => {
process.stdout.write(`setTimeout (timers phase)\n`);