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 os | |
import PyPDF2 | |
def get_pdf_size(pdf_writer): | |
"""Estimate the size of the PDF by writing it to a temporary file.""" | |
import io | |
temp_stream = io.BytesIO() | |
pdf_writer.write(temp_stream) | |
return temp_stream.tell() / (1024 * 1024) # Convert bytes to MB |
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 os | |
import PyPDF2 | |
def merge_pdfs(input_directory, output_file): | |
# Create a PDF merger object | |
merger = PyPDF2.PdfMerger() | |
# Get a sorted list of all PDF files in the directory | |
pdf_files = sorted([f for f in os.listdir(input_directory) if f.lower().endswith('.pdf')]) | |
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
{ | |
"theme": "dark", | |
"themeVariables": { | |
"git0": "#aa00aa", | |
"git1": "#aa0000", | |
"git2": "#bb7700", | |
"git3": "#00aa00", | |
"git4": "#0055aa", | |
"git5": "#0077aa", | |
"git6": "#0088aa", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"Version": "0.1", | |
"Guid": { | |
"Guid": "00000000-0000-0000-0000-000000000000", | |
"DebugName": null | |
}, | |
"OwnerPlayerGuidString": "", | |
"OwnerPlayerId": 0, | |
"AuthorityPlayerId": 0, | |
"AssemblyOABConfig": { |
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
Quick Fix: | |
xinput set-prop 'TPK USA LLC Touch Fusion 4.' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1 | |
Full Fix via (https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=230554&p=1413454#p1413454): | |
install evdev and add the following to the ""evdev touchscreen catchall": | |
Option "SwapAxes" "true" | |
Option "InvertX" "true" | |
Option "InvertY" "false" |
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
<dashboard> | |
<label>Lab 3 - Web Store Server Error v2</label> | |
<search id="baseSearch"> | |
<query>| tstats summariesonly=t count from datamodel="bcg_ws_student9" by _time, host, sourcetype, bcg_ws_root_event.status, bcg_ws_root_event.action1, bcg_ws_root_event.product_name1, bcg_ws_root_event.price1 span=1s | rename bcg_ws_root_event.status as status, bcg_ws_root_event.action1 as action, bcg_ws_root_event.product_name1 as product_name, bcg_ws_root_event.price1 as price</query> | |
<earliest>-30d@d</earliest> | |
<latest>now</latest> | |
<sampleRatio>1</sampleRatio> | |
</search> | |
<row> | |
<panel> |
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
-- use it as service of automator | |
on run {input, parameters} | |
do shell script "date +%Y-%m-%d\\ %H.%M.%S" | |
set the clipboard to input & " - " & result as text | |
tell application "System Events" | |
the path to the frontmost application | |
the name of the result |
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
#MaxHotkeysPerInterval, 999 | |
$*space:: | |
IfWinActive, SPACEPLAN | |
{ | |
Loop | |
{ | |
if not GetKeyState("space", "P") | |
break | |
Send {space} | |
} |
NewerOlder