Skip to content

Instantly share code, notes, and snippets.

@turnersr
turnersr / animating_temperature.py
Created September 28, 2014 20:45
Create temperate over time animation. Example at https://vimeo.com/107410270
from iris import load_cube
import iris.quickplot as qplt
import matplotlib.pyplot as plt
from matplotlib import animation
import sys
# air_temp_location is the directory with your air.sig995 netCDF files
air_temp_location = ""
date = range(1948,2015)
@turnersr
turnersr / jumptable.asm
Created October 18, 2014 17:13
Jump Table Example
start:
0x00401000: pushl %ebp
0x00401001: movl %esp, %ebp
0x00401003: subl $0x8, %esp
0x00401006: movl 0x14(%ebp), %eax
0x00401009: movl %eax, -4(%ebp)
0x0040100c: movl 0x10(%ebp), %ecx
0x0040100f: movsbl (%ecx), %edx
0x00401012: movl %edx, -8(%ebp)
0x00401015: movl -8(%ebp), %eax
@turnersr
turnersr / 2d_heat_equation.py
Created October 24, 2014 22:49
Solution to 2d heat equation
# coding: utf-8
# In[1]:
get_ipython().magic(u'pylab inline')
# In[3]:
@turnersr
turnersr / log.txt
Created January 31, 2017 02:09
Apktool Error
: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: /Users/turnersr/Downloads/dji/dji_3.1.1./dji.pilot_3.1.1/res/layout/account_view_new.xml:32: error: No resource identifier found for attribute 'djiTextFace' in package 'dji.pilot'
W:
W: /Users/turnersr/Downloads/dji/dji_3.1.1./dji.pilot_3.1.1/res/layout/account_view_new.xml:34: error: No resource identifier found for attribute 'djiTextFace' in package 'dji.pilot'
W:
@turnersr
turnersr / entropy_analysis.ipynb
Created March 20, 2017 01:46
Analysis data matrix by columns
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@turnersr
turnersr / estimate_pilots.ipynb
Last active March 22, 2017 03:09
Estimating Pilots given CP and number of subcarriers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@turnersr
turnersr / arm_counts
Created March 29, 2017 01:00
Distribution up to 4 byte grams for ARM 32
This file has been truncated, but you can view the full file.
0020a0e3 9990
e10800a0 999
9de509 999
8de530 999
54e2 999
2930 999
0c1094 999
0be54430 999
01007040 999
ca 9982
@turnersr
turnersr / x86_counts.txt
Created March 29, 2017 01:11
x86 counts for up to 4 byte grams
This file has been truncated, but you can view the full file.
450c8b 9984
fffe 998
f783 998
f304 998
c60fac 998
89c60fac 998
848c 998
46ff 998
4220 998
3d0508 998
@turnersr
turnersr / rep_finder.ipynb
Last active April 7, 2017 02:53
Gven a binary stream, try to find repeating values by considering the frequency and autocorrelation of different n-bit string parsings of binary data stream
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <android/log.h>
#include <jni.h>
#include <binder/Binder.h>
#include <binder/Parcel.h>
#include <binder/IServiceManager.h>
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>