Quantcast
Channel:
Browsing latest articles
Browse All 27 View Live

NPM install from branch on private repo

Something you need a specific branch of a repository that has not been published yet. git+http://git@SUBDOMAIN.DOMAIN.COM/USER/REPO-URL.git#4d331600 For example: // this URL...

View Article



Numeric operator overloading in Swift

Sometimes when developing in Swift if you’re trying to do seemingly simple things like divide 2 numbers: let interval:Double = 1.0/fps; You’ll get errors like these: binary operator '*' cannot be...

View Article

CAAnimation delegate not working (Swift)

CAAnimation provides a way of receiving a callback upon start or completion of an animation. If you have a ‘pure’ class, that is a class that does not inherit from anything, doing this will have no...

View Article

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 Article

Image may be NSFW.
Clik here to view.

VSCode 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 Article


Concisely 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 Article

Bringing 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 Article

Load 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 Article


Calculating 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 Article


Creating 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
Browsing latest articles
Browse All 27 View Live




Latest Images