Skip to content

Instantly share code, notes, and snippets.

Avatar

Saurav R. Tuladhar sauravrt

View GitHub Profile
@sauravrt
sauravrt / read_binarylog.py
Created Aug 17, 2017
Read binary data file
View read_binarylog.py
import struct
import numpy as np
if __name__ == '__main__':
'''
# Data format: "%1B(Hours)%1B(Minutes)%4F(Seconds)%4U(ChipTimeUS)
%4F(RawAccelX)%4F(RawAccelY)%4F(RawAccelZ)"
The header string is 108 bytes long + CRLF\r\n (2bytes)
Each valid data record is 22 bytes
View findmypi.sh
# Script to find raspberry pi ip on your local network
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
@sauravrt
sauravrt / rmtintro.ipynb
Created Dec 2, 2012
RandomMatrixTheoryIntro
View rmtintro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View wishart.ipynp
{
"metadata": {
"name": "WishartMatrix"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sauravrt
sauravrt / mrp-kathmandu.md
Created Oct 10, 2014
MRP application process at Kathmandu
View mrp-kathmandu.md

MRP application process at Kathmandu

@sauravrt
sauravrt / skeleton.m
Created Feb 22, 2014
Script to open editor with skeleton code structure in MATLAB
View skeleton.m
function skeleton
% Script to open editor with skeleton code structure
% Skeleton taken from
% http://www.cs.utah.edu/~germain/PPS/Topics/Matlab/function_design_pattern.html
content = sprintf(strcat('function return_value = name_of_function( parameters ) \n', ...
'%% Author: \n', ...
'%% Date: ', date, '\n', ...
'%% Partner: \n', ...
'%% Function : Name of Function \n', ...