This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * List unique CSS properties for all DOM elements | |
| * Initially created to list unique font stacks on a page | |
| * @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer} | |
| * | |
| * @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file} | |
| * | |
| * @author AndrewRMinion Design (https://andrewrminion.com) | |
| * @version 1.1 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Instructions for MacOS: | |
| - Install the fonts 'Operator Mono' & 'Fira Code' | |
| - Install theme 'Dark Candy' | |
| - Add the following config to the VS Code settings.json: | |
| { | |
| "editor.renderWhitespace": "all", | |
| "editor.fontSize": 14, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** WARNING - USE AT OWN RISK */ | |
| /** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */ | |
| /** https://sf.abarba.me/font.css */ | |
| /** https://sf.abarba.me/LICENSE.pdf */ | |
| /** 1. Copy/import this file into your main css/scss file */ | |
| /** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */ | |
| /** 3. Apply font-weight or italic to html elements */ | |
| /** THANK YOU */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Bash script to clone an easyengine webiste installation onto another (the destination site must exist already) | |
| # To debug, use set -xe | |
| # I personally prefer to create an alias, after I placed this file at ~/scripts/ | |
| # echo 'alias eeclone=". ~/scripts/eeclone.sh"' >> ~/.bash_aliases | |
| # . ~/.bash_rc to load the new alias | |
| # Note that the script will also create a log at the /var/www/destinationdomain.com/logs/ folder | |
| log () | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use Python 3 for easy unicode | |
| $ virtualenv -p python3 .env | |
| $ source .env/bin/activate | |
| $ pip install django | |
| $ deactivate | |
| # Start new django project and app | |
| $ django-admin.py startproject mysite | |
| $ ./manage.py migrate | |
| $ ./manage.py createsuperuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################### | |
| # Project | |
| ############################################################################### | |
| ############################################################################### | |
| # Python | |
| # https://github.com/github/gitignore/blob/master/Python.gitignore | |
| ############################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 20px; } | |
| @media (min-width: 768px){ | |
| body{ padding-top: 150px; } | |
| } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; max-width: 650px; margin: 0 auto; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |