Skip to content

Instantly share code, notes, and snippets.

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
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')
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 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
@blcarlson01
blcarlson01 / gist:9aaaf69c6d5b7f953633fea784385187
Created September 16, 2022 18:38
Kibana Spaces & ML API Notes
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",
{
"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.",