Skip to content

Instantly share code, notes, and snippets.

View justquick's full-sized avatar
⚙️
Contemplating the Infinite

Justin Quick justquick

⚙️
Contemplating the Infinite
View GitHub Profile
PREFECT_API_DATABASE_CONNECTION_URL="postgresql+asyncpg://prefect:prefect@localhost:5432/prefect"
PREFECT_LOGGING_SERVER_LEVEL=DEBUG
PREFECT_LOGGING_LEVEL=DEBUG
PREFECT_LOGGING_INTERNAL_LEVEL=DEBUG
@justquick
justquick / cached_property.py
Created December 19, 2022 05:05
from python 3.8.6
class cached_property:
def __init__(self, func):
self.func = func
self.attrname = None
self.__doc__ = func.__doc__
self.lock = RLock()
def __set_name__(self, owner, name):
if self.attrname is None:
self.attrname = name
<!DOCTYPE html>
<html lang="en">
<head>
<style>
@font-face {
font-family: Fira Sans;
font-weight: 500;
src: url(http://fonts.gstatic.com/s/firasans/v11/va9E4kDNxMZdWfMOD5VfkILKSTbndQ.ttf);
[2015-04-13 15:23:07,321] [INFO] Startup: Welcome to Komodo Edit 9.0.0 build 15707 (platform macosx, running on Darwin 14.3.0 version Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64)
[2015-04-13 15:23:07,322] [INFO] Startup: /Users/jquick/Applications/Komodo Edit 9.app/Contents/MacOS/komodo built on Thu Mar 19 06:08:01 2015
[2015-04-13 15:23:07,394] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-04-13 15:23:07,653] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-04-13 15:23:07,653] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///Users/jquick/Applications/Komodo%20Edit%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/com
[2015-04-10 17:05:27,973] [INFO] Startup: Welcome to Komodo Edit 9.0.0 build 15707 (platform macosx, running on Darwin 14.3.0 version Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64)
[2015-04-10 17:05:27,973] [INFO] Startup: /Users/jquick/Applications/Komodo Edit 9.app/Contents/MacOS/komodo built on Thu Mar 19 06:08:01 2015
[2015-04-10 17:05:28,064] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-04-10 17:05:28,301] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-04-10 17:05:28,302] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///Users/jquick/Applications/Komodo%20Edit%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/com
[2015-04-10 16:22:28,804] [INFO] Startup: Welcome to Komodo Edit 9.0.0 build 15707 (platform macosx, running on Darwin 14.3.0 version Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64)
[2015-04-10 16:22:28,804] [INFO] Startup: /Users/jquick/Applications/Komodo Edit 9.app/Contents/MacOS/komodo built on Thu Mar 19 06:08:01 2015
[2015-04-10 16:22:28,868] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-04-10 16:22:29,061] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-04-10 16:22:29,061] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///Users/jquick/Applications/Komodo%20Edit%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/com
[2015-04-10 16:13:55,594] [INFO] Startup: Welcome to Komodo Edit 9.0.0 build 15707 (platform macosx, running on Darwin 14.3.0 version Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64)
[2015-04-10 16:13:55,594] [INFO] Startup: /Users/jquick/Applications/Komodo Edit 9.app/Contents/MacOS/komodo built on Thu Mar 19 06:08:01 2015
[2015-04-10 16:13:55,656] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-04-10 16:13:55,902] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-04-10 16:13:55,902] [WARNING] console-logger: Bootstrapped manifest not allowed to use 'component' directive. (1) in file:///Users/jquick/Applications/Komodo%20Edit%209.app/Contents/Resources/extensions/scope-files@activestate.com/components/com
import haystack
from django.core.management import call_command
from django.test.utils import override_settings
TEST_INDEX = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
"http://PRIORITY TOPICS FINANCING DCL&mdash;QUESTIONS ARE SURFACING. Questions began to surface about DCL funds in January when we learned the Lake Management Office is down to just one full time staff person, a mid-level Natural Resources Planner III who earns $62,025. Revenues for 2013 were $844,082. What has happened to the balance of the funds? Where are &ldquo;our&rdquo; Lake Management Funds? Barbara Beelar expressed her concern in recent Letter to the Editor. Http://friendsofdcl.org/2014/02/letter-to-the-editor-the-republican-newsletter-january-16-2014/ Background: Under the law, the Policy and Review Board &ldquo;may review and advise&rdquo; the DNR Secretary on budgetary matters. However, this task has been mostly overlooked since the creation of this Board. In response to recent questions, DNR provided to the PRB members a document, in anticipate of the January meeting, which was cancelled. (link) While we await Hoffman&rsquo;s presentation on March 20, which you can hear via tele-confer
@justquick
justquick / gist:3249273
Created August 3, 2012 16:33
twitter logging example using werkzeug's reloader
import os
import sys
import signal
import json
import requests
from subprocess import call
from time import time, sleep
from itertools import chain
try:
from urllib import urlopen