Instantly share code, notes, and snippets.

👺

CameronSkamDart

👺
• Sort options
Last active Apr 24, 2017
241 stress test script slightly modified
View stress.py
 import subprocess import sys """Usage: python stress.py localhost:4000 PUT test format.h alternatively, chmod u+x ./stress.py localhost:4000 PUT test format.h
Last active May 3, 2017
Sample bash commands for testing client PUT/GET
View test_commands.sh
 # fill in n with some integer # run in foreground for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt ; done # run in background for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt & # diff all files in foreground for i in $(seq 0 n) diff temp_dir/file$i file.txt ; done mkdir tmp for i in $(seq 0 n) ; do ./client localhost:4000 GET file$i.txt tmp/file$i.txt ; done for i in$(seq 0 n) ; do diff file.txt tmp/file$i.txt ; done Created Jul 12, 2017 bash script to uncrustify hpic repo View gist:8d7657ffb401647ee045e771712bb023  find ~/hpic/includes/ -type f -name "*.h" | xargs uncrustify -c ~/.uncrustify.cfg --no-backup find ~/hpic/src/ -type f -name "*.h" | xargs uncrustify -c ~/.uncrustify.cfg --no-backup Created Jul 12, 2017 quick and dirty script to uncrustify hpic repo View beautify.sh  find ~/hpic/includes/ -type f -name "*.h" | xargs uncrustify -c ~/.uncrustify.cfg --no-backup find ~/hpic/src/ -type f -name "*.h" | xargs uncrustify -c ~/.uncrustify.cfg --no-backup Created Jul 12, 2017 ipython notebook for hpic buffer_integrity_test View buffer_integrity_test.ipynb Sorry, something went wrong. Reload? Sorry, we cannot display this file. Sorry, this file is invalid so it cannot be displayed. Created Jul 14, 2017 View kenneth_install.sh  # to run this and install some useful packages use # chmod u+x kenneth_install.sh # ./kenneth_install.sh # homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # python3 brew install python3 # update package manager pip3 install --upgrade pip # install computing libraries
Created Nov 28, 2017
View q10.tex
 Given $\dot y = Ly$ with $y^{(0)} \neq \hat 0$, determine the behavior of the linear system of ODE's. We can express $y(0)$ as the linear combination, $$y(0) = \sum_{i = 1}^{n}\alpha_iv_i$$ where $\alpha_i$ is a scalar. Then we have a closed form for $y(t)$, $$y(t) = \sum_{i = 1}^{n} \alpha_i v_i e^{\lambda_it}$$ Consider the following cases for $L$ with First, let $L = -(A^TA)$. The matrix $A^TA$ is symmetric positive definite so it has all strictly positive real eigenvalues. Hence, $L$ has strictly negative real eigenvalues.
Last active Jan 8, 2018 — forked from jimmc2/twitterurl.py