This file contains hidden or 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
ujson : https://pypi.org/project/ujson/ | |
**** | |
__all__ = ("findall", "findall_list", "last_downloaded_timestamp", "replace", "replace_with_desc") | |
__version__ = "1.1.0" | |
import datetime | |
import functools |
This file contains hidden or 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
import re | |
import ahocorasick | |
from operator import itemgetter | |
text = "The quick brown fox jumps over the lazy dog." | |
automaton = ahocorasick.Automaton() | |
automaton.add_word('fox', 'fox') | |
automaton.add_word('quick', 'quick') | |
automaton.add_word('over', 'over') |
This file contains hidden or 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
import timeit | |
from statistics import mean, stdev | |
import math | |
import matplotlib.pyplot as plt | |
import re2 | |
from flashtext import KeywordProcessor | |
import ahocorasick | |
import re | |
from scipy import stats | |
import time |
This file contains hidden or 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
This version uses an external JSON Parser | |
Sub JSON_Transform_Pivot_Chart() | |
'Declare variables | |
Dim wsSource As Worksheet | |
Dim wsDest As Worksheet | |
Dim rngSource As Range | |
Dim rngDest As Range | |
Dim jsonText As String | |
Dim jsonObject As Object |
This file contains hidden or 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
username = '' | |
password = '' | |
create_url = "/api/spaces/space" | |
URL= ':5601' | |
def requester(**kwargs): | |
headers = { | |
"Content-Type": "application/json", | |
"kbn-xsrf": "True", | |
} if not "files" in kwargs else { | |
"kbn-xsrf": "True", |
This file contains hidden or 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
{ | |
"anytime" : [ | |
"The universe is big. It’s vast and complicated and ridiculous. And sometimes, very rarely, impossible things just happen and we call them miracles.", | |
"Do what I do. Hold tight and pretend it’s a plan!", | |
"Some people live more in twenty years than others do in eighty. It’s not the time that matters, it’s the person.", | |
"Never cruel or cowardly. Never give up, never give in.", | |
"Rest is for the weary, sleep is for the dead.", | |
"There’s a lot of things you need to get across this universe. Warp drive… wormhole refractors… You know the thing you need most of all? You need a hand to hold.", | |
"Hermits United. We meet up every 10 years, swap stories about caves. It’s good fun… for a hermit.", | |
"I am and always will be the optimist. The hoper of far-flung hopes and the dreamer of improbable dreams.", |