This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This script now has its own proper repo thanks to @mithro: | |
https://github.com/mithro/kicad-length-matching-checks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set datafile separator comma | |
set xlabel "IOUT (mA)" | |
set ylabel "VOUT (mV)" | |
set key left bottom | |
plot \ | |
'reg_dropout_7_2v_heatsink.csv' using 2:3 with lines title 'VIN 7.2V with Heatsink', \ | |
'reg_dropout_7_2v_nohs.csv' using 2:3 with lines title 'VIN 7.2V no Heatsink', \ | |
'reg_dropout_7_5v_nohs.csv' using 2:3 with lines title 'VIN 7.5V no Heatsink', \ | |
'reg_dropout_8v_heatsink.csv' using 2:3 with lines title 'VIN 8V with Heatsink', \ | |
'reg_dropout_8v_nohs.csv' using 2:3 with lines title 'VIN 8V no Heatsink', \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, json, sys, subprocess, re | |
""" | |
i3_status/i3bar output munger using JSON formatted status lines, | |
allows you to add custom fields to the i3 status line. | |
In this example I add a "Backup Running" warning message at the | |
beginning if a duplicity backup is running, and also put 2.4GHz or | |
5GHz in the existing wlan0 status line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install: $(APP).elf | |
# try to upload via a running openocd instance first, if that | |
# fails then fail over to running openocd program | |
( echo "halt; flash write_image erase $(APP).elf; reset" | nc localhost 4444 ) || \ | |
$(OPENOCD) --command "program $(APP).elf; reset" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Web Server from SD | |
Take the contents of "datalog.txt" and output it in response to HTTP request on / | |
Simple mashup of the existing WebServer & DumpFile example sketches by Tom Igoe, Limor Fried, others. | |
*/ | |
#include <SPI.h> | |
#include <Ethernet.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
usage: gerblook_it.py [-h] [-m COLOUR] [-s COLOUR] [-c COLOUR] [-n] [GERBERS] | |
Upload a zip file (or directory of gerbers) to gerblook | |
Most basic use to upload a whole directory of gerber files is: | |
cd <gerber_directory> | |
gerblook_it.py . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <stdlib.h> | |
# include <stdio.h> | |
# include <math.h> | |
int do_benchmark ( void ); | |
double cpu_time ( void ); | |
void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); | |
double ddot ( int n, double dx[], int incx, double dy[], int incy ); | |
int dgefa ( double a[], int lda, int n, int ipvt[] ); | |
void dgesl ( double a[], int lda, int n, int ipvt[], double b[], int job ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SD card CRC32 calculator by Angus Gratton for Freetronics | |
* | |
* CRC32 implementation based on the implementation in the C SNIPPETS archive | |
* http://web.archive.org/web/20080303102524/http://c.snippets.org/snip_lister.php?fname=crc_32.c | |
* | |
* Original Copyright (C) 1986 Gary S. Brown. You may use this program, or | |
* code or tables extracted from it, as desired without restriction. | |
* | |
* This version is released with the same lack of restrictions, use however you please. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Digikey order splitter script for group buys. For Python 3.x. Public Domain. | |
Supports cases where people are paying in a different currency to the Digikey currency, | |
and also pro rata splitting of shipping costs. | |
If you use this then please sanity check the results before sending them | |
Usage: |