Skip to content

Instantly share code, notes, and snippets.

@Hodapp87
Hodapp87 / solx86_init.c
Created May 11, 2023 18:12
X11R6 source code
// Source: https://www.x.org/releases/X11R6/
// xc/programs/Xserver/hw/xfree86/os-support/solx86/solx86_init.c
/* $XConsortium: solx86_init.c,v 1.2 94/10/12 20:50:38 kaleb Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/solx86/solx86_init.c,v 3.0 1994/09/23 10:25:22 dawes Exp $ */
/*
* Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany
* Copyright 1993 by David Wexelblat <[email protected]>
*
* Permission to use, copy, modify, distribute, and sell this software and its
@Hodapp87
Hodapp87 / penny.ipynb
Created May 29, 2020 15:52
Scratch notebook for penny detection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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

CGAL dabbling

@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 / 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 / sound_plots.py
Created March 7, 2015 16:09
Generating waveform & spectrum plots with NumPy & matplotlib
#!/usr/bin/env python3
"""sound_plots.py: Simple example using NumPy & matplotlib to generate some
sound waveforms, plot them with their frequency spectra, and write out WAV
files of them."""
import numpy
import matplotlib.pyplot as plt
import wave
import struct
@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)
# 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')