Skip to content

Instantly share code, notes, and snippets.

View nicholaschiasson's full-sized avatar
💯

Nicholas Omer Chiasson nicholaschiasson

💯
View GitHub Profile
@nicholaschiasson
nicholaschiasson / COMP4102 Computer Vision Assignment 1.pdf
Last active February 8, 2017 23:49
Computer Vision Assignment 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicholaschiasson
nicholaschiasson / ls_hidden.md
Last active May 4, 2017 02:02
Some bash functions and aliases to list hidden dot files and directories.

ls_hidden

  • ls_hidden.sh

    Some bash functions and aliases to list hidden dot files and directories.

    Aliases ls. and ll. are created to functionally imitate the ls command and popular alias ll, respectively.

Command line arguments are supported. All options available to the ls command apply, however the -a option does not list ALL items in a directory, but only those preceeded by a dot. Items not preceeded by a dot can be listed if specified manually as a command line argument.

@nicholaschiasson
nicholaschiasson / cdmod.md
Last active May 4, 2017 02:01
A small group of utilities and aliases to effectively add backward and forward change directory functionality to bash, similar to how internet browser backward and forward navigation buttons work.

cdmod

  • cdmod_aliases.sh

    A group of bash aliases enhancing on the capability to change directory.

More specifically, these aliases provide the abilities to change directory backward to previous directories (not to be mistaken with parent directories), to change directory forward to directories previously changed back from, and to view the directory history for the current terminal session including all backward directories, the current directory, and all forward directories. Just source this file from your ~/.bashrc or similar files and these aliases will all be applied at the beginning of each new terminal session.

@nicholaschiasson
nicholaschiasson / MemMon.md
Last active July 9, 2019 09:36
Memory Monitors for C++

MemMon Memory Monitors

NOT A GARBAGE COLLECTOR

I decided to try my hand at making my code a bit safer as far as managing weak references goes, so I tried to make something to track references to memory locations. I soon thought that it was a stupid idea and simplified it so that it was simply the memory locations' validity which were being monitored. That way, all I needed to do was essentially a custom null check to see if my weak references were still valid. I tried to do this in the simplest and most aesthetically pleasing way as possible. Naturally, that means (to me) attempting to overload the new and delete keywords for every possible type. Well, since you can't do that, I decided to use macros :)

I also came up with two seperate static classes which are only really different in that they use two different data structures.

Usage

Setup

  • Import the .cpp files into your project source and the .h files into your project headers.
  • Include only the MemMon.h file wherever you plan on using
@nicholaschiasson
nicholaschiasson / COMP3009_A2_T1.md
Last active April 8, 2016 04:11
COMP3009 – Assignment 2 – Task 1 – Using vector operations and Transformations

COMP3009 - Assignment 2

Nicholas Chiasson - 100891716 - October 25, 2015

  1. Task 1 - Using vector operations and transformations

  2. Given a point P = (Px, Py, Pz) and an object, O = (Ox, Oy, Oz)... 1. First, translate P to the origin.

    Note: since the rotational axis is the x axis, we only really need to transform P to the x axis.