Skip to content

Instantly share code, notes, and snippets.

Avatar

OverlordQ

  • Washington, D.C.
View GitHub Profile
@OverlordQ
OverlordQ / measure_img_similarity.py
Created Oct 18, 2019 — 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
View measure_img_similarity.py
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
View Twitter Mass Unblock
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;
View MemoCashClient
#!/usr/bin/env python
import asyncio
import websockets
import binascii
import ujson as json
method_map = {
'6d01': 'Set Name',
'6d02': 'Post Memo',
View screeps-invader-attack.js
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;
}
View keybase.md

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:

View 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
@OverlordQ
OverlordQ / gist:6223288
Created Aug 13, 2013
'Fix' electrum text GUI
View gist:6223288
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"
You can’t perform that action at this time.