Skip to content

Instantly share code, notes, and snippets.

View sethhillbrand's full-sized avatar

Seth Hillbrand sethhillbrand

View GitHub Profile
#!/usr/bin/python
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj5y//msBdADCZCusSgic70tLDOA2OtSc7LF4Y7fpI+6Xo
Mr2hdhKQv0egkRGll5Ssoz5lfkMjfMyRn1Whq6PxKsorEl0nJOb0Ec8i7KhlN3KAd1eVCjie0gr0
1dUiUgrTjRFHfnQdNbl4GcwA2ttY835bKB6rr08DtxtqiAeCzaFe4XKIScZLXIE/i0Q5UVkYVAcK
UYDEjG4zv2RDW150YySiISSeKgjQbG2t6D12ZxG073w3+XS7LuKc1Mtd1xDP3dzXmStMNMVuD0KG
08/YPAwYKXvJyrSzpy5mTyz3vVo7tI5iSSbSXo3WGWzLA+cYMbe9aZSpQm0mIo0xQEgn98wG8yrZ
wADM4aBw4WpyYevk5ZHCx3HD6WGUT8cYILBpmVR702Kjn9vuGSNVbDFxAQDKe6hIDMFixA4pQfZP
hhev5Cy79H+II91lw1pGzZqeiWQNiJQAy5U+1TW3PzzssYDFdTzd/JdxRXlFWkLoHCSGyGOvZish
Js8TkTFM//5KO6IEiFtqbDlOWKYMiaIJWsDMDo/Qbr1X4bArND9Rb2BAKcOHB/7fc1YyIvV24/1X
9fARbaWAAW7FqufGyAKcZW6pyb48Ew+QBPAHoGuY4oebZe5KyrC7eO4I/F7G1HqMUAYqRV3FqDWn
jhIH597FHqg84Qnb7Fr6OKJ3oeVKOk1LrKhGSy+sgZNWYSLB7xwy4BrFzZmHvuj4NXz4IqE+LnFG
@sethhillbrand
sethhillbrand / omptest.c
Created March 1, 2018 16:42
Quick OpenMP test
#include <stdlib.h>
#include <stdio.h>
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(4)
{
printf("Hello from thread %d, nthreads %d\\n", omp_get_thread_num(), omp_get_num_threads());
}
@sethhillbrand
sethhillbrand / TO-5-5_Window.kicad_mod
Created March 21, 2018 16:02
MT03-004 Symbol and Footprint
(module Package_TO_SOT_THT:TO-5-5_Window (layer F.Cu) (tedit 5AB27E4D)
(descr "TO-5-5_Window, Window")
(tags "TO-5-5_Window Window")
(fp_text reference REF** (at 2.54 -5.82) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value TO-5-5_Window (at 2.54 5.82) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_arc (start 2.54 0) (end -0.457084 -3.774902) (angle 346.9) (layer F.SilkS) (width 0.12))
@sethhillbrand
sethhillbrand / custom_iterator.cpp
Created July 12, 2018 22:58 — forked from jeetsukumaran/custom_iterator.cpp
Sample C++/STL custom iterator
// Sample custom iterator.
// By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558)
// From: http://www.dreamincode.net/forums/index.php?showtopic=58468
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>
@sethhillbrand
sethhillbrand / kicad_picknplace_assistant.py
Created August 27, 2018 21:48 — forked from pwuertz/kicad_picknplace_assistant.py
KiCad PCB pick and place assistant
#!/usr/bin/python2
import re
import os
import numpy as np
import pcbnew
import matplotlib.pyplot as plt
import matplotlib.patches;
from matplotlib.patches import Rectangle, Circle, Ellipse, FancyBboxPatch, Polygon