Skip to content

Instantly share code, notes, and snippets.

View dpruessner's full-sized avatar

Daniel Pruessner dpruessner

  • None
  • Dallas, TX
View GitHub Profile
@dpruessner
dpruessner / Description.md
Last active June 7, 2017 23:54
Problems with ChipPRO SDK Programming custom BuildRoot image

Following procedure from: http://www.chip-community.org/index.php/Startup_Program_with_Buildroot

Buildroot executes and builds images properly (we have lots of experience with buildroot for building our i.MX6 images).

Environment

  • Late 2015 MacBook Pro (2x USB3.0 ports)
  • VirtualBox 5.1.6 (with proper guest tools installed)
  • USB 2.0 Hub (MACALLY Trihub4 from Amazon)
@dpruessner
dpruessner / json-parsing-example.c
Last active September 4, 2015 02:08
Example of JSON parsing using jsmn
/**
* Extract the string value of a JSON key out of a parsed JSON structure.
*
* @param json Generic JSON stateful structure as returned/modified by JSMN library
* @param name Null-terminated string with key name to lookup
* @param json_val This string pointer will be updated with the location of the data in the JSON buffer.
*
* @return -1 if no key found, otherwise we return the length of the string
* (excluding NULL-terminator; just like strlen() would return).
*
@dpruessner
dpruessner / framing_example.c
Last active August 29, 2015 14:27
Example of framing with UART protocol
//
#define FRAME_SOF (0xFE)
#define FRAME_TYPE_WIFI_CONNECT (0x02)
char frame_buf[254];
typedef struct {
unsigned char sof;
unsigned char flen;
unsigned char ftype;
@dpruessner
dpruessner / PowerElectronicParametersSurvey.md
Last active January 3, 2016 14:59
Survey of electrical parameters for power electronic components

Purpose

This document quickly surveys major manufacturers of power electronics components. Several manufacturers use different quantities in their datasheets to designate particular quantities or parameters in the usage and performance of electronic components. This survey will influence a style guide for parameter names in an EDA parts library.

List of Companies

The following companies are major sponsors of APEC, the Applied Power Electronics Conference in North America, and can be considered leaders in the Power Electronics marketplace.

  1. Diodes Inc (DIOD)
  2. Fairchild Semiconductor (FCS)
@dpruessner
dpruessner / rbx-multithread.rb
Created February 1, 2012 16:34
rbx multi-threaded test program
#!/usr/bin/env ruby
#
# Characterize rbx true multi-threading vs. mri1.9.2
#
require 'digest/md5'
require 'thread'
########################################################
# Number of threads in the program
THREADS = 5
LEN_OUTER = 1000
@dpruessner
dpruessner / Start of JRuby DOM connection.txt
Created January 10, 2012 19:09
JRuby DOM connection (start)
Hi--
Here's how (I believe) you can modify Web DOM within JRuby:
1) Modify jruby/src/org/jruby/JRubyApplet.java:
409a410,413
> final IRubyObject wrappedApplet = JavaEmbedUtils.javaToRuby(runtime, applet);
> runtime.defineGlobalConstant("JRUBY_APPLET", wrappedApplet);
> wrappedApplet.getMetaClass().defineAnnotatedMethods(RubyMethods.class);
>