This will split the file input.pdf into (n + 1) files.
$ chmod +x splitPDF.py
$ ./splitPDF.py input.pdf splitPageNum_1 ... splitPageNum_n| // ==UserScript== | |
| // @name TFL Fare Total | |
| // @namespace https://contactless.tfl.gov.uk | |
| // @match https://contactless.tfl.gov.uk/NewStatements/Billing* | |
| // @match https://contactless.tfl.gov.uk/NewStatements/Journey* | |
| // @version 2.0 | |
| // @description Computes total fares and statistics on TFL payment history pages | |
| // @grant none | |
| // ==/UserScript== |
| #!/bin/bash | |
| # --- Function to process a single image file --- | |
| process_file() { | |
| # The file path is passed as the first argument to the function | |
| local FILE="$1" | |
| # Check if the file exists before proceeding | |
| if [ ! -f "$FILE" ]; then | |
| echo "Error: File not found: $FILE" >&2 |
| { | |
| "description": "Maps button 5 to left desktop switch, 4 to right desktop switch, 3 to mission control", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "pointing_button": "button5" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow", |
| // ==UserScript== | |
| // @name Vanguard UK Absolute Return Calculator | |
| // @namespace Violentmonkey Scripts | |
| // @match https://secure.vanguardinvestor.co.uk/* | |
| // @grant none | |
| // @version 1 | |
| // @author say4n | |
| // @description Native UI version: Blends seamlessly with Vanguard's aesthetic. | |
| // ==/UserScript== | |
| (function() { |
| Actually, that's a feature | |
| Don't worry, that value is only wrong half of the time | |
| Even though it doesn't work, how does it feel? | |
| Everything looks fine my end | |
| How is that possible? | |
| I broke that deliberately to do some testing | |
| I can have a look but there's a lot of if statements in that code! | |
| I can't make that a priority right now | |
| I can't test everything | |
| I couldn't find any examples of how that can be done anywhere else in the project |
| def number_of_disconnected_components(self, adj: List[List[int]]) -> int: | |
| n = len(adj) | |
| visited = set() | |
| components = 0 | |
| for i in range(n): | |
| if i not in visited: | |
| visited |= {i} | |
| components += 1 |
| #include <stdio.h> | |
| #include <string.h> | |
| // Compile with GCC for buffer overflow. :) | |
| // gcc -w -fno-stack-protector -o main main.c && ./main | |
| int main(void) { | |
| char A[8] = ""; | |
| unsigned short B = 1979; |
| # Disable Gatekeeper | |
| sudo spctl --master-disable | |
| # Enable Gatekeeper | |
| sudo spctl --master-enable |
| #! /usr/bin/env python3 | |
| from collections import defaultdict | |
| from pprint import pprint | |
| fname = "files.txt" | |
| files = [] | |
| with open(fname, "rt") as f: | |
| files = f.readlines() |