Skip to content

Instantly share code, notes, and snippets.

View marvage's full-sized avatar

Janet marvage

View GitHub Profile
@marvage
marvage / PythonArduino.py
Created November 21, 2016 21:59 — forked from jreisstudio/PythonArduino.py
Python + Arduino on/off the LED.
import serial # you need to install the pySerial :pyserial.sourceforge.net
import time
# your Serial port should be different!
arduino = serial.Serial('/dev/tty.usbmodem1411', 9600)
def onOffFunction():
command = raw_input("Type something..: (on/ off / bye )");
if command =="on":
print "The LED is on..."
time.sleep(1)
@marvage
marvage / gist:1e94acaddfc04c75f79972e021351d64
Created May 17, 2016 07:29 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>