I hereby claim:
- I am red-green on github.
- I am nwx (https://keybase.io/nwx) on keybase.
- I have a public key whose fingerprint is C441 D86F 0E1D 63F6 02A3 D4CC 7C3C 155D C04F FEDE
To claim this, I am signing this object:
void setup() { | |
size(displayWidth,displayHeight); | |
background(0); | |
colorMode(HSB); | |
} | |
float angle = 0; | |
float col = 0; | |
float increment = 0.7; | |
float linelen = 10; |
I hereby claim:
To claim this, I am signing this object:
/********************************************************************* | |
This is an example sketch for our Monochrome Nokia 5110 LCD Displays | |
Pick one up today in the adafruit shop! | |
------> http://www.adafruit.com/products/338 | |
These displays use SPI to communicate, 4 or 5 pins are required to | |
interface | |
Adafruit invests time and resources providing this open source code, |
#!/bin/bash | |
SESSION=$USER | |
# requires tmux, speedometer, htop | |
# speedometer = network graphs | |
# htop = better cpu usage | |
# btcwatch.sh and dogewatch.sh simply call ./<coin>-cli getinfo every 30 seconds | |
# leaves a pane open to shell | |
# borrowed some code from http://blog.htbaa.com/news/tmux-scripting |
import socket, threading | |
import requests | |
import time, random | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.settimeout(8) | |
sock.bind(("",7593)) | |
sock.listen(10) | |
def handler(con,addr): |
letters = { "a":[ "###", "# #", "###", "# #", "# #"], "b":[ "###", "# #", "###", "# #", "###"], "c":[ "###", "#", "#", "#", "###"], "d":[ "##", "# #", "# #", "# #", "##"], "e":[ "###", "#", "###", "#", "###"], "f":[ "###", "#", "###", "#", "#"], "g":[ "###", "# #", "###", " #", "###"], "h":[ "# #", "# #", "###", "# #", "# #"], "i":[ "###", " #", " #", " #", "###"], "j":[ "###", " #", " #", " #", "##"], "k":[ "# #", "##", "#", "##", "# #"], "l":[ "#", "#", "#", "#", "###"], "m":[ "# #", "###", "###", "# #", "# #"], "n":[ "###", "# #", "# #", "# #", "# #"], "o":[ "###", "# #", "# #", "# #", "###"], "p":[ "###", "# #", "###", "#", "#"], "q":[ "###", "# #", "###", " #", " #"], "r":[ "###", "# #", "##", "# #", "# #"], "s":[ "###", "#", "###", " #", "###"], "t":[ "###", " #", " #", " #", " #"], "u":[ "# #", "# #", "# #", "# #", "###"], "v":[ "# #", "# #", "# #", "# #", " #"], "w":[ "# #", "# #", "# #", "###", "###"], "x":[ "# #", " #", " #", " #", "# #"], "y":[ "# #", "# #", "###", " #", "###"], "z":[ "###", " |
import socket, errno, time | |
from string import maketrans | |
ircupper = maketrans( | |
"abcdefghijklmnopqrstuvwxyz[]~\\", | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZ{}^|") | |
def parse(cmd): | |
data = cmd.split(" ") | |
if data[0][0] != ':': |
r=Math.random;w=$(window);setInterval("$('<b>★</b>').css({color:'gold',position:'fixed',top:r()*w.height(),left:r()*w.width()}).appendTo('body').animate({fontSize:0},3e3)",9) | |
r=Math.random;w=$(window);setInterval("$('<b>♦</b>').css({color:'blue',position:'fixed',top:r()*w.height(),left:r()*w.width()}).appendTo('body').animate({fontSize:0},3e3)",9) | |
r=Math.random;w=$(window);setInterval("$('<b>★</b>').css({color:'gold',position:'fixed',top:r()*w.height(),left:r()*w.width()}).appendTo('body')",9) |
#!/bin/bash | |
# Jasper install script (http://jasperproject.github.io/) | |
# Must be run as root (i.e. sudo setup.sh) | |
apt-get update | |
apt-get upgrade --yes | |
apt-get install vim git-core espeak python-dev python-pip bison libasound2-dev libportaudio-dev python-pyaudio subversion autoconf libtool automake gfortran --yes | |
sed "s/options snd-usb-audio index=-2/options snd-usb-audio index=0" /etc/modprobe.d/alsa-base.conf>/etc/modprobe.d/alsa-base.conf |
int x,y; | |
int direction; | |
int w = 500; | |
int h = 500; | |
int on = (int)color(0,0,0); //black = on | |
int off = (int)color(255,255,255); //white = off | |
void setup() { |