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
import java.util.Hashtable; | |
import org.xml.sax.Attributes; | |
import org.xml.sax.SAXException; | |
import org.xml.sax.helpers.DefaultHandler; | |
/** | |
* XML parser for simulation config. | |
* @author ryank_000 | |
* |
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
#include "uart.h" | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <termios.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
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
var sys = require("sys"); | |
var http = require('http'); | |
var url = require('url'); | |
var querystring = require('querystring'); | |
var notp = require('notp'); | |
var crypto = require('crypto'); | |
var thirtyTwo = require('thirty-two'); | |
var assert = require('assert'); |
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
var express = require('express'); | |
/*** Application Setup ***/ | |
//Create express app | |
var app = express(); | |
// Set up body parser for retrieval of POST data | |
app.use(bodyParser.urlencoded({ extended: true })); |
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/python | |
# | |
# Python Version Header Generator Script | |
# | |
# Uses Semantic Version (http://semver.org/) based git tags to generate header files | |
# containing useful version information | |
# To create an appropriate tag, use `git tag -a "vX.X.X" -m "message here" | |
# For more information, see: | |
# https://gist.github.com/ryankurte/0cc1b536a72f29741460 | |
# http://electronpowered.org/2015/01/20/using-git-tags-to-track-software-versions/ |
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
TargetVendor=0x12d1 | |
TargetProduct=0x1f1c | |
MessageContent="55534243123456780000000000000011062000000101000100000000000000" |
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/python | |
# | |
# Color serial terminal | |
# Looks for the terms "error", "warning", "info" on each line and applies | |
# color if they are recognized. | |
# Additionally allows recognition of a regular expression passed into the function | |
import serial; | |
import argparse; | |
import subprocess; |
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
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1F01*", SYMLINK+="hwcdrom", RUN+="/usr/bin/sg_raw /dev/hwcdrom 11 06 20 00 00 00 00 00 01 00" |
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
uint8_t hex_to_int(uint8_t c) | |
{ | |
if ((c >= 48) && (c <= 57)) { | |
//Numeric data | |
return (c - 48); | |
} else if ((c >= 65) && (c <= 70)) { | |
//Lower case ASCII | |
return (c - 65 + 10); |
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
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0115", OWNER="USERNAME" |
OlderNewer