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

eta-systems 2.911.716.01

Arduino Firmware flashen


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

Quelle: avrfreaks.net

@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 / 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
@mnemocron
mnemocron / Arduino_hex_to_int.cpp
Created July 22, 2018 09:43
Converts a String in hexadecimal to an Integer
uint32_t htoi( String htoi_str ){
char itoh_lower[18] = {"0123456789abcdef"}; // 16 chars + null
char itoh_upper[18] = {"0123456789ABCDEF"}; // 16 chars + null
uint32_t htoi_number = 0;
for(int index = 0; index < htoi_str.length(); index ++){ // each hex number in String
for(int val = 0; val < 16; val ++){ // each possible value
if ( htoi_str[htoi_str.length() -index -1] == itoh_lower[val] ||
htoi_str[htoi_str.length() -index -1] == itoh_upper[val] ){
if(val > 0){
@mnemocron
mnemocron / file2json.php
Created July 13, 2018 10:02
returns json from a json file.
<?php
header('Content-type: application/json');
$filename = $_GET['f'];
$json_path = './resources/' . $filename;
if (file_exists($json_path) && strcmp(pathinfo($filename, PATHINFO_EXTENSION), 'json') ==0 ) {
$myfile = fopen($json_path, 'r') or die('Unable to open file!');
@mnemocron
mnemocron / template.py
Created July 6, 2018 20:05
Python Template
#!/usr/bin/python
#_*_ coding: utf-8 _*_
'''
@file
@author
@date
'''
# ===== COLORS =====