Skip to content

Instantly share code, notes, and snippets.

@OverlordQ
OverlordQ / gist:6223288
Created August 13, 2013 17:04
'Fix' electrum text GUI
diff --git a/gui/gui_text.py b/gui/gui_text.py
index 2dd8c9c..3429376 100644
--- a/gui/gui_text.py
+++ b/gui/gui_text.py
@@ -51,10 +51,13 @@ class ElectrumGui:
pass
def restore_or_create(self):
- pass
+ return "create"
@OverlordQ
OverlordQ / GNP_CSV
Created January 9, 2014 23:41
US GNP CSV
observation_date,GNP
1947-01-01,244.1
1947-04-01,247.4
1947-07-01,251.2
1947-10-01,261.5
1948-01-01,267.6
1948-04-01,274.4
1948-07-01,281.0
1948-10-01,282.1
1949-01-01,276.8

Keybase proof

I hereby claim:

  • I am OverlordQ on github.
  • I am overlordq (https://keybase.io/overlordq) on keybase.
  • I have a public key whose fingerprint is C247 8B32 D24B BB13 0CAB D3D7 3E0E B56A D3FA 3831

To claim this, I am signing this object:

var flee = require('flee');
function checkPath(pos1, pos2) {
var path = pos1.findPathTo(pos2);
if (!path.length) {
return false;
}
return path[path.length - 1].x == pos2.x && path[path.length - 1].y == pos2.y;
}
#!/usr/bin/env python
import asyncio
import websockets
import binascii
import ujson as json
method_map = {
'6d01': 'Set Name',
'6d02': 'Post Memo',
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function clickAll(buttons) {
for (i = 0; i < buttons.length; i++) {
buttons[i].click();
}
}
async function unblock(timeoutMs, maxScrolls) {
var prevScrollY;
@OverlordQ
OverlordQ / measure_img_similarity.py
Created October 18, 2019 23:22 — forked from duhaime/measure_img_similarity.py
Compare image similarity in Python using Structural Similarity, Pixel Comparisons, Wasserstein Distance (Earth Mover's Distance), and SIFT
import warnings
from skimage.metrics import structural_similarity
from skimage.transform import resize
from scipy.stats import wasserstein_distance
import imageio
import numpy as np
import cv2
##
# Globals