Skip to content

Instantly share code, notes, and snippets.

View sunsided's full-sized avatar
🇺🇦
#StandWithUkraine

Markus Mayer sunsided

🇺🇦
#StandWithUkraine
View GitHub Profile

Autonomous Systems Interview Preparations

This document contains some interview questions as provided in Udacity's Robotics Engineer Nanodegree program.

Project Instructions

Role Selection

It's time for you to practice your interviewing skills! Over the next several pages, you'll see that we have specific roles in Autonomous Systems, just like the videos you watched before:

@sunsided
sunsided / JetBrains.Annotations.cs
Last active April 24, 2020 15:56
JetBrains.Annotations.cs (2020.1-ish) compatible with nullable reference types and freed of attributes for ASP MVC, Razor, etc.
/* MIT License
Copyright (c) 2016 JetBrains http://www.jetbrains.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@sunsided
sunsided / etc-docker-daemon.json
Created February 29, 2020 13:48
WIFIonICE vs Docker: Fixing DB (Deutsche Bahn) WIFI by moving Docker away from 172.18.x.x in /etc/docker/daemon.json
{
"bip": "172.39.1.5/24",
"fixed-cidr": "172.39.1.0/25",
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
}
}
@sunsided
sunsided / git-init-personal-unity.sh
Last active October 12, 2019 19:19
Git for Unity repository bootstrapping including .gitignore, .gitattributes, and Git-LFS.
#!/usr/bin/env bash
set -eo pipefail
echo "Creating Git repository ..."
git init
echo "Applying private user configuration ..."
git config user.name "<YOUR NAME>"
git config user.email "<YOUR EMAIL ADDRESS>"
@sunsided
sunsided / .gitattributes
Created September 1, 2019 14:26
Unity Git Configuration
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@sunsided
sunsided / connection.py
Last active June 8, 2019 15:40 — forked from JinhaiZ/connection.py
connect to MongoDB via ssh tunnel
from sshtunnel import SSHTunnelForwarder
import pymongo
MONGO_HOST = "IP_ADDRESS"
MONGO_USER = "USERNAME"
MONGO_PASS = "PASSWORD"
MONGO_DB = "DATABASE_NAME"
MONGO_COLLECTION = "COLLECTION_NAME"
# define ssh tunnel
@sunsided
sunsided / rank_metrics.py
Created March 30, 2019 14:56 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
@sunsided
sunsided / clean_code.md
Created December 10, 2018 13:25 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@sunsided
sunsided / jaccard.py
Created August 6, 2018 10:15
Intersection over Union (Jaccard index)
from typing import Tuple
def jaccard(a: Tuple[int, int, int, int], b: Tuple[int, int, int, int]) -> float:
ax, ay, aw, ah = a
bx, by, bw, bh = b
left_i = max(ax, bx)
top_i = max(ay, by)
right_i = min(ax + aw, bx + bw)
bottom_i = min(ay + ah, by + bh)
@sunsided
sunsided / traffic_light.cpp
Last active August 5, 2018 18:55
Backup of "Another LED traffic light with the Arduino" (https://pastebin.com/f4f3d205a)
// arduino LED traffic light for cars and pedestrians
// Pin 7 gives power for the button, which is linked to pin 2 (--> IRQ 0)
// Red LEDs on 13 and 6, yellow LED on 12, green LEDs on 11 and 5, all with a 150 Ohm resistor
// http://www.youtube.com/watch?v=5iLaYhyKOtM
// http://www.vimeo.com/9589691
// Sketch backup from https://pastebin.com/f4f3d205a
const int trafficPinR = 13;
const int trafficPinY = 12;