CAAnimation completion callback block
It’s really useful to fire a function when an animation is complete. There’s no built in way to do that in CoreAnimation, it does have the concept of delegate’s, which get you half way there. However...
View ArticleVSCode in Unity
If you’re tired of MonoDevelop’s editing capabilities, you should try VSCode! It’s super snappy, and lightweight Download VSCode insiders edition Install the C# 1.3.0 support Install mono debugger brew...
View ArticleConcisely animating a local T value along a path
If you have a T value, in the range of [0.0-1.0] you can convert that to a local T value for each part of that curve. var rangePerItem = 1.0 / items.length; var t = 0.73; for(var i = 0; i <...
View ArticleBringing an application window to the front Swift
There are many ways to do this, however this simple method below has worked for me better than window?.makeKeyAndOrderFront(self) override func viewDidAppear() { super.viewDidAppear()...
View ArticleLoad JSON from file/URL in Swift 3
Simple snippet to load JSON into from a filepath or URL // Retrieves JSON from bundle private func loadJSON(fileURL:URL)->[String : Any]? { // Parse the JSON do { // Create a string out of the file...
View ArticleCalculating the gravity of the gravitational force or 0.00000000000667
Gravity is by far the best force in the universe. Despite being the weakest of the “main” four (strong nuclear force, weak nuclear force, electromagnetism, gravity). It is the one that dominates given...
View ArticleCreating Realtime Mutliplayer Game Framework for Node.js (2010)
Realtime HTML5 Multiplayer Games with Node Found a video link to my JSConf 2010 (2010!!! Yikes! 10 years ago!)
View Article