This file contains 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
#!/bin/env python | |
""" | |
Simple VTK example in Python to load an STL mesh and display with a manipulator. | |
Chris Hodapp, 2014-01-28, (c) 2014 | |
""" | |
import vtk | |
def render(): |
This file contains 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
// 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, |
This file contains 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
# 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') |
This file contains 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
# 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') |
This file contains 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
# 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) |
This file contains 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 | |
"""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 |
This file contains 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
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 \ |
This file contains 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
{ 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 ./.; |
This file contains 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
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 |
OlderNewer