Skip to content

Instantly share code, notes, and snippets.

View table.json
name: English Wiktionary
sounds: {
"be": "b",
"pe": "p",
"te": "t",
"se": "s",
"jim": "j",
"ce": "č",
"he_jimi": "h",
View sentry_logbook_handler.py
# 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()
#
View gist:9912c67ce690bb14285768d12d60e162
### 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:
View gist:0ec14521c9fa9dbacbd4fc0f4f2b7622
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.
@miracle2k
miracle2k / convert.py
Created Feb 22, 2019
Convert the output from Google Cloud Speech Recognition to ELRC.
View convert.py
"""
Convert the output from Google Cloud Speech Recognition to ELRC.
"""
import json, sys
class ELRC:
def __init__(self):
self.lines = []
View fetch-upload.js
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 => {
View GenericTouchable-babel-with-metro-preset.js
// 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;
View api.js
{
'workItems': [
{
'id': f"1111-2222-333",
'photoUrl': "https://landesblog-nrw-braucht-das.de/wp-content/uploads/2015/03/Eichhorn-auf-Grabstein.jpg",
'workOrder': 1,
'latitude': 42,
'longitude': 1
},
...
View gist:6cc7674148177d20fa310be4ce52fd5a
const tourSchema = {
version: 0,
title: 'tour schema',
description: 'describes a tour details',
type: 'object',
properties: {
name: {
type: 'string',
},
id: {
View gist:a19d9688fd9f350e05b25d3cfea6bd31
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/Users/michael/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ddd20d2eeaac5cf966cb215a87d3809/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
/Users/michael/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ddd20d2eeaac5cf966cb215a87d3809/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
/Users/michael/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ddd20d2eeaac5cf966cb215a87d3809/res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/Users/michael/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ddd20d2eeaac5cf966cb215a87d3809/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle no
You can’t perform that action at this time.