Skip to content

Instantly share code, notes, and snippets.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 22, 2024 16:30
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@DanSkeel
DanSkeel / AVCaptureDeviceFormat of iPhone6s
Created December 10, 2015 08:56
AVCaptureDeviceFormat of iPhone6s
<AVCaptureDeviceFormat: 0x13910d5f0 'vide'/'420v' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911ad10 'vide'/'420f' 192x 144, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @21.00), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911a2d0 'vide'/'420v' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.893, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x13911a7d0 'vide'/'420f' 352x 288, { 3- 30 fps}, HRSI:3696x3024, fov:52.893, max zoom:189.00 (upscales @10.50), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x139118950 'vide'/'420v' 480x 360, { 3- 30 fps}, HRSI:4032x3024, fov:57.702, max zoom:189.00 (upscales @8.40), AF System:2, ISO:23.0-1472.0, SS:0.000013-0.333333>,
<AVCaptureDeviceFormat: 0x139118bb0 'vide'/'420f' 480x 360, { 3- 30 f
@hirokim
hirokim / AVCaptureDeviceFormat of iPhone6
Created December 24, 2014 09:53
AVCaptureDeviceFormat of iPhone6
<AVCaptureDeviceFormat: 0x17001de90 'vide'/'420v' 192x 144, { 2- 30 fps}, HRSI:3264x2448, fov:58.040, max zoom:153.00 (upscales @17.00), AF System:2, ISO:29.0-1856.0, SS:0.000013-0.500000>
<AVCaptureDeviceFormat: 0x17001dea0 'vide'/'420f' 192x 144, { 2- 30 fps}, HRSI:3264x2448, fov:58.040, max zoom:153.00 (upscales @17.00), AF System:2, ISO:29.0-1856.0, SS:0.000013-0.500000>
<AVCaptureDeviceFormat: 0x17001deb0 'vide'/'420v' 352x 288, { 2- 30 fps}, HRSI:2992x2448, fov:53.203, max zoom:153.00 (upscales @8.50), AF System:2, ISO:29.0-1856.0, SS:0.000013-0.500000>
<AVCaptureDeviceFormat: 0x17001dec0 'vide'/'420f' 352x 288, { 2- 30 fps}, HRSI:2992x2448, fov:53.203, max zoom:153.00 (upscales @8.50), AF System:2, ISO:29.0-1856.0, SS:0.000013-0.500000>
<AVCaptureDeviceFormat: 0x17001ded0 'vide'/'420v' 480x 360, { 2- 30 fps}, HRSI:3264x2448, fov:58.040, max zoom:153.00 (upscales @6.80), AF System:2, ISO:29.0-1856.0, SS:0.000013-0.500000>
<AVCaptureDeviceFormat: 0x17001dee0 'vide'/'420f' 480x 360, { 2- 30 fps}, HR
@hirokim
hirokim / AVCaptureDeviceFormat of iPhone5
Created December 24, 2014 07:04
AVCaptureDeviceFormat of iPhone5
<AVCaptureDeviceFormat: 0x14ea86b0 'vide'/'420v' 192x 144, { 1- 30 fps}, fov:56.700, binned, max zoom:76.50 (upscales @8.50), AF System:1, ISO:46.0-736.0, SS:0.000018-1.000000>
<AVCaptureDeviceFormat: 0x14ea8490 'vide'/'420f' 192x 144, { 1- 30 fps}, fov:56.700, binned, max zoom:76.50 (upscales @8.50), AF System:1, ISO:46.0-736.0, SS:0.000018-1.000000>
<AVCaptureDeviceFormat: 0x14ea7d20 'vide'/'420v' 352x 288, { 1- 30 fps}, fov:51.975, binned, max zoom:76.50 (upscales @4.25), AF System:1, ISO:46.0-736.0, SS:0.000018-1.000000>
<AVCaptureDeviceFormat: 0x14ea7d30 'vide'/'420f' 352x 288, { 1- 30 fps}, fov:51.975, binned, max zoom:76.50 (upscales @4.25), AF System:1, ISO:46.0-736.0, SS:0.000018-1.000000>
<AVCaptureDeviceFormat: 0x14ea73a0 'vide'/'420v' 480x 360, { 1- 30 fps}, fov:56.700, binned, max zoom:76.50 (upscales @3.40), AF System:1, ISO:46.0-736.0, SS:0.000018-1.000000>
<AVCaptureDeviceFormat: 0x14ea73b0 'vide'/'420f' 480x 360, { 1- 30 fps}, fov:56.700, binned, max zoom:76.50 (upscales @3.40), AF Syst
@hirokim
hirokim / AVCaptureDeviceFormat of iPhone5S
Last active October 5, 2015 13:34
AVCaptureDeviceFormat of iPhone5S
<AVCaptureDeviceFormat: 0x17000c1d0 'vide'/'420v' 192x 144, { 2- 60 fps}, fov:58.080, binned, max zoom:76.50 (upscales @8.50), AF System:1, ISO:34.0-544.0, SS:0.000011-0.500000>
<AVCaptureDeviceFormat: 0x17000c1c0 'vide'/'420f' 192x 144, { 2- 60 fps}, fov:58.080, binned, max zoom:76.50 (upscales @8.50), AF System:1, ISO:34.0-544.0, SS:0.000011-0.500000>
<AVCaptureDeviceFormat: 0x17000c1b0 'vide'/'420v' 352x 288, { 2- 60 fps}, fov:53.240, binned, max zoom:76.50 (upscales @4.25), AF System:1, ISO:34.0-544.0, SS:0.000011-0.500000>
<AVCaptureDeviceFormat: 0x17000c1a0 'vide'/'420f' 352x 288, { 2- 60 fps}, fov:53.240, binned, max zoom:76.50 (upscales @4.25), AF System:1, ISO:34.0-544.0, SS:0.000011-0.500000>
<AVCaptureDeviceFormat: 0x17000c190 'vide'/'420v' 480x 360, { 2- 60 fps}, fov:58.080, binned, max zoom:76.50 (upscales @3.40), AF System:1, ISO:34.0-544.0, SS:0.000011-0.500000>
<AVCaptureDeviceFormat: 0x17000c180 'vide'/'420f' 480x 360, { 2- 60 fps}, fov:58.080, binned, max zoom:76.50 (upscales @3.
@juliengrimault
juliengrimault / CrashlyticsLogger.h
Created March 30, 2013 10:39
CocoaLumberjack logger that works with crashlytics
//
// CrashlyticsLogger.h
//
// Created by Julien Grimault on 4/1/13.
//
//
#import "DDLog.h"
@interface CrashlyticsLogger : DDAbstractLogger