Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>jpeg fingerprinting</title>
</head>
<body>
<h1>JPEG Fingerprinting</h1>
<p>
Fingerprint: <tt id="fingerprint"></tt>
</p>
@akrennmair
akrennmair / tmavy_recipe.xml
Created March 6, 2023 19:29
BeerXML file of my tmavý recipe
<?xml version="1.0" encoding="ISO-8859-1"?><RECIPES>
<RECIPE>
<NAME>2022-09-24 13&#176; Tmavy with Ben</NAME>
<VERSION>1</VERSION>
<TYPE>All Grain</TYPE>
<BREWER>Andreas Krennmair</BREWER>
<ASST_BREWER></ASST_BREWER>
<BATCH_SIZE>22.0000000</BATCH_SIZE>
<BOIL_SIZE>26.8000000</BOIL_SIZE>
<BOIL_TIME>60.0000000</BOIL_TIME>
#!/bin/sh
# save as foobar.sh, chmod 755 foobar.sh, ./foobar.sh and see what happens.
echo 1 ; line=`tail -1 $0` ; num=`echo $line | awk '{ print $2 + 1 }'` ; echo $line | sed "s/^echo [0-9]* ;/echo $num ;/" >> $0
@akrennmair
akrennmair / test.go
Created July 28, 2014 20:37
gopp test how to parse ( foo, bar, baz ) lists.
package main
import (
"fmt"
"github.com/davecgh/go-spew/spew"
"github.com/skelterjohn/gopp"
"os"
"strings"
)
func main() {
ps := filter(func(n int) bool { return n > 9 }, upto(Primes(), 100))
pslice := make([]int, 0, 30)
for p := range ps {
pslice = append(pslice, p)
}
for _, cand := range summingSubsets(pslice, 600, 8) {
fmt.Println(cand)
}
}
#include <stdio.h>
#define FOO(type, rv) type myfunc_##type(void) { printf("%s called\n", __func__); return rv; }
FOO(int, 42)
FOO(void, )
int main() {
myfunc_void();
printf("%d\n", myfunc_int());
package main
import (
"github.com/knieriem/markdown"
"bytes"
"bufio"
"fmt"
)
func main() {
typedef struct {
int foo, bar;
} A;
typedef struct {
A super;
int baz;
} B;
void a_foobar(A * this) {
#include <sysinit.h>
#include "basic/basic.h"
#include "lcd/render.h"
#include "lcd/backlight.h"
#define BTN_NONE 0
#define BTN_UP (1<<0)
#define BTN_DOWN (1<<1)
#define BTN_LEFT (1<<2)
#define BTN_RIGHT (1<<3)
package main
import (
"flag"
"fmt"
"os"
"time"
"http"
"runtime"
)