This file contains 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
* Build a light thing with a neopixel (prob ring) in a deep frame with frosted glass | |
** Explain how to frost the glass with sandpaper - Moh scale! | |
* Put a USB micro power connector (pigtails) on a breadboard | |
* Put a USB micro socket on a breadboard (permaproto) | |
* Measure your USB wall wart - does it really provide 2A regulated? | |
** How to safely draw 2A | |
** Math! Hfe, Vds, etc. | |
** Use an FET. N channel or P? | |
** Measure with a DVM or with an Arduino. | |
* Put a 6 pin ISP header on a permaproto. Cut some traces! |
This file contains 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
var http = require("http"); | |
var api_key = "YOUR_KEY_HERE"; | |
var report = function(location) { | |
http.get("http://api.wunderground.com" | |
+ "/api/" + api_key | |
+ "/conditions/q/" + location + ".json", | |
function (res) { | |
var all = ""; | |
res.on("data", function (part) { |
This file contains 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
Vagrant.configure("2") do |config| | |
config.vm.define "nginx" do |app| | |
app.vm.provider "docker" do |d| | |
d.image = "progrium/nginx" | |
d.name = "nginx" | |
# expose container ports to docker host | |
# access from the vagrant host is left | |
# as an exercise for the reader | |
d.ports = ["4880:80","4881:9000"] |
This file contains 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
# container for xiti | |
## currently we use nodewiki but expect that to change | |
## see package.json | |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y python-software-properties | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list |
This file contains 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
#!/usr/local/plan9/bin/rc | |
bash `{9p read acme/$winid/tag | awk '{print $1}'} |
This file contains 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
#!/usr/local/plan9/bin/rc | |
echo -n 0 | 9p write acme/$winid/addr | |
date | sed a\\n | 9p write acme/$winid/data | |
echo -n '1/^/' | 9p write acme/$winid/addr | |
echo -n 'dot=addr' | 9p write acme/$winid/ctl |
This file contains 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
<div id='tag' contenteditable='true'>boot</div> | |
<textArea id='B'> | |
var Xput = function() { | |
localStorage[tag.textContent] = B.value; | |
} | |
var Xget = function() { | |
B.value = localStorage[tag.textContent]; | |
} | |
var Xopen = function(name) { | |
tag.textContent = name; |
This file contains 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
# save to ~/menu | |
# then run using "gist" | |
require "rest-client" | |
require "json" | |
class Gist | |
Github = RestClient::Resource.new "https://api.github.com" | |
DefaultMenu = | |
" - bb1f4fffaccbd30125b9 | |
- user/rsbohn/ |
This file contains 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
require "json" | |
require "rest-client" | |
class Wunderground | |
KEY = "YOUR-KEY-HERE" | |
WU = RestClient::Resource.new "http://api.wunderground.com/api/#{KEY}" | |
Sample = "- 02134/\n- AZ/Wikieup/\n- KSGU/\n- FL/Saint_Petersburg/\n- pws:KFLSTPET42/\n" | |
def self.menu *args | |
return Sample if args == [] |
This file contains 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
# container for remotestorage | |
# docker build -t remotestorage:latest https://gist.githubusercontent.com/rsbohn/f2106a47868f84d23519/raw/71bb980230a511d0a1924a84dbfee447d8f758d5/Dockerfile | |
# docker run -d -p 8001:8001 -p 8002:8002 remotestorage:latest | |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y python-software-properties | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list |
OlderNewer