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 PyPDF2 | |
pdf_path = '/your/path/to/pdf' | |
pdf_save_path = '/your/path/to/save/pdf' | |
# This attempts to remove annotations | |
with open(pdf_path, 'rb') as pdf_obj: | |
pdf = PyPDF2.PdfFileReader(pdf_obj) | |
pdf_out = PyPDF2.PdfFileWriter() | |
# remove all annotations |
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
con_enable "1" | |
dota_disable_range_finder "1" // Visual spell range indicator activated (default 1) | |
dota_minimap_hero_size "800" // Slightly bigger hero icons on minimap (default 600) | |
dota_minimap_misclick_time "0.3" // Threshold delay to accept minimap clicks (default 0.2) | |
dota_camera_accelerate "20" // Decelerating map scroll (50 = insta stop, 1 = smooth slowdown, vanilla DotA would be 50) | |
dota_player_multipler_orders "1" // Control all units with CTRL click (default 0) | |
dota_player_units_auto_attack "0" // Hero autoattack disabled (default 1) | |
dota_always_show_player_names "1" // Always show player names |
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 json | |
import asyncio | |
import aiohttp | |
from random import randint | |
class Queue: | |
def __init__(self, concurrency_limit): | |
self.semaphore = asyncio.Semaphore(concurrency_limit) |
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.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
namespace DefaultNamespace.Scripts | |
{ | |
public static class AudioPlayer |
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 | |
import subprocess | |
import sys | |
import json | |
# Run the command and capture the output | |
output_bytes = subprocess.check_output( | |
["/opt/homebrew/bin/displayplacer", "list"]) | |
# Decode the output bytes into a string |