Tambahkan list di bawah ke /etc/hosts.
Tambahkan list di bawah ke %System32%\Drivers\etc\hosts
| let anagram = (s1, s2) => | |
| s1.split('').sort().join('') === s2.split('').sort().join('') | |
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.
| git filter-branch -f --env-filter 'if [[ "$GIT_COMMIT" = "119900cd7054c64f2b8e4774e59afbfc39a28e73" ]]; then export GIT_COMMITTER_NAME="Lee Treveil" GIT_AUTHOR_NAME="Lee Treveil" GIT_COMMITTER_EMAIL="[email protected]" GIT_AUTHOR_EMAIL="[email protected]"; fi' HEAD |
| # Railscast | |
| http://railscasts.com/episodes/308-oh-my-zsh | |
| # Install Zsh | |
| sudo apt-get update && sudo apt-get install zsh | |
| # Install Oh-my-zsh | |
| wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
| # Make ZSH default shell |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| look process: | |
| `lsof -i :<PORT NUMBER> | |
| kill process | |
| `kill -9 <PID>` |
| class ClusteringQuality: | |
| """ | |
| Instances of this class implement the two measures of clustering quality discussed in the article, namely the davies | |
| bouldin index and the silhouette index. It also implements a number of useful helper methods. | |
| :param solution: the clustering solution of type Clustering | |
| :param minimum: the minimum distance allowable | |
| """ | |
| def __init__(self, solution, minimum): | |
| """ |
| import math | |
| import random | |
| import csv | |
| import cProfile | |
| import numpy as np | |
| import hashlib | |
| memoization = {} | |