Proxy Config Format:
proxy_http=username:password@proxy-host:port
When you do not need to force the system to be under the proxy.
- Open a Terminal window where you need proxy access.
- Set and export the HTTP_PROXY variable.
import math | |
import merz | |
from mojo.UI import PostBannerNotification, getDefault, setDefault, UpdateCurrentGlyphView, getGlyphViewDisplaySettings, setGlyphViewDisplaySettings, preferencesChanged, inDarkMode | |
from mojo.subscriber import Subscriber, registerGlyphEditorSubscriber, unregisterGlyphEditorSubscriber, listRegisteredSubscribers | |
from ufoProcessor.emptyPen import DecomposePointPen | |
class CustomMeasureTool(Subscriber): | |
debug = True |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8 |
This gist lists challenges you run into when building offline-first applications based on IndexedDB, including open-source libraries like Firebase, pouchdb and AWS amplify (more).
Note that some of the following issues affect only Safari. Out of the major browsers, Chrome's IndexedDB implementation is the best.
When this bug occurs, every time you use the indexeddb, the WAL file grows. Garbage collection doesn't seem to be working, so after a while, you end up with gigabytes of data.
""" | |
"Hello world" example of using Metal from Python. | |
This script can be run from the command line just like any other Python file. No | |
need for Xcode or any other IDE. Just make sure you have the latest version of | |
Python 3 installed, along with the PyObjC and pyobjc-framework-Metal packages. | |
""" | |
import Metal | |
import ctypes |
/** -- | |
** Copyright (C) 2019 by Josh van den Heever | |
** | |
** Permission is hereby granted, free of charge, to any person obtaining a copy of | |
** this software and associated documentation files (the "Software"), to deal in | |
** the Software without restriction, including without limitation the rights to | |
** use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
** of the Software, and to permit persons to whom the Software is furnished to | |
** do so, subject to the following conditions: | |
** |