Skip to content

Instantly share code, notes, and snippets.

View jonmarkgo's full-sized avatar
🎓
preparing the MLH Fellowship

Jonathan Gottfried jonmarkgo

🎓
preparing the MLH Fellowship
View GitHub Profile
// Modified by Worapoht K. and Jonathan Gottfried
#include <SoftwareSerial.h>
#include <Servo.h>
int val = 0;
char code[10];
int bytesread = 0;
int rfidPin = 2;
#define rxPin 8
// Modified by Worapoht K. and Jonathan Gottfried
#include <SoftwareSerial.h>
#include <Servo.h>
int val = 0;
char code[10];
int bytesread = 0;
int rfidPin = 2;
#define rxPin 8
#include <Servo.h>
int pirPin = 2; //digital 2
int servoPin = 12; //digital 12
int lock = 0;
int unlock = 180;
Servo myservo;
void setup(){
#include <Servo.h>
Servo myservo;
int servoPin = 12;
int lock = 0;
int unlock = 180;
void setup() {
// initialize serial:
Serial.begin(9600);
@jonmarkgo
jonmarkgo / Gemfile
Created February 19, 2015 20:31
EB Tutorial
source 'https://rubygems.org'
gem 'sinatra'
require './app'
run Sinatra::Application
require 'sinatra'
get '/hi' do
"Hello World!"
end
<!doctype html>
<!--[if lt IE 7]> <html class="ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="ie9 oldie" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html lang="en"> <!--<![endif]-->
<head>
<title>Alphabet</title>
<meta charset="utf-8">
<!doctype html>
<!--[if lt IE 7]> <html class="ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="ie9 oldie" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html lang="en"> <!--<![endif]-->
<head>
<title>Alphabet</title>
<meta charset="utf-8">
<?xml version="1.0" encoding="UTF-8"?>
<listings type="array">
<listing>
<created-at type="datetime">2011-02-09T17:28:40Z</created-at>
<description>Homemade Lemonade</description>
<id type="integer">1</id>
<lat type="float">22.73</lat>
<lng type="float">-20.19</lng>
<photo-url>http://example.com/photo.jpg</photo-url>
<price type="integer">100</price>