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
""" | |
Inspired by this approach: | |
- https://twitter.com/zzzeek/status/1279069782533386247 | |
- https://gist.github.com/zzzeek/2a8d94b03e46b8676a063a32f78140f1 | |
- https://gist.github.com/zzzeek/33943060f7a08cf9e82bf8df1f0f75de, https://gist.github.com/zzzeek/4e89ce6226826e7a8df13e1b573ad354#file-asyncio_plus_greenlet-py-L28 | |
Essentially we use greenlets to make the IO layer async and the top layer uses async/await, but everything in | |
between can be regular sync code. |
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
license: mit | |
height: 620 | |
scrolling: no | |
border: no |
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
height: 700 |
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
name: English Wiktionary | |
sounds: { | |
"be": "b", | |
"pe": "p", | |
"te": "t", | |
"se": "s", | |
"jim": "j", | |
"ce": "č", | |
"he_jimi": "h", |
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
# Tweak the existing Logging integration to work with Logbook. | |
# Mostly copy-paste from https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/logging.py | |
# | |
# Usage: | |
# | |
# StreamHandler(sys.stdout, level="INFO").push_application() | |
# SentryErrorHandler(bubble=True, level='ERROR').push_application() | |
# SentryBreadcrumbHandler(bubble=True, level='INFO').push_application() | |
# |
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
### Keybase proof | |
I hereby claim: | |
* I am miracle2k on github. | |
* I am elsdoerfer (https://keybase.io/elsdoerfer) on keybase. | |
* I have a public key ASD548x7P5cmu4F2pBU1k6kVuRAkV9P3Xn_lOZChUuj9pgo | |
To claim this, I am signing this object: |
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
root@mail1:~# dig +trace hwoestate.com | |
; <<>> DiG 9.9.5-3ubuntu0.19-Ubuntu <<>> +trace hwoestate.com | |
;; global options: +cmd | |
. 504396 IN NS c.root-servers.net. | |
. 504396 IN NS g.root-servers.net. | |
. 504396 IN NS j.root-servers.net. | |
. 504396 IN NS b.root-servers.net. | |
. 504396 IN NS l.root-servers.net. | |
. 504396 IN NS k.root-servers.net. |
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
""" | |
Convert the output from Google Cloud Speech Recognition to ELRC. | |
""" | |
import json, sys | |
class ELRC: | |
def __init__(self): | |
self.lines = [] |
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
function fetchWithProgress(url, opts={}, onProgress) { | |
return new Promise((resolve, reject) => { | |
const xhr = new XMLHttpRequest(); | |
xhr.open(opts.method || 'get', url); | |
for (var k in opts.headers || {}) { | |
xhr.setRequestHeader(k, opts.headers[k]); | |
} | |
xhr.onload = e => { |
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
// Generated with NODE_ENV=development yarn run babel node_modules/react-native-gesture-handler/touchables/GenericTouchable.js --presets module:metro-react-native-babel-preset --compact false | |
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | |
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = exports.TOUCHABLE_STATE = void 0; |
NewerOlder