Skip to content

Instantly share code, notes, and snippets.

View hectorddmx's full-sized avatar

Hector De Diego hectorddmx

View GitHub Profile
#import "ViewController.h"
#import <CoreImage/CoreImage.h>
#import <AVFoundation/AVFoundation.h>
@interface ViewController () {
}
@property (strong, nonatomic) CIContext *coreImageContext;
@property (strong, nonatomic) AVCaptureSession *cameraSession;
@hectorddmx
hectorddmx / format_date_with_offset_test.dart
Last active September 21, 2023 03:48 — forked from j0nscalet/format_date_with_offset_test.dart
Forked to manually support Z
import 'package:test/test.dart';
import 'package:intl/intl.dart';
import 'package:timezone/timezone.dart';
import 'package:timezone/data/latest.dart';
// A DateTime in dart contains the TimezoneOffset from UTC/GMT
// This was modified to ommit the `:` so we actually have implemented the Z
// Timezone formatter in dart.
//
// See: https://github.com/dart-lang/intl/issues/19 for more details.