Discover gists
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
import time | |
import random | |
import numba as nb | |
import numpy as np | |
import pandas as pd | |
from copy import deepcopy | |
# For type hinting | |
from typing import Tuple |
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
# Code licensed LGPLv3 by Jérémie Lumbroso <lumbroso@cs.princeton.edu> | |
import difflib | |
import itertools | |
import textwrap | |
import typing | |
def side_by_side( | |
left: typing.List[str], |
https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/22MD4KA_MP7/FWLatestVersion.txt https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/27MD5KA_MP4/FWLatestVersion.txt https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/27MD5KL_TBT_PD/FWLatestVersion.txt https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/24MD4KL_TBT_PD/FWLatestVersion.txt
https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/22MD4KA_MP7/ https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/27MD5KA_MP4/ https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/27MD5KL_TBT_PD/ https://lmu.lge.com/ExternalService/lgscreenmanager/mac/FW/24MD4KL_TBT_PD/
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
/* | |
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc> | |
NOTE - 2021-05-24 | |
----------------- | |
The script below isn't the fastest way to copy-and-paste from a protected | |
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from | |
the comments: |
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
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
<select id="country" name="country" class="form-control"> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |
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
/* | |
* File: sockets.h | |
* Author: Will Eccles | |
* Date: 2020-03-12 | |
* | |
* 1. Description | |
* | |
* This header attempts to make it easy to use sockets across platforms, | |
* for both Windows and POSIX systems. While Winsock is often somewhat | |
* compatible with Berkeley sockets, it is not strictly compatible, |
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 python3.11 | |
""" | |
MIT License | |
For the full text of the MIT License, please visit: | |
https://opensource.org/licenses/MIT | |
""" | |
""" |
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
import concurrent.futures | |
import multiprocessing | |
import sys | |
import uuid | |
def globalize(func): | |
def result(*args, **kwargs): | |
return func(*args, **kwargs) | |
result.__name__ = result.__qualname__ = uuid.uuid4().hex | |
setattr(sys.modules[result.__module__], result.__name__, result) |
NewerOlder