Skip to content

Instantly share code, notes, and snippets.

@spott
spott / kicad_fp-lib-table
Created September 9, 2016 04:39 — forked from xesscorp/kicad_fp-lib-table
Place this text into your fp-lib-table file to add these Github-hosted PCB footprint libraries to KiCad.
#
# LIST OF KICAD GITHUB-HOSTED PCB FOOTPRINT LIBRARIES
#
# Place this text into your fp-lib-table file to add these Github-hosted PCB footprint libraries to KiCad.
#
# You can omit a library by placing a '#' at the start of that particular line.
#
# Each library is listed twice. The first line is for when you want read-only access to the library.
# If you also want to modify the footprints in the library, then comment the first line and
# uncomment the second line. You must also create a local directory for storing your modified
@spott
spott / Makefile
Last active August 29, 2015 14:26 — forked from edwardhotchkiss/Makefile
ATtiny85 avr-gcc / avrdude Makefile
DEVICE = attiny85
CLOCK = 8000000
PROGRAMMER = stk500v1
PORT = /dev/tty.usbmodem1421
BAUD = 19200
FILENAME = main
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
all: usb clean build upload
@spott
spott / make log
Created June 23, 2015 21:12
Julia Head fails to build
2015-06-23 14:59:39 -0600
make
-C
contrib
-f
repackage_system_suitesparse4.make
prefix=/usr/local/Cellar/julia/HEAD
USE_BLAS64=0
FC=/usr/local/bin/gfortran
@spott
spott / reduced.cpp
Last active August 29, 2015 14:17
reduced case
#include <iostream>
#include <petsc.h>
struct context {
Vec H0;
Mat D;
std::function<double(double)> E;
};
PetscErrorCode
@spott
spott / git-clang-format
Created February 19, 2015 23:10
clang-format git integration.
#!/usr/bin/env python
#
#===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
@spott
spott / pre-commit
Created February 19, 2015 23:09
Pre=commit hook for clang-format. from: DUNE-Multiscale/hooks/pre-commit-clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by rene.milk@wwu.de
# This file is part of a set of unofficial pre-commit hooks available
# at github.
@spott
spott / gist:7b82e852322dd910f720
Created May 17, 2014 05:25
classy prelude fail
ClassyPrelude.hs:234:9:
Could not deduce (a ~ ())
from the context (Monad m, MonoFoldable c)
bound by the type signature for
mapM_ :: (Monad m, MonoFoldable c) =>
(Element c -> m a) -> c -> m ()
at ClassyPrelude.hs:233:10-69
`a' is a rigid type variable bound by
the type signature for
mapM_ :: (Monad m, MonoFoldable c) =>
module pc.parser;
import std.stdio;
import std.array;
import std.ctype;
import std.string;
import std.conv;
import std.regex;
import std.variant;
import std.functional;
@spott
spott / build.sh all
Last active August 29, 2015 14:01
IHaskell Install
a ipython_config.py
a ipython_console_config.py
a ipython_notebook_config.py
a ipython_qtconsole_config.py
a static
a static/base
a static/custom
a static/custom/conceal
a static/custom/custom.css
a static/custom/custom.js
@spott
spott / homebrew --config
Created March 15, 2014 16:43
homebrew config info
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 380fc27e27ec685f2fefebcfab999ace1d8b7dfb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1
CLT: 5.1.0.0.1.1393561416
Clang: 5.1 build 503