Skip to content

Instantly share code, notes, and snippets.

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
@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!!!


@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 / 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 / Day1Part2.playground.swift
Created December 14, 2016 20:31
AdventOfCode.com 2016 Day 1 Solution (http://adventofcode.com/2016/day/1) (Part 2)
import Foundation
enum Axis {
case X
case Y
}
enum Instruction {
case left (distance:Int)
@DeepFriedTwinkie
DeepFriedTwinkie / Day2Part1.playground.swift
Last active December 14, 2016 21:37
AdventOfCode.com 2016 Day 2 Solution (http://adventofcode.com/2016/day/2) (Part 1)
import Foundation
enum Instruction:String {
case up = "U"
case down = "D"
case left = "L"
case right = "R"
}
@DeepFriedTwinkie
DeepFriedTwinkie / Day2Part2.playground.swift
Last active December 14, 2016 22:11
AdventOfCode.com 2016 Day 2 Solution (http://adventofcode.com/2016/day/2) (Part 2)
import Foundation
enum Instruction:String {
case up = "U"
case down = "D"
case left = "L"
case right = "R"
}
@DeepFriedTwinkie
DeepFriedTwinkie / Day3Part1.playground.swift
Last active December 15, 2016 17:10
AdventOfCode.com 2016/Day 3 Solution (http://adventofcode.com/2016/day/3) (Part 1)
import Foundation
struct Triangle {
let vertices: [Int]
init?(vertices:[Int]) {
guard vertices.count == 3 else { return nil }
guard vertices[0] + vertices[1] > vertices[2],
@DeepFriedTwinkie
DeepFriedTwinkie / Day3.playground.swift
Last active December 15, 2016 18:34
AdventOfCode.com 2016/Day 3, Part 2 Solution
import Foundation
//: ## Helpers
func string(fromFile name:String, fileExtension:String) -> String? {
if let filePath = Bundle.main.path(forResource:name, ofType:fileExtension) {
if let inputData = FileManager.default.contents(atPath: filePath) {
return String(data: inputData, encoding: .utf8)
}
@DeepFriedTwinkie
DeepFriedTwinkie / Day4.playground.swift
Last active December 17, 2016 15:02
AdventOfCode.com 2016/Day 4 Solution
import Foundation
//: ## Helpers
func string(fromFile name:String, fileExtension:String) -> String? {
if let filePath = Bundle.main.path(forResource:name, ofType:fileExtension) {
if let inputData = FileManager.default.contents(atPath: filePath) {
return String(data: inputData, encoding: .utf8)
}