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> | |
<!--[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"> |
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> | |
<!--[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"> |
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 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end |
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 './app' | |
run Sinatra::Application |
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
source 'https://rubygems.org' | |
gem 'sinatra' |
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
#include <Servo.h> | |
Servo myservo; | |
int servoPin = 12; | |
int lock = 0; | |
int unlock = 180; | |
void setup() { | |
// initialize serial: | |
Serial.begin(9600); |
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 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'); |
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
#include <Servo.h> | |
int pirPin = 2; //digital 2 | |
int servoPin = 12; //digital 12 | |
int lock = 0; | |
int unlock = 180; | |
Servo myservo; | |
void setup(){ |
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
// 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 |
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
// 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 |
NewerOlder