Extract and create archive files
-x
Extract-z
(De)compress archive with gzip-v
Verbose-f
Location of archive
Install Xcode Command Line Tools.
xcode-select --install
Install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Divergence-convergence model by Béla H. Bánáthy
Double Diamond by British Design Council
First time only.
mkdir myproject
cd myproject/
python -m venv venv
source venv/bin/activate
git clone [email protected]:username/myproject.git
# Create environment | |
mkvirtualenv -p python3 mydjangopackage | |
pip install django sphinx sphinx-autobuild sphinx-rtd-theme | |
# Create demo environment | |
mkvirtualenv -p python3 mydjangopackagedemo | |
pip install django gunicorn psycopg2 whitenoise dj-database-url | |
# Create docs | |
mkdir docs |
// One global variable for all your JavaScript | |
var MY_SITE = window.MY_SITE || {}; | |
// Requires jQuery | |
// Global jQuery object is aliased to avoid polluting global namespace with "$" | |
MY_SITE = (function ($) { | |
'use strict'; | |
var private_function; |
// H5BP Front-end Developer Interview Questions | |
// https://github.com/h5bp/Front-end-Developer-Interview-Questions#jscode | |
// Usage: | |
// 1 = add(1)(); | |
// 3 = add(1, 2)(); | |
// 6 = add(1, 2)(3); | |
// 10 = add(1, 2)(3, 4); | |
// 0 = add()(); | |
var add = function () { |
prototype
Infinity
/-Infinity
+0
/-0
null
is an objectNaN === NaN
is always falsetypeof
always returns object"
for all different reference typesNaN
(not a number) is literally "number"
but as a stringvoid
looks like a Java class but its only job is to return undefined
# First time | |
mkdir gh-pages | |
touch gh-pages/index.html | |
git add gh-pages | |
git commit -m "First commit of GitHub Pages branch" | |
git push origin master | |
# Subsequent times | |
# Edit, save, commit, push files inside gh-pages directory | |
git subtree push --prefix gh-pages origin gh-pages |
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |