This will split the file input.pdf into (n + 1) files.
$ chmod +x splitPDF.py
$ ./splitPDF.py input.pdf splitPageNum_1 ... splitPageNum_n
{ | |
"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 Vangugard Real Return | |
// @namespace https://sayan.page/ | |
// @version 2024-05-10 | |
// @description Vangugard show real return instead of IRR. | |
// @author say4n | |
// @match https://secure.vanguardinvestor.co.uk/en-gb/customer/home/*/investments/personals* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=www.vanguardinvestor.co.uk | |
// @run-at document-idle | |
// @grant none |
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() |
black = '#282c34'; | |
red = '#e06c75'; // red | |
green = '#98c379'; // green | |
yellow = '#d19a66'; // yellow | |
blue = '#56b6c2'; // blue | |
magenta = '#c678dd'; // pink | |
cyan = '#56b6c2'; // cyan | |
white = '#d0d0d0'; // light gray | |
lightBlack = '#808080'; // medium gray | |
lightRed = '#e06c75'; // red |
#! /usr/bin/env zsh | |
rm -rf build | |
mkdir -p build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-O0 -g" -DCMAKE_C_FLAGS="-O0 -g" .. |