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
#!/usr/bin/env python | |
import csv | |
import re | |
import sys | |
from playwright.sync_api import sync_playwright | |
from tablib import Dataset | |
from pdfplumber import PDF |
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
// Extensions -> Apps Script | |
// Make sure to save project (no need to "Deploy") | |
function html2text(html) { | |
const document = XmlService.parse(html); | |
const strText = XmlService.getPrettyFormat().format(document); | |
return strText.replace(/<[^>]*>/g,"").trim(); | |
} |
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
from sqlalchemy import create_engine | |
from sqlalchemy import select | |
from sqlalchemy import Column | |
from sqlalchemy import ForeignKey | |
from sqlalchemy import Integer | |
from sqlalchemy import String | |
from sqlalchemy.orm import declarative_base | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.orm import Session |
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
#!/bin/bash | |
# | |
# pypi-search.sh | |
# Author: Brandon Roberts (bxroberts.org) | |
# | |
# This is a simple Python package search script. It uses | |
# Hext (https://hext.thomastrapp.com/) to extract results | |
# from a HTTP search request. | |
# | |
# Install Hext for this to work: pip install hext |
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
# Damerau-Levenshtein edit distance implementation for Python 3 | |
# Python 3 compatable, forked from: https://gist.github.com/pombredanne/0d83ad58f45986ddeb0917266e106be0 | |
# Which was based on: https://gist.github.com/badocelot/5327427 | |
# Which was based on pseudocode from Wikipedia: https://en.wikipedia.org/wiki/Damerau-Levenshtein_distance | |
# Possible improvement by treating 1 addition + 1 deletion = 1 substitution | |
# between transposed characters: | |
# | |
# Damerau-Levenshtein distance for "abcdef" and "abcfad" = 3: | |
# 1. substitute "d" for "f" |
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
# pos special_freq upper_freq lower_freq digit_freq | |
# gnuplot 5.2 | |
Position Special Uppercase Lowercase Digits - - - - - - - - - - - - - - - - - - TOTAL | |
1 - - 4712 - - - - - - - - - - - - - - - - - - - 4712 | |
2 - - - 4712 - - - - - - - - - - - - - - - - - - 4712 | |
3 - 4712 - - - - - - - - - - - - - - - - - - - - 4712 | |
4 1601 - 1579 1532 - - - - - - - - - - - - - - - - - - 4712 | |
5 1619 261 1314 1518 - - - - - - - - - - - - - - - - - - 4712 | |
6 1546 446 1152 1568 - - - - - - - - - - - - - - - - - - 4712 | |
7 1511 533 1134 1534 - - - - - - - - - - - - - - - - - - 4712 |
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
# coding: utf-8 | |
from __future__ import print_function | |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers import Embedding | |
window_size = 1 | |
# using skipgram embeddings built using fasttext: | |
# fasttext skipgram -input dataset -output dataset.skipgram |
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
diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include | |
index 96123e4..eeaabeb 100644 | |
--- a/src/Makefile.qt.include | |
+++ b/src/Makefile.qt.include | |
@@ -96,6 +96,8 @@ QT_FORMS_UI = \ | |
qt/forms/debugwindow.ui \ | |
qt/forms/sendcoinsdialog.ui \ | |
qt/forms/sendcoinsentry.ui \ | |
+ qt/forms/managenamespage.ui \ | |
+ qt/forms/configurenamedialog.ui \ |