Skip to content

Instantly share code, notes, and snippets.

View MitchRatquest's full-sized avatar

Mitchell Dokken MitchRatquest

View GitHub Profile
#include <OSCBundle.h>
#include <SLIPEncodedSerial.h>
SLIPEncodedSerial SLIPSerial(Serial);
/*
1 --------------- VIN
0 -| |- GND
RST -| |- RST
GND -| |- 5V
2 -| ARDUINO |- A7 ONLY
#!/bin/sh
USER="$( logname )"
ls > allexternals
filename="allexternals" #ls > allexternals to get foldernames
echo "#N canvas 5 57 450 294 10;" > declareALL.pd #all pd sketches start with this
while read -r line
do
name="$line"
echo "#X declare -stdpath /home/$USER/pd-externals/$name;" >> declareALL.pd
echo "#X obj 7 34 54 declare -stdpath /home/$USER/pd-externals/$name;" >> declareALL.pd
#!/bin/sh
#use as get_externals.sh TWITTERACCOUNT USERNAME PASSWORD
#account is public but i dont wanna share it
mkdir externals && cd externals
wget -O temphtml https://twitter.com/$1 && grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' temphtml > ips && rm temphtml
read -r ipaddress < ips
wget -m ftp://$2:$3@$ipaddress/share/pd/*
#mv * ~/externals #THIS LINE DOESN"T WORK
rm ips
echo "now move these files to the correct directory under ~/pd-externals"
#N canvas 296 286 808 492 10;
#X declare -lib mrpeach;
#X declare -lib moocow;
#X msg 543 65 close;
#X msg 637 66 devices;
#N canvas 0 309 789 479 bauds 0;
#X msg 319 274 baud 57600;
#X msg 357 312 baud 230400;
#X msg 338 293 baud 115200;
#X msg 300 255 baud 38400;
@MitchRatquest
MitchRatquest / dambitstrue.sh
Created June 2, 2016 22:47
mama had a baby a;nd its head popped off
#!/bin/bash
###
### http://elinks.or.cz/download.html
###
### http://elinks.or.cz/download/elinks-current-unstable.tar.bz2
###
### http://cygwin.com/ml/cygwin-apps/2003-12/msg00323.html
### --without-x --enable-leds --enable-fastmem --enable-256-colors
import multiprocessing
import signal
import sys
import random
import multiprocessing
class Markov(object):
def __init__(self, open_file):
self.cache = {}