Skip to content

Instantly share code, notes, and snippets.

@maxwellred
maxwellred / nodejs_installer.ps1
Created September 24, 2019 18:45 — forked from nweldev/nodejs_installer.ps1
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@maxwellred
maxwellred / callback-vs-promises.js
Created July 4, 2018 01:38 — forked from ambergkim/callback-vs-promises.js
JavaScript Callbacks vs Promises
// *******************
// callback version
// *******************
function getDataCallback(data) {
// do something with the new data data
}
function getData(callback) {
// getting the data