>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
YELLOW="\[\033[0;33m\]" | |
# Comment in the above and uncomment this below for a color prompt | |
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$YELLOW\$(parse_git_branch)\[\033[00m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad |
Download the Raspbian image from:
https://downloads.raspberrypi.org/raspbian_latest
It's a big zip file, you only need to do this one.
Open a terminal and go to your downloads directory:
cd Downloads
Notes from the group discussion around this question:
- finger movement makes key close circuit
- goes to the OSX kernel keyboard manager
- what do i get if I am a keylogger?
- passwords
- anything else I type
- your laptop comes out of energy savings mode
- browser looks up cache of recently accessed addresses
- Thoughtcollider, WiFi dowsing rod
- Jasper van Loenen, Web Training Collar
- Zach Gage, Temporary
- An Actually Useful Version of Yo Is Warning Israelis of Rocket Strikes
- The Real Costs
- Steve Lambert, Arts that replace ads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pathfinder.*; | |
Graph[] gs = new Graph[4]; | |
PImage[] graphImage = new PImage[4]; | |
int start[] = new int[4]; | |
int end[] = new int[4]; | |
float nodeSize[] = new float[4]; | |
int graphNo = 0; | |
int algorithm; |
Let's say you want to run a Processing sketch on a server. Like maybe you want to generate several million PDF and JPEG images using a handful of Amazon EC2 instances.
This is called “headless” mode, and to do so, it's necessary to install what's known as a virtual frame buffer.
On Ubuntu 14.04, these are the things you need to install first:
sudo apt-get install xvfb libxrender1 libxtst6 libxi6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum state { | |
stWAITING, | |
stUP, | |
stDOWN, | |
}; | |
int THRESHOLD = 250; // LDR sensor reading | |
long TIMEOUT = (5+3)*1000; // this is milliseconds so that's secs * 1000 | |
// 8..13 are relays |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Bring all Finder windows to front | |
function applicationWatcher(appName, eventType, appObject) | |
if (eventType == hs.application.watcher.activated) then | |
if (appName == "Finder") then | |
-- Bring all Finder windows forward when one gets activated | |
appObject:selectMenuItem({"Window", "Bring All to Front"}) | |
end | |
end | |
end | |
local appWatcher = hs.application.watcher.new(applicationWatcher) |