Skip to content

Instantly share code, notes, and snippets.

# Contributor: Rick W. Chen <stuffcorpse at archlinux dot us>
pkgname=msp430-libc
pkgver=20120224
pkgrel=2
pkgdesc="C runtime library for the MSP430 family of microcontrollers"
arch=('i686' 'x86_64')
url="http://mspgcc4.sourceforge.net/"
license=('custom')
depends=('gcc-msp430')
# Contributor: Rick W. Chen <stuffcorpse at archlinux dot us>
pkgname=gcc-msp430
pkgver=4.6.3
pkgrel=4
pkgdesc="GNU toolchain for the TI MSP430 processor"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/mspgcc/"
license=('GPL')
makedepends=('gcc46' 'binutils-msp430')
@Hodapp87
Hodapp87 / subprocess_example
Created April 4, 2014 20:50
subprocess with string to stdin
# Will require changes (due to how strings are handled) on Python 3.x
import subprocess
f = open("test.jpg")
jpegString = f.read()
ret = subprocess.Popen(["./jpeg_check.o", "-"], stdin = subprocess.PIPE)
ret.communicate(jpegString)
print(ret.returncode)
@Hodapp87
Hodapp87 / ivory.patch
Last active August 29, 2015 14:19
Patch for Ivory (GHC 7.10)
diff --git a/Makefile b/Makefile
index db883e9..2d0807d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,6 @@ PACKAGE= \
ivory-backend-acl2 \
ivory-backend-c \
ivory-eval \
- ivory-examples \
ivory-hw \
@Hodapp87
Hodapp87 / shell.nix
Created April 21, 2017 17:24
darktable shell.nix draft
{ pkgs ? import <nixpkgs> {} }:
# Based on nixpkgs/pkgs/applications/graphics/darktable/default.nix
let stdenv = pkgs.stdenv;
#assert stdenv ? glibc;
in stdenv.mkDerivation rec {
name = "darktable-git";
src = pkgs.lib.cleanSource ./.;
@Hodapp87
Hodapp87 / jpeg_split.c
Last active December 27, 2017 02:10
Write each scan from a multi-scan/progressive JPEG.
// jpeg_split.c: Write each scan from a multi-scan/progressive JPEG.
// This is based loosely on example.c from libjpeg, and should require only
// libjpeg as a dependency (e.g. gcc -ljpeg -o jpeg_split.o jpeg_split.c).
#include <stdio.h>
#include <jerror.h>
#include "jpeglib.h"
#include <setjmp.h>
#include <string.h>
void read_scan(struct jpeg_decompress_struct * cinfo,

CGAL dabbling

@Hodapp87
Hodapp87 / Dockerfile
Created May 18, 2020 13:24
ox-hugo test
FROM ubuntu:18.04
RUN apt-get update -y \
&& apt-get install -y emacs-nox ca-certificates wget unzip \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /root/.emacs.d
COPY init.el /root/.emacs.d/
COPY test.org /root
@Hodapp87
Hodapp87 / error.txt
Created May 18, 2020 14:38
ox-hugo & toggle-debug-on-error
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-name-as-directory(nil)
org-hugo--attachment-rewrite-maybe("//ox-hugo.scripter.co/test/ox-hugo/org.png" (:export-options nil :back-end [cl-struct-org-export-backend hugo blackfriday ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" (quote {})) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hu
@Hodapp87
Hodapp87 / penny.ipynb
Created May 29, 2020 15:52
Scratch notebook for penny detection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.