This file contains 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
if (window.location.search.match( /print-pdf/gi )) { | |
(function () { | |
// Conditionally Load jQuery (javascript) | |
// Source: https://gist.github.com/gists/902090/ | |
var init, maybeLoadJq; | |
init = function() { |
This file contains 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
<?php | |
<<<CONFIG | |
packages: | |
- "willdurand/geocoder: ~3.0" | |
- "symfony/var-dumper: ~2.6" | |
CONFIG; | |
/** | |
* [PHP GeoCoder](https://github.com/geocoder-php/Geocoder) rulez! ♥ | |
*/ |
This file contains 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
import asyncio | |
import aiohttp | |
from _pytest.monkeypatch import MonkeyPatch | |
from app import test_utils | |
async def test_ping_1( | |
aiohttp_client: aiohttp.test_utils.TestClient, |
This file contains 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
# ~/.config/kitty/kitty.conf | |
# theme setting: kitty +kitten themes --reload-in=all Catppuccin-Mocha | |
# https://github.com/catppuccin/kitty | |
font_family Roboto Mono | |
font_size 12.0 | |
editor code | |
# enabled_layouts fat:bias=50;full_size=1 |
This file contains 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
import logging; db_logger = logging.getLogger("django.db.backends"); db_logger.addHandler(logging.StreamHandler()); db_logger.setLevel(logging.DEBUG) |
This file contains 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/env python | |
import sys | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"-l", | |
"--level", | |
choices=("e", "m", "h"), | |
default="m", |