Skip to content

Instantly share code, notes, and snippets.

View WestonHanners's full-sized avatar
🏠
Working from home

Weston Hanners WestonHanners

🏠
Working from home
View GitHub Profile
@WestonHanners
WestonHanners / keybase.md
Created September 16, 2019 17:51
keybase.md

Keybase proof

I hereby claim:

  • I am westonhanners on github.
  • I am westonhanners (https://keybase.io/westonhanners) on keybase.
  • I have a public key ASC5UeSN-fLiHY-VSB_UFMd2xZgqNWLuvXU1yFkAKnWJKgo

To claim this, I am signing this object:

@WestonHanners
WestonHanners / brainfuck.swift
Last active March 28, 2023 08:35
BrainFuck Interpreter in Swift
import Foundation
func parseBF(code: String, input: String = "") {
if code.isEmpty {
print("Empty Program")
return
}
// BrainFuck Machine Initalization
@WestonHanners
WestonHanners / keybase.txt
Last active May 25, 2017 19:03
keybase.md
### Keybase proof
I hereby claim:
* I am WestonHanners on github.
* I am westonhanners (https://keybase.io/westonhanners) on keybase.
* I have a public key whose fingerprint is 7A70 4751 8060 17D4 DFCC 1AE5 202C FE5F B6D7 3B1F
To claim this, I am signing this object:
@WestonHanners
WestonHanners / gist:8583496
Created January 23, 2014 17:56
Modified Teehan+Lax UIDynamics Snippet.
-(void)setupContentViewControllerAnimatorProperties {
NSAssert(self.animator == nil, @"Animator is not nil – setupContentViewControllerAnimatorProperties likely called twice.");
self.animator = [[UIDynamicAnimator alloc] initWithReferenceView:self];
self.animator.delegate = self;
UICollisionBehavior *collisionBehavior = [[UICollisionBehavior alloc] initWithItems:@[self.overlayView]];
// Need to create a boundary that lies to the left off of the right edge of the screen.
[collisionBehavior setTranslatesReferenceBoundsIntoBoundaryWithInsets:UIEdgeInsetsMake(0, -280, 0, 0)];