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
1 0 LOAD_CONST 0 (0) | |
2 LOAD_CONST 1 (('loads',)) | |
4 IMPORT_NAME 0 (json) | |
6 IMPORT_FROM 1 (loads) | |
8 STORE_NAME 1 (loads) | |
10 POP_TOP | |
2 12 LOAD_CONST 0 (0) | |
14 LOAD_CONST 2 (('choice',)) | |
16 IMPORT_NAME 2 (random) |
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
// ==UserScript== | |
// @name Reply Saver | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Saves unposted top-level replies to localStorage, and restores them on nav back to the page. | |
// @author carcigenicate | |
// @match https://old.reddit.com/r/*/comments/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
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
const obsArr = [ | |
'.', | |
'-', | |
'replaceAll', | |
'ip', | |
':', | |
'hostname', | |
'location', | |
'', | |
'unk.com', |
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
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
// ==UserScript== | |
// @name Seed Counter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Counts seeds | |
// @author carcigenicate | |
// @match https://www.zeldadungeon.net/breath-of-the-wild-interactive-map?* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Subtitle Language Changer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Spawns a small textbox and button to easily allow changing YouTube's subtitle language. | |
// @author You | |
// @match https://www.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
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 unittest import TestCase | |
from my_dataclass import MyDataclass | |
class BasicTestCaseBase(TestCase): | |
def setUp(self): | |
class TestClass(MyDataclass): | |
a: int | |
b: int |
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
using namespace System.Net.Sockets | |
$Encoder = [System.Text.Encoding]::UTF8 | |
$SIZE_BUFFER_SIZE = 4 | |
$PROMPT = ">>> " | |
function Read-NBytes { | |
Param($Stream, $NToRead) |
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
using namespace System.Net.Sockets | |
$Encoder = [System.Text.Encoding]::UTF8 | |
$REMOTE_HOST = "127.0.0.1" | |
$REMOTE_PORT = 1234 | |
$N_CONNECT_RETIRES = 5 | |
$SIZE_BUFFER_SIZE = 4 |
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
class BadIterable: | |
def __iter__(self): | |
class Iterator: | |
def __init__(self): | |
self.n = 0 | |
def __next__(self): | |
return self.n | |
def __iter__(self): | |
return self | |
def advance(self, by): |
NewerOlder