garbage
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 arch -i386 ruby | |
# wxRuby based plotter for reading opalkelly channel | |
# hi @ siri.sh | |
require 'rubygems' | |
require 'wx' | |
include Wx |
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/ruby | |
# the pseudo-journal of biomedical engineering at USC | |
# Sirish Nandyala | |
# nandyala@usc.edu | |
Paper = Struct.new(:title, :year, :cites) | |
@papers = [] | |
@papers += [Paper.new("Fabrication and performace of endoscopic ultrasound radial arrays based on PMN-PT single crystal/epoxy 1-3 composite", 2011, 4)] |
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
`timescale 1ns / 1ps | |
module uart_rx_32(clock, reset, RxD, RxData); | |
input clock, reset; | |
input RxD; | |
//output [7:0] RxData; | |
output [31:0] RxData; | |
//reg [10:0]RxRegister; | |
reg [34:0]RxRegister; |
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
`timescale 1ns / 1ps | |
module uart_tx_32(clock, reset, TxData, transmit, TxD, state, nextState); | |
parameter IDLE = 0; | |
parameter TRANSMITTING=1; | |
input clock; | |
input reset; | |
//input [7:0] TxData; | |
input [31:0] TxData; | |
input transmit; |
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/ruby | |
# 4chan downloader (images only) | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' | |
def get_images(board, post) | |
@board = board |
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/ruby | |
# Tumblr downloader (video and images only) | |
require 'rubygems' | |
require 'open-uri' | |
require 'json' | |
def get_media(blog, max_posts) | |
@key = "fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4" | |
# ;) |
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/ruby | |
# Read SL log files | |
# hi@siri.sh | |
require 'csv' | |
@filename = "d00004" | |
@raw = File.open(@filename) |
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 | |
# Open .csv log file, plot elbow feed forward force and elbow load | |
import sys | |
import numpy as np | |
from pylab import * | |
from struct import pack, unpack | |
import csv |
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/ruby | |
# convert binary-encoded SL log files to .CSV, then plot them | |
def read_and_plot(filename) | |
@filename = filename | |
puts "Converting #{@filename} to .CSV" | |
system("ruby read_sl_data.rb #{@filename}") | |