Skip to content

Instantly share code, notes, and snippets.

View amarburg's full-sized avatar

Aaron Marburg amarburg

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import subprocess
import os
from os import path
import datetime
scene = 'd2_p8_z0'
# prepare paths
videos = "output/" + scene + '/videos/'
import argparse
import logging
import datetime
from os import path
parser = argparse.ArgumentParser(description='Generate .str file for a set of image files')
parser.add_argument('input', metavar='inputfiles', nargs='+',
@amarburg
amarburg / rs485_ioctl_test.c
Created April 11, 2016 21:30
A quick test function to demonstrate the Linux serial / RS485 ioctls().
/*
* Test program Linux RS485-mode ioctls.
*
* cc -o rs485_mode rs485_mode.c
*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@amarburg
amarburg / enigma1656.rb
Created January 16, 2012 00:14
Ruby solution to New Scientist Enigma 1656
#!/usr/bin/env ruby
def divisible a,b
p = a.to_f/b
(a - p.to_i*b) == 0
end
def indivisible a,b
not divisible a,b
end
@amarburg
amarburg / application.rb
Created November 27, 2011 22:42
Mogile proxy in Rails3
module AerialImageDb
class Application < Rails::Application
# ...snip...
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)
# ...snip...
end