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/bin/env python | |
import cgi | |
import ModestMaps | |
import random | |
print "Content-type: text/html" | |
print """ | |
<style> |
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
set nocompatible | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set showmatch |
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
user www-data; | |
worker_processes 5; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
server { |
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 express = require("express"), | |
http = require("http"); | |
var app = express(); | |
var server = http.createServer(app); | |
var io = require("socket.io").listen(server); | |
server.listen(80); | |
app.get("/", function (req, res) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width initial-scale=1.0 user-scalable=no minimum-scale=1.0 maximum-scale=1.0" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> | |
<!--<script type="text/javascript" src="kinetic-v4.0.4.min.js"></script>--> | |
<script type="text/javascript"> |
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
// change destination for screenshots | |
defaults write com.apple.screencapture location /Users/feesta/Sites/Screenshots/ | |
// loads changes immediately eliminating need to logout/login. | |
killall SystemUIServer – | |
// Don't ask when executing downloaded files. Use with care! | |
defaults write com.apple.LaunchServices LSQuarantine -bool NO |
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
// DummyConsole.js | |
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{}); | |
if (typeof MINE === "undefined") MINE = {}; | |
var options = {}; | |
jQuery(function() { | |
M = new MINE.MyLibrary(options); | |
}); |
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
// Hello World for Max72xx and a 4 digit 7-segment display (Electric Imp device code) | |
hardware.pin7.configure(DIGITAL_OUT); | |
hardware.spi189.configure(SIMPLEX_TX, 10000); | |
function send(data) { | |
hardware.pin7.write(0); // set CS before sending data | |
hardware.spi189.write(data); | |
hardware.pin7.write(1); // release CS after sending data | |
} |
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
class BMP180_Sensor | |
{ | |
// Squirrel Class for Bosch BMP180 Temperature and Pressure Sensor | |
// [http://www.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf] | |
// As used on the Adafruit BMP180 breakout board | |
// [http://www.adafruit.com/products/1603] | |
// Bus: I2C | |
// Note: current version only accounts for an oversampling_setting = 0 | |
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
{ | |
"workbench.colorTheme": "Visual Studio Light", | |
"workbench.colorCustomizations": { | |
"titleBar.activeForeground":"#ffffff", | |
"titleBar.activeBackground":"#968c82", | |
"titleBar.inactiveForeground":"#888", | |
"titleBar.inactiveBackground": "#cbbfb1", | |
"window.activeBorder":"#000", | |
"window.inactiveBorder":"#666", |
OlderNewer