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 win32clipboard | |
| import random | |
| import string | |
| def change(): | |
| win32clipboard.OpenClipboard() | |
| data = list(win32clipboard.GetClipboardData()) | |
| for i in range(random.randint(0, (len(data) - 1))): | |
| data[random.randint(0, len(data) - 1)] = random.choice(string.ascii_letters + string.digits) |
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 java.io.*; | |
| import java.nio.file.*; | |
| import java.util.Scanner; | |
| public class IceCreamBytes { | |
| public static void main(String[] args) throws IOException { | |
| Path path = Paths.get("IceCreamManual.txt"); | |
| byte[] manualBytes = Files.readAllBytes(path); | |
| // Scanner keyboard = new Scanner(System.in); |
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
| #start | |
| #MARKER | |
| import os | |
| import sys | |
| original_code = "" | |
| def get_original_code(): | |
| global original_code | |
| with open(sys.argv[0]) as file: | |
| original_code = file.read() |
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 random | |
| numberOfTests = 30 | |
| for i in range(numberOfTests): | |
| randomList = random.sample(range(-100000, 100000), random.randint(10, 30)) | |
| test = 'new object[]\n{\n\tnew List<int>() {' + ", ".join(list(map(str, randomList))) + '}, new List<int>() {' + ", ".join((list(map(str, sorted(randomList))))) + '},\n},' | |
| print(test) |
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
| void PrettyPrint(SyntaxNode node, string indent = "", bool isLast = true) | |
| { | |
| var marker = isLast ? "└──" : "├──"; | |
| Console.Write(indent); | |
| Console.Write(marker); | |
| Console.Write(node.Kind); | |
| if (node is SyntaxToken token && token.Value != null) | |
| { |
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 xml.etree.ElementTree as ET | |
| import re | |
| import sympy | |
| tree = ET.parse('sheet1.xml') | |
| root = tree.getroot() | |
| formulas = list() | |
| def get_children(root): |
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
| Fuzzing |
NewerOlder