Skip to content

Instantly share code, notes, and snippets.

View bkastl's full-sized avatar

Bianca Kastl bkastl

View GitHub Profile
@bkastl
bkastl / gist:1321d85fca3c900ce74cc03a0c4cdd1a
Last active February 13, 2022 21:50
covpasscheck-dcc.json
[
{
"CertificateType":"General",
"AffectedFields":[
"r",
"t",
"v"
],
"SchemaVersion":"1.0.0",
"EngineVersion":"0.7.5",
@bkastl
bkastl / ccl.json
Last active February 13, 2022 20:47
CCL CWA 2.18 Plain JSON
[
{
"Identifier":"CCL-DE-0001",
"Type":"CCLConfiguration",
"Country":"DE",
"Version":"1.0.0-rc.3",
"SchemaVersion":"1.0.0",
"Engine":"JsonFunctions",
"EngineVersion":"1.0.0",
"ValidFrom":"2022-01-01T00:00:00Z",

Keybase proof

I hereby claim:

  • I am bkastl on github.
  • I am bkastl (https://keybase.io/bkastl) on keybase.
  • I have a public key whose fingerprint is C85A C0E8 5374 823C FF9F 2924 7E4D 8659 73C6 72F7

To claim this, I am signing this object:

@bkastl
bkastl / gist:7022253
Last active July 11, 2020 00:43
mobile / not mobile detection via useragent
A lightweight mobile / not mobile detection.
Strings required to be recognized as mobile:
Mobi|Mini|Netfront|MOT|Maemo|Iris|Symbian|Fennec|Blazer|BOLT|GoBrowser|SEMC-Browser|Skyfire|TeaShark|Brew|uZard|Maemo|AvantGo|CHTML|PDA|MIDP|PPC|Smartphone|WebOS|PSP
Strings required to be recognized as tablet, when mobile:
iPad|Tablet|Kindle|tablet
Possible problems:
@bkastl
bkastl / comparison
Last active December 17, 2015 04:49
JPEG Encoder comparison (lena 56KB filesize goal)
Original file:
Lena.png 512 x 512 Pixel 24 bit Color 386.301 Byte
The standard for image compression tests.
Might be highly optimized in some encoders.
Goal: Get the most quality out of around 56KB.
Look at http://benediktkastl.de/summary_lena.htm for the images.
Metrics explained: