Skip to content

Instantly share code, notes, and snippets.

@elijahc
elijahc / jsondumps.py
Created February 16, 2017 19:43
Dumping input arguments as json
import json
...
# Parse arguments
parser = argparse.ArgumentParser(description='RNN for modeling neuron populations')
...
FLAGS = parser.parse_args()
return FLAGS
@elijahc
elijahc / readme.md
Created March 1, 2017 22:45 — forked from baraldilorenzo/readme.md
VGG-19 pre-trained model for Keras

##VGG19 model for Keras

This is the Keras model of the 19-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

Download cuda-8.run file
Download Nvidia-367.18-driver.run file
Remove old drivers (apt remove --purge nvidia*)
Remove old nvidia.deb packages (just in case that's necessary?)
Remove my cuda folders (/usr/local/cuda*) (again, just in case)
reboot
Graphics probably won't work now (they didn't for me), so use tty (ctrl-alt-1) or ssh (might want to set that up before doing all this)
(I might have run the Nvidia-367.18.run file here, followed with a reboot, but I can't remember)
@elijahc
elijahc / README.md
Last active July 12, 2017 18:59
Updates - FORCE learning and timeconstant

In walking through the math to derive the equation they use in their code to maintain/model the X(t) neuron state vector I realized I was not using an appropriate time step size. After correcting the step size the model appears to make better predictions as quantified by mean Pearson Correlation Coefficient

N = 1000

214 Cells in Experiment 500964514

Using 50 cell ids: [ 7 11 26 28 40 41 45 47 49 50 54 63 68 69 70 76 77 82

@elijahc
elijahc / kali_pi_over_eth.md
Last active August 12, 2017 10:12
Kali Raspberry Pi Setup over Ethernet

Hardcode IP address into the boot sequence on the SD card (cmdline.txt)

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait ip=169.254.113.200

Try pinging the raspi

$ ping 169.254.113.200
@elijahc
elijahc / _readme.md
Last active May 30, 2023 05:34
Setup Raspberry Pi 2/3 to host control website over wifi

Install hostapd and lighttpd (high performance hosting)

$ sudo apt-get install hostapd lighttpd

Edit interfaces to load your wlan interface on boot

# Add the following (and consider making a backup of interfaces):
allow-hotplug wlan1

apt hostadp does not support edimax ew-7811un

This build allows support for it

$ mkdir ~/src
$ cd ~/src
$ wget https://github.com/jenssegers/RTL8188-hostapd/archive/v1.1.tar.gz
$ tar -zxvf v1.1.tar.gz
$ cd RTL8188-hostapd-1.1/hostapd
@elijahc
elijahc / _readme.md
Created August 19, 2017 17:28
Adding new environments to jupyter when using pyenv
@elijahc
elijahc / hw1.ipynb
Last active September 19, 2017 17:09
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.