Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#include <stdio.h>
#include <stdlib.h>
#define I2C_ADDR 0x3F
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin 1
using System;
using MeasurementComputing.DAQFlex;
using System.Threading;
namespace aincons
{
class MainClass
{
public static DaqDevice device;
public static int aimaxcount;
This file has been truncated, but you can view the full file.
I-pipe frozen back-tracing service on 3.5.7-xenomai.5c17a0a.ipipetrace.imt.20130122.1606.tue/ipipe release #3
------------------------------------------------------------
CPU: 0, Freeze: 432116098587 cycles, Trace Points: 10000 (+10)
Calibrated minimum trace-point overhead: 0.080 us
+----- Hard IRQs ('|': locked)
|+-- Xenomai
||+- Linux ('*': domain stalled, '+': current, '#': current+stalled)
||| +---------- Delay flag ('+': > 1 us, '!': > 10 us)
||| | +- NMI noise ('N')
This file has been truncated, but you can view the full file.
I-pipe frozen back-tracing service on 3.5.7-xenomai.5c17a0a.ipipetrace.imt.20130122.1606.tue/ipipe release #3
------------------------------------------------------------
CPU: 0, Freeze: 531173259712 cycles, Trace Points: 10000 (+10)
Calibrated minimum trace-point overhead: 0.080 us
+----- Hard IRQs ('|': locked)
|+-- Xenomai
||+- Linux ('*': domain stalled, '+': current, '#': current+stalled)
||| +---------- Delay flag ('+': > 1 us, '!': > 10 us)
||| | +- NMI noise ('N')
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 3.5.7-xenomai.5c17a0a.ipipetrace.imt.20130122.1606.tue Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf32-i386"
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 3.5.7-xenomai.5c17a0a.nogeneric.imt.20130124.1525.thu Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf32-i386"
@dmd
dmd / gist:5267158
Created March 28, 2013 21:54
update rtcansend to accept data from file
--- xenomai-2.6.2.1/src/utils/can/rtcansend.c 2013-01-22 14:37:05.000000000 -0500
+++ robot4/crob/rtcansendmulti.c 2013-03-28 17:47:21.436106822 -0400
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
@@ -18,9 +19,10 @@
static void print_usage(char *prg)
@dmd
dmd / rtcansendmulti.c
Created April 18, 2013 21:43
Extends rtcansend to allow for input files.
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <getopt.h>
#include <sys/mman.h>
#include <native/task.h>
@dmd
dmd / keybase.md
Created September 22, 2014 19:37

Keybase proof

I hereby claim:

  • I am dmd on github.
  • I am dmd (https://keybase.io/dmd) on keybase.
  • I have a public key whose fingerprint is C6E6 E4F9 B6CA A5EE 2F6D 3411 487F 110C 322B 4C83

To claim this, I am signing this object:

@dmd
dmd / fixer.py
Created April 27, 2015 00:53
flickr/bulkr fixer
#!/usr/bin/python
import sys
import datetime
from dateutil.parser import parse
import os
import re
from pipes import quote
from subprocess import check_output, call
fn = sys.argv[1]