Skip to content

Instantly share code, notes, and snippets.

@DeepFriedTwinkie
DeepFriedTwinkie / Day1.playground.swift
Last active December 18, 2016 16:04
AdventOfCode.com 2016 Day 1 Solution (http://adventofcode.com/2016/day/1) (Part 1)
import Foundation
enum Axis {
case X
case Y
}
enum Instruction {
case left (distance:Int)
@DeepFriedTwinkie
DeepFriedTwinkie / DateComponentsTest.m
Last active October 13, 2016 21:52
NSDateComponentsFormatter and 48 hours
- (void) test_timeSinceString_jsonDates {
NSCalendarUnit units = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitWeekOfMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond;
NSDateComponentsFormatter * oneUnitDontCollapse = [[SharedFormatter sharedFormatter] elapsedTimeStringFormatter];
oneUnitDontCollapse = [[NSDateComponentsFormatter alloc] init];
oneUnitDontCollapse.unitsStyle = NSDateComponentsFormatterUnitsStyleAbbreviated;
oneUnitDontCollapse.allowedUnits = units;
oneUnitDontCollapse.allowsFractionalUnits = YES;
oneUnitDontCollapse.maximumUnitCount = 1;
@DeepFriedTwinkie
DeepFriedTwinkie / RWDevCon_OldTownFood.md
Last active March 9, 2016 21:47
A list of food options in and near Old Town Alexandria, VA.

RWDevCon Restaurants & Bars

Welcome to Old Town Alexandria, VA and RWDevCon 2016! I've tried to cover many different food tastes, dietary restrictions and price ranges. Hopefully, you'll find something you like!

If you are staying in the conference hotel, you are actually west and a bit south of Old Town proper. So, many of these places might be a bit of a walk or a quick Uber ride away. For the more adventurous, I've added some of my favorites that are a bit further away (but still in Northern VA.) The District of Columbia has many really great places to eat. Feel free to hit me up if you want to venture into the city.

Have fun!!!


Integration/Signing_Site_Association_File.txt
1. Convert all Certificates (*.crt) to PEM files:
openssl x509 -in EssentialSSLCA_2.crt -out EssentialSSLCA_2.der -outform DER
openssl x509 -in EssentialSSLCA_2.der -inform DER -out EssentialSSLCA_2.pem -outform PEM
2. Sign apple-app-site-association.json file with proper keychain:
-inkey: Private Key
-signer: Signed Certificate from Signing agency
-certfile: Certificate used to sign "signer" key