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 System; | |
using System.IO; | |
using Spire.Doc; | |
using Spire.Doc.Documents; | |
namespace doc_to_text | |
{ | |
public class DocxConverter | |
{ | |
public enum OutputFormat |
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 os | |
import re | |
def find_cyrillic_in_files(directory, extensions): | |
# Регулярное выражение для поиска кириллических букв | |
cyrillic_pattern = re.compile(r'[А-Яа-яЁё]') | |
# Обход всех файлов в директории | |
for root, _, files in os.walk(directory): | |
for file in files: |
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
see 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
import datetime | |
from decimal import Decimal | |
class Transaction: | |
def __init__(self, date, amount, description, transaction_type): | |
self.date = date | |
self.amount = Decimal(amount) | |
self.description = description | |
self.transaction_type = transaction_type # 'income' or 'expense' |
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 python | |
import sys | |
from peepdf.PDFCore import PDFParser, PDFObject, PDFDictionary | |
def check_cyrillic_support(pdf_file): | |
parser = PDFParser() | |
ret, pdf = parser.parse(pdf_file) |
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
#include <iostream> | |
#include "hokk.hpp" | |
using memcmp_t = int(__cdecl*)(const void* buf1, const void* buf2, size_t count); | |
int __cdecl hk_memcmp(const void* buf1, const void* buf2, size_t count) { | |
printf("[DEBUG] Hook called!\n"); | |
printf("[DEBUG] First buffer: %.*s\n", (int)count, (char*)buf1); | |
printf("[DEBUG] Second buffer: %.*s\n", (int)count, (char*)buf2); | |
printf("[DEBUG] Compare length: %zu\n", count); |
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 ida_kernwin | |
import ida_idaapi | |
import ida_name | |
import ida_funcs | |
import idautils | |
import idc | |
class ExitFinder(ida_kernwin.Choose): | |
def __init__(self): | |
ida_kernwin.Choose.__init__(self, |
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
// addscn.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <iostream> | |
#include <windows.h> | |
#include <string> | |
#include <memory> | |
#include <system_error> | |
#include <sstream> |
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
#include <iostream> | |
#include <windows.h> | |
#include <setupapi.h> | |
#include <winscard.h> | |
#include <string> | |
#include <string_view> | |
#include <future> | |
#include <atomic> | |
#include <chrono> | |
#include <thread> |
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 demonstrates how to interact with a VMware virtual machine using VIX API. | |
* It performs various guest operations on a Linux VM including: | |
* - Getting system information using 'uname' | |
* - Getting current directory using 'pwd' | |
* - Handling file operations and command execution | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
OlderNewer