Skip to content

Instantly share code, notes, and snippets.

View brainfoolong's full-sized avatar
:octocat:
Servus

Roland Eigelsreiter brainfoolong

:octocat:
Servus
View GitHub Profile
{
"2024-01" : 8.137,
"2024-02" : 6.293,
"2024-03" : 5.776,
"2024-04" : 4.655
}
@brainfoolong
brainfoolong / bitmask.js
Created August 8, 2021 15:48
BitMask Demo
let CUTE = 1
let ANGRY = 2
let HUNGRY = 4
let CAT = ANGRY | HUNGRY
// angry only would be: let CAT = ANGRY
// cute, angry and hungry would be: let CAT = CUTE | ANGRY | HUNGRY
if (CAT & HUNGRY) {
console.log('Yeah my cat is hungry')
@brainfoolong
brainfoolong / obs-stopwatch.html
Last active June 21, 2021 07:22
A simple stopwatch for your recordings in OBS Studio
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Brains Easy OBS Stopwatch</title>
</head>
<body>
<span id="watch"></span>
<script>
(function () {