Skip to content

Instantly share code, notes, and snippets.

View maikwoehl's full-sized avatar

Maik Wöhl maikwoehl

View GitHub Profile
@maikwoehl
maikwoehl / horizon-eda-package.yml
Created September 8, 2021 11:10
Solus package.yml for horizon-eda
name : horizon-eda
version : 2.1.0
release : 1
source :
- https://github.com/horizon-eda/horizon/archive/refs/tags/v2.1.0.tar.gz : 2ba7a64ef0d8f22ad12e6a5a9c108f865eeb468f954f51ee5fbc03e6a847549a
license : GPL-3.0-or-later
component : office.scientific
summary : Horizon is a free EDA package
homepage : https://horizon-eda.org/
description: |
@maikwoehl
maikwoehl / install_dev_env.sh
Last active November 2, 2020 15:18
Debian Linux Development Environment
#!/bin/bash
DRY_RUN=1
# DRY RUN message
if [ "$DRY_RUN" = 1 ]; then
echo "##################################################"
echo "# DRY RUN mode active! No scripts are executed! #"
echo "# Please set DRY_RUN from '1' to '0' to start #"
echo "# the rocket! #"
@maikwoehl
maikwoehl / lifetime.rs
Created May 19, 2020 22:08
This gist shows, why the lifetime specifier helps the rust compiler to see a hidden borrow.
enum Quality {
Good,
Questionable,
Invalid,
}
// TODO: Implement as trait
struct HasQuality<'a> {
pub value: &'a Box<&'a str>,
quality: Quality,
}

Keybase proof

I hereby claim:

  • I am maikwoehl on github.
  • I am maikwoehl (https://keybase.io/maikwoehl) on keybase.
  • I have a public key whose fingerprint is B05D 5BA1 1EF3 87C6 1502 F572 1014 B727 D1B2 4AD1

To claim this, I am signing this object:

@maikwoehl
maikwoehl / serializeQueryString.py
Created May 20, 2016 00:13
Quick Serializing of GET Query String
# Serializes a GET query string
# Input: key1=value1&key2=value2
# Output: { 'key1': 'value1', 'key2': 'value2' }
def serializeQueryString(query_string):
query = query_string.split("&")
params = {}
for item in params:
params[item.split("=")[0]] = item.split("=")[1]
return params
//******UNTESTED**********
// If Pin5 (2.0) High -> Start Cycle
// Pin 10-17 are the Output Pins for 8 LEDs
//************************
#include "core/gpio/gpio.h"
#include "core/cpu/cpu.h"
#include "core/systick/systick.h"
#define timeDelay 200 // delay in ms