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
<!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">
require 'sinatra'
get '/hi' do
"Hello World!"
end
require './app'
run Sinatra::Application
@jonmarkgo
jonmarkgo / Gemfile
Created February 19, 2015 20:31
EB Tutorial
source 'https://rubygems.org'
gem 'sinatra'
#include <Servo.h>
Servo myservo;
int servoPin = 12;
int lock = 0;
int unlock = 180;
void setup() {
// initialize serial:
Serial.begin(9600);
var twilio = require('twilio'),
SerialPort = require("serialport").SerialPort,
express = require('express');
var app = express();
function sendMessage(res, message) {
var resp = new twilio.TwimlResponse();
resp.message(message);
res.type('text/xml');
#include <Servo.h>
int pirPin = 2; //digital 2
int servoPin = 12; //digital 12
int lock = 0;
int unlock = 180;
Servo myservo;
void setup(){
// 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