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
| .desktop-mode.application { | |
| margin: 0 auto; | |
| max-width: 1280px; | |
| } | |
| .desktop-mode.shadow-box { | |
| position: fixed; | |
| height: 100%; | |
| width: 100%; | |
| z-index: -99; | |
| max-width: 1280px; |
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
| from django.contrib.sessions.models import Session | |
| def yield_user_sessions(user): | |
| """Yield all Sessions associated with the user. | |
| Note: This is extremely inefficient, since we have to deserialize | |
| all existing Sessions. Consider this a debugging helper, not | |
| a production tool. Should we need more frequent access to this | |
| information, then adding a separate model to map users to |
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
| """ | |
| Displays WoW health and mana status on a Razer Chroma keyboard. | |
| Installation (Windows): | |
| $ virtualenv venv | |
| $ pip install requests | |
| $ easy_install pillow | |
| Usage: | |
| - Run WoW client fullscreen on main monitor |
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
| # -*- coding: utf-8 -*- | |
| """Scrape all historical soccer world cup match results into a JSON file.""" | |
| import json | |
| import requests | |
| from bs4 import BeautifulSoup | |
| urls = [ |
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 | |
| # | |
| # Assuming you have a running ngrok session, this snippet fetches the | |
| # https URL from ngrok's local API and renders it as a QR code in your | |
| # terminal. You can then scan it with a mobile phone to quickly load | |
| # that URL. | |
| # | |
| # Based on: | |
| # https://github.com/stedolan/jq/issues/861 | |
| # |
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
| """ | |
| Dependencies: | |
| $ pip install blinkstick | |
| """ | |
| from blinkstick import blinkstick | |
| def pytest_runtestloop(session): |
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
Show hidden characters
| [ | |
| { | |
| "button": "button1", | |
| "modifiers": ["alt"], | |
| "command": "select_underscored_word", | |
| }, | |
| ] |
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
| <template> | |
| <v-avatar v-if="user !== null" | |
| :size="size" | |
| :style="{'background-color': backgroundColor}"> | |
| <strong class="initials" | |
| :style="{'color': fontColor, | |
| 'font-size': fontSize}"> | |
| {{ (user.first_name[0] + user.last_name[0]) || '?' }} | |
| </strong> |
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
| { | |
| // Make sure to follow the README about 'Auto-complete for import | |
| // behaves badly' to enable autocompletion for 3rd party packages. | |
| // https://github.com/DamnWidget/anaconda#auto-complete-drop-down-shows-up-incorrectly | |
| // For some stupid reason this is not taken correctly from what our | |
| // project is using, so we duplicate it here. Otherwise validation | |
| // of imports and unused symbols doesn't work. | |
| "python_interpreter": "/home/<user>/.virtualenvs/<project>/bin/python", |