Skip to content

Instantly share code, notes, and snippets.

View plttn's full-sized avatar

Jack Platten plttn

View GitHub Profile
language: ruby
cache: bundler
rvm:
- 1.9.3
branches:
only:
- deploy
before_install:
@plttn
plttn / config.fish
Last active August 29, 2015 14:21
adjusts fish shell title (as well as fixes SSH title bug with Terminal.app)
# Load exit_handler
. $HOME/.config/fish/functions/exit_handler.fish
if set -q VIRTUAL_ENV
set venvbase (basename $VIRTUAL_ENV)
set venv "$color_bold_yellow^venv:$venvbase$color_reset"
end
echo -s $user (set_color yellow)'@' $machine ':' $directory $git $venv

Keybase proof

I hereby claim:

  • I am plttn on github.
  • I am plttn (https://keybase.io/plttn) on keybase.
  • I have a public key ASC6jeQrZZhj8HrGIJlKcWYzSLEQWuf4NB0xCbD16RScbwo

To claim this, I am signing this object:

from tweepy import OAuthHandler
ckey = "fooo"
csecret = "foo"
atoken = "foo-foo"
asecret = "foo"
dtKey = "foo"
def getOAuth():
@plttn
plttn / lab2.ino
Last active February 17, 2017 00:21
/*
PUSH BUTTONS
Use pushbuttons for digital input
Previously we've used the analog pins for input, now we'll use
the digital pins for input as well. Because digital pins only
know about HIGH and LOW signals, they're perfect for interfacing
to pushbuttons and switches that also only have "on" and "off"
states.
We'll connect one side of the pushbutton to GND, and the other
// First we'll set up constants for the pin numbers.
// This will make it easier to follow the code below.
const int button1Pin = 2; // pushbutton 1 pin
const int ledPin = 13; // LED pin
void setup()
{
// Set up the pushbutton pins to be an input:
837 execve("/usr/bin/gpg", ["gpg", "--refresh-keys"], 0x7ffc5f842680 /* 27 vars */) = 0
837 brk(NULL) = 0x55e42cb8e000
837 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
837 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
837 fstat(3, {st_mode=S_IFREG|0644, st_size=21461, ...}) = 0
837 mmap(NULL, 21461, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f948e1b2000
837 close(3) = 0
837 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
837 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832
837 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0