Git 更換遠端伺服器倉庫網址URL
1.確認目前Git遠端伺服器網址: git remote -v
git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
2.更換Git遠端伺服器位網址,使用:git remote set-url
import random | |
# Play with different concentrations | |
for concentration in [0.0, 0.5, 1.0]: | |
# First customer always sits at the first table | |
# To do otherwise would be insanity | |
tables = [1] | |
# n=1 is the first customer |
""" | |
Dependencies: | |
pip install tabulate simplejson ujson yajl msgpack | |
""" | |
from timeit import timeit | |
from tabulate import tabulate | |
setup = '''d = { | |
'words': """ |
function utf8_to_b64( str ) { | |
return window.btoa(encodeURIComponent( escape( str ))); | |
} | |
function b64_to_utf8( str ) { | |
return unescape(decodeURIComponent(window.atob( str ))); | |
} | |
// Usage: | |
utf8_to_b64('✓ à la mode'); // JTI1dTI3MTMlMjUyMCUyNUUwJTI1MjBsYSUyNTIwbW9kZQ== |
Git 更換遠端伺服器倉庫網址URL
1.確認目前Git遠端伺服器網址: git remote -v
git remote -v
origin https://github.com/USERNAME/REPOSITORY.git (fetch)
origin https://github.com/USERNAME/REPOSITORY.git (push)
2.更換Git遠端伺服器位網址,使用:git remote set-url
<link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="favicon.ico"> | |
<!-- Mobile (Android, iOS & others) --> | |
<link rel="apple-touch-icon" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="favicon-72.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="favicon-114.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="favicon-120.png"> | |
<link rel="apple-touch-icon" sizes="144x144" href="favicon-144.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="favicon-152.png"> |
import math | |
import random | |
import csv | |
import cProfile | |
import numpy as np | |
import hashlib | |
memoization = {} | |
Download Google Drive files with WGET | |
Example Google Drive download link: | |
https://docs.google.com/open?id=[ID] | |
To download the file with WGET you need to use this link: | |
https://googledrive.com/host/[ID] | |
Example WGET command: |
Based on this links:
$ cd /usr/share/nginx/html/
A quick guide on how to setup Node.js development environment.
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.
console.log(`%c ________________________________________ | |
< mooooooooooooooooooooooooooooooooooooo > | |
---------------------------------------- | |
\\ ^__^ | |
\\ (oo)\\_______ | |
(__)\\ )\\/\\ | |
||----w | | |
|| ||`, "font-family:monospace") |