Skip to content

Instantly share code, notes, and snippets.

View canfan's full-sized avatar

Kostadin Krajcev canfan

View GitHub Profile
@canfan
canfan / helloworld.pdf
Created August 11, 2020 16:37
hello world example in PDF; via hn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@canfan
canfan / servlog.js
Created April 15, 2020 15:30
simple HTTP post logger with UA based client identification
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const uas = {
index: [],
get(ua) {
let id = this.index.indexOf(ua);
if (id < 0) {
id = this.index.length;

Keybase proof

I hereby claim:

  • I am canfan on github.
  • I am kkrajcev (https://keybase.io/kkrajcev) on keybase.
  • I have a public key ASBwE-K-6ptdTLCfne3ESEbtfGHG6myHwFih9yajGccNdAo

To claim this, I am signing this object:

@canfan
canfan / ios formats.txt
Last active August 29, 2023 10:55
iphone camera formats
6s+ back (
"<AVCaptureDeviceFormat: 0x174009fa0 'vide'/'420v' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.710, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>",
"<AVCaptureDeviceFormat: 0x174009f90 'vide'/'420f' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.710, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>",
"<AVCaptureDeviceFormat: 0x174009fb0 'vide'/'420v' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.900, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>",
"<AVCaptureDeviceFormat: 0x174009fc0 'vide'/'420f' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.900, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>",
"<AVCaptureDeviceFormat: 0x174009fd0 'vide'/'420v' 480x 360, { 3- 30 fps}, HRSI:4032x3024, fov:57.710, max zoom:189.00 (upscales @8.40), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>",
"<AVCaptureDeviceFormat:

Keybase proof

I hereby claim:

  • I am canfan on github.
  • I am kkr (https://keybase.io/kkr) on keybase.
  • I have a public key ASA3D38rafzvR6_iVyFT5FEXk3w6C-PO_8dEg09rZHSt4go

To claim this, I am signing this object: