I hereby claim:
- I am renkasiyas on github.
- I am renkasiyas (https://keybase.io/renkasiyas) on keybase.
- I have a public key ASAKf9pLIU036xqoRv0iFl6EUSJYNdrj3jwWU-KVE-f99wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| function load_all_relational_events( $query ) | |
| { | |
| if (is_admin() && $query->tribe_is_event) { | |
| $query-/set('eventDisplay', 'all'); | |
| } | |
| } | |
| add_filter('pre_get_posts', 'load_all_relational_events'); |
| /** | |
| * 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 | |
| * |
| /* | |
| 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, |
| /** 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 */ |
| #!/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 () | |
| { |
| # 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 |
| ############################################################################### | |
| # Project | |
| ############################################################################### | |
| ############################################################################### | |
| # Python | |
| # https://github.com/github/gitignore/blob/master/Python.gitignore | |
| ############################################################################### |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| <!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; } |