Если есть проблемы с какой-то темой - переведите её название на английский, введите это в гугл - вероятно, это вам поможет.
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 |
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
| 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 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
| #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 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
| 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
| from z3 import * | |
| m = BitVec("m", 32) | |
| solver = Solver() | |
| divisor = 3 | |
| some_constant = 0x1234567 * divisor | |
| solver.add(some_constant * m == some_constant / divisor) |
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
| xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
| xrandr --addmode Virtual1 1920x1080 | |
| xrandr --output Virtual1 --mode 1920x1080 |
OlderNewer