Extract and create archive files
-xExtract-z(De)compress archive with gzip-vVerbose-fLocation of archive
Install Xcode Command Line Tools.
xcode-select --installInstall 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
| # 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 () { |
prototypeInfinity/-Infinity+0/-0null 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 |