Skip to content

Instantly share code, notes, and snippets.

View aydenp's full-sized avatar

Ayden Panhuyzen aydenp

View GitHub Profile
@aydenp
aydenp / InstagramFollowerComparer.js
Last active April 23, 2018 05:53
Figure out who doesn't follow back/who you don't follow back on Instagram with a short JavaScript snippet.
/*
InstagramFollowerComparer.js
Created by Ayden Panhuyzen on 2018-04-23.
Copyright © 2018 Ayden Panhuyzen. All rights reserved.
https://gist.github.com/aydenp
Figure out who doesn't follow back/who you don't follow back on Instagram via a JavaScript script.
---
Steps:
@aydenp
aydenp / UIEdgeInsets+All.swift
Last active April 2, 2018 11:15
repeating code is bad
//
// UIEdgeInsets+All.swift
//
// Created by Ayden Panhuyzen on 2018-04-02.
// Copyright © 2018 Ayden Panhuyzen. All rights reserved.
// https://gist.github.com/aydenp
//
import UIKit
@aydenp
aydenp / HairlineView.swift
Last active October 7, 2019 23:55
Create a view equal to exactly one real pixel in height, even on Retina and Retina HD displays.
//
// HairlineView.swift
//
// Created by Ayden Panhuyzen on 2018-04-02.
// Copyright © 2018 Ayden Panhuyzen. All rights reserved.
// https://gist.github.com/aydenp
//
import UIKit
@aydenp
aydenp / Randoms.swift
Last active March 21, 2018 01:43
Easy randoms in Swift
//
// Randoms.swift
//
// Created by Ayden Panhuyzen on 2018-03-17.
// Copyright © 2018 Ayden Panhuyzen. All rights reserved.
// https://gist.github.com/aydenp
//
import UIKit
@aydenp
aydenp / UIViewController+ShorthandAlerts.swift
Last active November 25, 2020 07:10
Creating alerts on iOS is annoying. This extension allows you to easily present alerts on view controllers. It also improves UIAlertAction by adding a quicker more Swift-like shorthand for making actions.
//
// UIViewController+ShorthandAlerts.swift
//
// Created by Ayden Panhuyzen on 2017-07-31.
// Copyright © 2017-2018 Ayden Panhuyzen. All rights reserved.
// https://gist.github.com/aydenp
//
import UIKit