Skip to content

Instantly share code, notes, and snippets.

View mnemocron's full-sized avatar
:octocat:
bonk!

Simon Burkhardt mnemocron

:octocat:
bonk!
View GitHub Profile
@mnemocron
mnemocron / install-arm-gcc.sh
Created March 16, 2021 08:14
Installation Script for arm-none-eabi-gcc 7-2018-q2
#!/bin/bash
NAME=7-2018-q2
GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update
pushd .
cd ~
mkdir arm-gcc-toolchain
wget -O $HOME/arm-gcc-toolchain/gcc.tar.bz2 $GCC_URL
cd arm-gcc-toolchain
%******************************************************************************
% \details :
% \autor : Simon Burkhardt
% \file : adsb_track_smoothing_filter.m
% \date : 2021-01-04
% \version : 1.0
%******************************************************************************
clear all; close all; clc; format long;
% https://www.usna.edu/Users/oceano/pguth/md_help/html/approx_equivalents.htm
@mnemocron
mnemocron / paint_to_3dprinter.py
Last active May 15, 2020 16:19 — forked from nikhilkumarsingh/paint.py
A simple paint application using tkinter in Python 3 to generate GCode for your 3D printer
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 12:09:09 2019
@author: simon
"""
from tkinter import *
from tkinter.colorchooser import askcolor
from pysvg import *
@mnemocron
mnemocron / restoring_division.c
Last active December 12, 2019 12:54
it does work now
#include <stdio.h>
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(byte) \
(byte & 0x80 ? '1' : '0'), \
(byte & 0x40 ? '1' : '0'), \
(byte & 0x20 ? '1' : '0'), \
(byte & 0x10 ? '1' : '0'), \
(byte & 0x08 ? '1' : '0'), \

eta-systems 2.911.716.01

Arduino Firmware flashen


Flashen mit Atmel Studio 7 und Atmel-ICE USB Adapter.

Quelle: avrfreaks.net

@mnemocron
mnemocron / generateHomoglyphedString.php
Last active April 7, 2019 14:43
// function to generate homoglyphed watermark string
// function to generate homoglyphed watermark string
<?php
function generateRandomWatermark(){
$char_d = array("d","ď","đ","ԁ","ժ","ḍ","ⅾ","d");
$char_x = array("x","χ","х","ⅹ","x");
$char_m = array("m","ⅿ","m");
$char_e = array("e","é","ê","ë","ē","ĕ","ė","ě","е","e");
$char_k = array("k","κ","k");
$char_c = array("c","ϲ","с","ⅽ","c");
$char_h = array("h","һ","h");
#!/usr/bin/python
'''
@file gcode_testfile_maker.py
@description generates a testfile with initialization
and repeated forward/backward movement of
one axis of the printer
@author simon.burkhardt (@mnemocron)
@date 2019-03-02
@comment FHNW FS19 EIT Pro4E
'''
@mnemocron
mnemocron / agenda-views.php
Created February 6, 2019 19:35
Display time recordings from an app as .ics calendars with php
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<link href='assets/fullcalendar.min.css' rel='stylesheet' />
<link href='assets/fullcalendar.print.min.css' rel='stylesheet' media='print' />
<script src='assets/lib/moment.min.js'></script>
<script src='assets/lib/jquery.min.js'></script>
<script src='assets/fullcalendar.min.js'></script>
<script>
@mnemocron
mnemocron / siv_animation_of_poles.m
Created November 23, 2018 13:04
Animation to display the poles of a transfer function in dependence of the parameter qp
%******************************************************************************
% \details : Animation to display the poles of a transfer function in
% dependence of the parameter qp
% \autor : Simon Burkhardt
% \file : siv_animation_of_poles.m
% \date : 23.11.2018
% \version : 1.0
%******************************************************************************
clear all; close all; clc;
format shorteng;
@mnemocron
mnemocron / four_wheeled_car_trial_tinkering.m
Last active November 21, 2018 17:01
Animation of a car driving around
%******************************************************************************
% \details : An3E Serie 1
% \autor : Simon Burkhardt
% \file : four_wheeled_car_trial_tinkering.m
% \date : 19.11.2018
% \version : 1.0
%******************************************************************************
clear all; close all; clc; format shorteng;
% input variables