npm update -g updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
npm update -g updates all global packages and their dependencies, see npm/npm#6247.
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| package com.test; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class MergeSort<T extends Comparable<T>> { | |
| public void sort(List<T> values){ | |
| mergeSort(0, values.size() - 1, values, new ArrayList<T>(values)); | |
| } |
| const { createServer } = require('http'); | |
| createServer((req, res) => { | |
| res.writeHead(200, { | |
| Connection: 'Transfer-Encoding', | |
| 'Content-Type': 'text/html; charset=utf-8', | |
| 'Transfer-Encoding': 'chunked' | |
| }); | |
| res.write(` |
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import scipy.stats as scs | |
| def z_val(sig_level=0.05, two_tailed=True): | |
| """Returns the z value for a given significance level""" | |
| z_dist = scs.norm() | |
| if two_tailed: | |
| sig_level = sig_level/2 | |
| area = 1 - sig_level |
This Gist give some tips in order to remove AWS Glacier Vault with AWS CLI (ie. https://aws.amazon.com/en/cli/).
$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION
| /** | |
| * Binary Tree | |
| * (c) 2014 Ben Lesh <ben@benlesh.com> | |
| * MIT license | |
| */ | |
| /* | |
| * A simple Binary Tree implementation in JavaScript | |
| */ |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"