Skip to content

Instantly share code, notes, and snippets.

View mike-koch's full-sized avatar

Mike Koch mike-koch

View GitHub Profile
@mike-koch
mike-koch / sample.ino
Last active December 2, 2016 03:39
Arduino Serial Sample
/*
Here's a quick sample of how my Serial code worked. Sadly my Mac stopped responding, so I lost my actual code
*/
void loop() {
// If there is anything in the serial buffer from the Pi, handle it
if (Serial.available()) {
byte value = Serial.read()
// If the byte retrieved is a '1'
@mike-koch
mike-koch / angle2dcm.py
Created November 21, 2016 23:27
angle2dcm
import numpy as numpy
import numpy as np
from math import sin, cos, tan, asin, acos, atan2, fabs, sqrt
def angle2dcm(yaw, pitch, roll, input_units='rad', rotation_sequence='321'):
"""
Returns a transformation matrix (aka direction cosine matrix or DCM) which
transforms from navigation to body frame. Other names commonly used,
besides DCM, are `Cbody2nav` or `Rbody2nav`. The rotation sequence
specifies the order of rotations when going from navigation-frame to
@mike-koch
mike-koch / pacaur_install.sh
Last active October 12, 2016 21:11 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
{
"directory": "src/main/resources/static/vendor",
"ignoredDependencies": [
"bootstrap-sass"
]
}
@mike-koch
mike-koch / ets2-mobile-route-advisor-cla.md
Created November 24, 2015 21:44
ETS2 Mobile Route Advisor CLA

Individual Contributor License Agreement

Thank you for Your interest in contributing to ETS2 Mobile Route Advisor ("the project"). This document clarifies the terms under which You, the person listed below, may make Contributions — which may include without limitation, software, bug fixes, configuration changes, documentation, or any other materials — to any of the projects owned or managed by the project.

Please complete the following information about You and the Contributions. If You have questions about these terms, please contact the owner of the project at mkoch227@gmail.com.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the project. Except for the license granted herein to the project, You reserve all right, title, and interest in and to Your Contributions.

Licenses

The project’s code is licensed under the terms of the MIT License, and the website and wiki are licensed under the terms of the Creative Commons Attribution-ShareA

@mike-koch
mike-koch / mods-for-hesk-cla.md
Created November 24, 2015 21:41
Mods for HESK CLA

Individual Contributor License Agreement

Thank you for Your interest in Mods for HESK. This document clarifies the terms under which You, the person listed below, may make Contributions — which may include without limitation, software, bug fixes, configuration changes, documentation, or any other materials — to any of the projects owned or managed by Mods for HESK.

Please complete the following information about You and the Contributions. If You have questions about these terms, please contact the owner of Mods for HESK at mkoch227@gmail.com.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Mods for HESK. Except for the license granted herein to Mods for HESK, You reserve all right, title, and interest in and to Your Contributions.

Licenses

Mods for HESK projects (code, documentation, and any other materials) are released under the terms of the MIT License.

@mike-koch
mike-koch / better-pois.json
Created November 22, 2015 18:56
better-pois.json
/* Obtained from map.krashnz.com/api/v1/map/icons.json */
{
"dealer_ico":[
{
"x":"47.33510005753562",
"y":"-61.46301269531251"
},
{
"x":"41.372686481864655",
@mike-koch
mike-koch / pois.json
Created October 4, 2015 21:39
ETS2 POIs
[
{
"y": "-10082",
"x": "-16248",
"pois": [
{
"name": "Europoort",
"pois": [],
"y": "-9275",
"x": "-22145",