I hereby claim:
- I am llllvvuu on github.
- I am llwu (https://keybase.io/llwu) on keybase.
- I have a public key ASBegEzHvChNWe569jBMgHkkJPAmA7La4nhxghUB4gEdZgo
To claim this, I am signing this object:
infile=$1 | |
shift | |
outfile=$1 | |
shift | |
ffmpeg -dump_attachment:t "" -i "$infile" | |
mv *.ttf *.TTF *.otf *.OTF *.ttc *.TTC ~/.fonts | |
fc-cache -fv ~/.fonts | |
ffmpeg -i "$infile" -map 0:s:0 subs.ass | |
for var in "$@" | |
do |
# Mouse Emulation | |
# =============== | |
# | |
# This configuration file emulates a mouse. The left stick controls | |
# the cursor, the right stick becomes a horizontal and vertical scroll | |
# wheel, the dpad acts as cursor keys, the start and back buttons | |
# become forward and back buttons, the guide button escape and LB and | |
# RB become page up and page down and the face button act as mouse | |
# button. |
I hereby claim:
To claim this, I am signing this object:
Problem: https://twitter.com/littmath/status/1769044719034647001
Flip a fair coin 100 times—it gives a sequence of heads (H) and tails (T). For each HH in the sequence of flips, Alice gets a point; for each HT, Bob does, so e.g. for the sequence THHHT Alice gets 2 points and Bob gets 1 point. Who is most likely to win?
Proofs:
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
typedef struct { | |
uint32_t u, v; | |
} Edge; | |
/** |
""" | |
Adds a salt to every form field key in the PDF so that | |
when you merge it with other PDFs, the values don't get clobbered. | |
""" | |
import argparse | |
import uuid | |
from PyPDF2 import PdfReader, PdfWriter | |
from PyPDF2.generic import IndirectObject, PdfObject, TextStringObject |
async function uncheckAllWithDelay() { | |
const checkboxes = document.querySelectorAll('input[type="checkbox"], [role="checkbox"]'); | |
for (let i = 0; i < checkboxes.length; i++) { | |
const checkbox = checkboxes[i]; | |
if (checkbox.checked || checkbox.getAttribute('aria-checked') === 'true') { | |
const clickEvent = new MouseEvent('click', { | |
view: window, | |
bubbles: true, | |
cancelable: true | |
}); |
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
# Set up the figure and 3D axis | |
fig = plt.figure(figsize=(16, 14)) | |
ax = fig.add_subplot(111, projection='3d') | |
# Create the grid of x and y values | |
x = np.linspace(0.01, 1, 200) # Increased resolution |