Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| # Compiled Python files | |
| *.pyc | |
| # Folder view configuration files | |
| .DS_Store | |
| Desktop.ini | |
| # Thumbnail cache files | |
| ._* | |
| Thumbs.db |
Install Package Control for easy package management.
Ctrl+`
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
Django documentation says to use:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
repos.txt contains a list of repository names in {UserName}/{RepoName} format, e.g. IanZhao/to-be-deleted.
use this file to track all repositories you want to delete.fetchSaveRepo.js and update url with your github username.node-fetch to fetch contents, just do a npm init with default settings and run npm install node-fetch.node fetchSaveRepo.jsTOKEN_HERE in deleteRepos.sh| import bs4 | |
| import cssutils | |
| import logging | |
| import urlparse | |
| class HTML_cleaner(object): | |
| soup = None; | |
| highlighting_selectors = {} |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # reset keys | |
| unbind-key -n S-Left | |
| unbind-key -n S-Right | |
| # custom binding | |
| set -g prefix C-s | |
| bind C-s send-prefix |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |