• How to access keyboard inputs/key presses in your Unity game

    How to access keyboard inputs/key presses in your Unity game

    Many games will need to receive keyboard inputs for their game to function correctly. Whether it is to shoot or create movement or even special abilities, Unity game engine makes it quite simple for us to accomplish this. The Input class makes this a rather simple process. The Unity documentation page for keycode has all
    Read More…

  • How to load a  new level/scene in Unity

    How to load a new level/scene in Unity

    In Unity game engine, unless you are making a single level arcade game, there will be times where you will need to load a different level to your game. In the above code, the new scene is loaded synchronously using the scene manager. If the new scene is complex, this loading process could take a
    Read More…




  • How to create framerate independent movement in Unity

    How to create framerate independent movement in Unity

    Due to the fact that scenes might run at different frame rates due to complexity of the level, you don’t want your game to work differently during different scenes. One way to handle movements in Unity game engine is by taking into account the time of change as movement is taken into account. By using
    Read More…

  • How to implement a Queue in Python

    How to implement a Queue in Python

    A queue is a data structure commonly found in software engineering. Let’s take some time to try to implement our own queue class in Python. Queues work via First In First Out(FIFO) principals. What that means is that the sooner an item is added to a list, the sooner that the item will be available
    Read More…

  • How To Create Vectors And Matrices With Numpy

    How To Create Vectors And Matrices With Numpy

    Numpy Vectors And Matrices   Numpy vectors and matrices will show up all the time in data science and machine learning. So, let’s take a look at how to create them. Let’s first import numpy. import numpy as np Next, let’s try to create our first vector row. np.array([1,2,3,4]) # array([1, 2, 3, 4]) Wasn’t
    Read More…

  • How To Add/Subtract With Numpy Matrices

    How To Add/Subtract With Numpy Matrices

    Adding/Subtracting With Matrices   Adding and subtracting matrices is a fundamental part of linear algebra and a lot of data science techniques. Let’s take a look at how to add/subtract with numpy arrays and matrices. First, let’s import numpy and create some matrices to practice our operations with. import numpy as np a = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]])
    Read More…

  • How To Standardize Data In Python With Scikit Learn

    How To Standardize Data In Python With Scikit Learn

    Standardization Sometimes when you are working with datasets for data science, you will need to standardize your dataset before fitting a machine learning model to it. What exactly does standardization do? It essentially takes your values and shifts the values so that the original mean value is placed at 0 and the standard deviation is
    Read More…

  • How To Change Navigation Bar Color iOS Swift 5

    How To Change Navigation Bar Color iOS Swift 5

    Sometimes you will want to change the color of your navigation bar for branding purposes, and it is actually pretty easy to do. Use the following snippet in your view controller in viewDidLoad to change the color you would like. // get the navigation bar from the current navigation controller if there is one let
    Read More…

  • Introduction to Core ML

    Introduction to Core ML

    In the introduction to the new framework at WWDC 2017, the speakers made some interesting revelations. Check out my notes below: CoreML is a lower level library that offers a bunch of prebuilt models such as SVMs, Neural Networks, Random Forrests etc… If you don’t want to work at the model level, there are 2
    Read More…

  • Pycon 2017 Notes

    Pycon 2017 Notes

    Pycon 2017 just finished recently in Portland last week and you can check out the videos here. As I go through these videos (there is a lot of them), I’ll be taking notes on what I find useful and post them here.