Skip to content

Instantly share code, notes, and snippets.

View AeroGeekDean's full-sized avatar

Dean Liu AeroGeekDean

View GitHub Profile
@AeroGeekDean
AeroGeekDean / calculator.cpp
Last active October 30, 2017 05:15
Coding challenge: make a calculator
/* A calculator
*
* Write a function that takes a string of arithmetic equation below and returns a scalar as the evaluation
* of the equation. Arithmetic supports 4 operators: +, *, &, |
* where:
*
* +, and * are defined in their usual fashion
* &, and | are defined as pairwise max() and min() respectively
* &, | have higher priority over +, *
*
@AeroGeekDean
AeroGeekDean / Quiz_DP_LeftTurnPolicy.py
Last active March 19, 2021 06:48
Attempt at improved algorithm for Udacity AI4Robotics 'Search' LeftTurnPolicy quiz (Dynamic Programming) (failed attempt, my analysis in comments)
# ----------
# User Instructions:
#
# Implement the function optimum_policy2D below.
#
# You are given a car in grid with initial state
# init. Your task is to compute and return the car's
# optimal path to the position specified in goal;
# the costs for each motion are as defined in cost.
#
@AeroGeekDean
AeroGeekDean / autoreload_startup.ipy
Last active July 3, 2020 19:33 — forked from rsepassi/autoreload_startup.ipy
Setup autoreload in iPython
%load_ext autoreload
%autoreload 2
# Exclude autoimports
%aimport -np
%aimport -pd
%aimport -sp
%aimport -sklearn
%aimport -skimage
%aimport -mpl