This file contains 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
# This is just an example to get you started. A typical binary package | |
# uses this file as the main entry point of the application. | |
import std/posix | |
type | |
Winsize* = object | |
ws_row*: cushort | |
ws_col*: cushort | |
ws_xpixel*: cushort |
This file contains 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
#!/usr/bin/env bash | |
#sudo rmmod v4l2loopback | |
#sudo modprobe v4l2loopback devices=1 card_label="KEV CAM" | |
# -vf "drawtext=fontfile=/home/krpors/Development/qualogy/qualogy-revealjs/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf:text='Tijn sux':fontcolor=white:fontsize=48:box=1:[email protected]:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" \ | |
# pix_fmt yuv420p is required for firefox etc! | |
ffmpeg \ | |
-i /dev/video0 \ |
This file contains 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 time | |
import board | |
from rainbowio import colorwheel | |
import neopixel | |
import random | |
import touchio | |
OFF = (0, 0, 0) | |
RED = (255, 0, 0) |
This file contains 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 org.bouncycastle.asn1.ASN1Encodable; | |
import org.bouncycastle.asn1.DERSequence; | |
import org.bouncycastle.asn1.x500.X500Name; | |
import org.bouncycastle.asn1.x509.BasicConstraints; | |
import org.bouncycastle.asn1.x509.Extension; | |
import org.bouncycastle.asn1.x509.GeneralName; | |
import org.bouncycastle.asn1.x509.KeyUsage; | |
import org.bouncycastle.cert.X509CertificateHolder; | |
import org.bouncycastle.cert.X509v3CertificateBuilder; | |
import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter; |
This file contains 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
#!/usr/bin/env bash | |
# Clear the screen, run the initial command in the background immediately, | |
# and then get the PID. We need that to kill it later (if the program is a | |
# server/daemon or the like). | |
${*} & | |
pid=$! | |
# Now run inotifywait and only act on certain events, recursively. | |
# Kill the previous PID (if applicable). Will output an error if the |
This file contains 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
#include <assert.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <inttypes.h> | |
#include <time.h> | |
#include <SDL.h> |
This file contains 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
before: | |
==27562== Memcheck, a memory error detector | |
==27562== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. | |
==27562== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info | |
==27562== Command: ./hx hx | |
==27562== | |
==27562== | |
==27562== HEAP SUMMARY: | |
==27562== in use at exit: 0 bytes in 0 blocks |
This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"time" | |
) |
This file contains 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
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
func main() { | |
fmt.Println("Done!") |