LaTeX: To make blinking text (if you dare)
- TeX format: LaTeX.
- TeX engine: Anything.
- DVI driver: dvips / dvipdfmx / pdfTeX / XeTeX.
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Officially, this is not recommended. YMMV | |
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ | |
# | |
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# |
#!/usr/bin/env bash | |
set -e | |
DEVICE_NUMBER="9" | |
DEVICE_FILE="/dev/video${DEVICE_NUMBER}" | |
RTSP_URL="rtsp://username:password@WIFIFCAM:554" | |
# GitHub: iddo | |
# https://github.com/umlaeute/v4l2loopback/issues/109#issuecomment-617638198 |
// ==UserScript== | |
// @name PCS-Janitor | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Clean out all hidden submissions from PCS | |
// @author @floe, based on code by @karalix | |
// @match https://new.precisionconference.com/submissions* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |
/* So how does this work? | |
I'm using ANSI escape sequences to control the behavior of the terminal while | |
cat is outputting the text. I deliberately place these control sequences inside | |
comments so the C++ compiler doesn't try to treat them as code.*/ | |
//[2K[2D[A[2K[A[2K[A[2K[A[2K[A | |
/*The commands in the fake code comment move the cursor to the left edge and | |
clear out the line, allowing the fake code to take the place of the real code. | |
And this explanation uses similar commands to wipe itself out too. */ | |
//[2K[2D[A[2K[A[2K[A[2K[A | |
#include <cstdio> |
function drawImage(ctx, img, x, y, angle = 0, scale = 1){ | |
ctx.save(); | |
ctx.translate(x + img.width * scale / 2, y + img.height * scale / 2); | |
ctx.rotate(angle); | |
ctx.translate(- x - img.width * scale / 2, - y - img.height * scale / 2); | |
ctx.drawImage(img, x, y, img.width * scale, img.height * scale); | |
ctx.restore(); | |
} |
import numpy as np | |
import struct | |
def read_stl(filename): | |
with open(filename) as f: | |
Header = f.read(80) | |
nn = f.read(4) | |
Numtri = struct.unpack('i', nn)[0] | |
record_dtype = np.dtype([ |
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python (Updated for Python 3.7) | |
Usage: | |
./dummy-web-server.py -h | |
./dummy-web-server.py -l localhost -p 8000 | |
Send a GET request: |
/* | |
____ _____ | |
/\__ \ /\ ___\ | |
\/__/\ \ \ \ \__/_ | |
\ \ \ \ \____ \ | |
_\_\ \ \/__/_\ \ | |
/\ _____\ /\ _____\ | |
\/______/ \/______/ | |
Copyright (C) 2011 Joerg Seebohn |