diff --git a/Coates_guest_lecture/Nested-SQL-Joins-and-Views.pdf b/Coates_guest_lecture/Nested-SQL-Joins-and-Views.pdf
new file mode 100644
index 0000000..4b16996
Binary files /dev/null and b/Coates_guest_lecture/Nested-SQL-Joins-and-Views.pdf differ
diff --git a/Coates_guest_lecture/example-db.sql b/Coates_guest_lecture/example-db.sql
new file mode 100644
index 0000000..643a596
--- /dev/null
+++ b/Coates_guest_lecture/example-db.sql
@@ -0,0 +1,142 @@
+-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
+--
+-- Host: localhost Database: example
+-- ------------------------------------------------------
+-- Server version 5.7.19-0ubuntu0.16.04.1-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `body`
+--
+
+DROP TABLE IF EXISTS `body`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `body` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `host_id` int(11) NOT NULL,
+ `host_type` char(1) NOT NULL,
+ `revision` int(11) NOT NULL,
+ `body_text` longtext,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `body`
+--
+
+LOCK TABLES `body` WRITE;
+/*!40000 ALTER TABLE `body` DISABLE KEYS */;
+INSERT INTO `body` VALUES (1,1,'P',1,'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam rutrum vestibulum commodo. Sed at urna bibendum, porttitor felis euismod, feugiat orci. Duis nec nibh sodales, imperdiet enim vitae, dignissim sapien. Duis tristique efficitur ligula aliquam porttitor. Duis malesuada commodo elit sed tincidunt. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur euismod, sapien nec feugiat aliquet, neque neque cursus mi, nec dapibus turpis lectus finibus purus. Fusce non nunc tortor. Praesent ornare magna ac erat laoreet, eu aliquam nibh sollicitudin. Fusce et egestas velit, egestas facilisis orci. Etiam aliquet id sapien id mattis. Donec pharetra eros nec orci porttitor, quis consectetur augue molestie. Donec ligula felis, congue eget sem in, varius viverra elit.'),(2,1,'P',2,'Duis tristique efficitur ligula aliquam porttitor. Fusce non nunc tortor. Praesent ornare magna ac erat laoreet, eu aliquam nibh sollicitudin. Fusce et egestas velit, egestas facilisis orci. Etiam aliquet id sapien id mattis. Donec pharetra eros nec orci porttitor, quis consectetur augue molestie. Donec ligula felis, congue eget sem in, varius viverra elit.'),(3,1,'P',3,'Vestibulum volutpat diam eros, ut vehicula velit semper scelerisque. Nam nec lectus efficitur, fringilla massa a, fermentum lorem. Duis a tristique nulla, hendrerit convallis mauris. Donec non efficitur sem. Donec eleifend tellus eget eros tempus, in ultricies diam mattis. Donec risus lectus, auctor in enim et, venenatis elementum sem. Integer vel vehicula lorem. Sed dapibus justo nec ligula bibendum tempus. Quisque laoreet hendrerit lorem ac sodales. Quisque non urna nec metus egestas rhoncus. Cras blandit tortor et tincidunt pulvinar.'),(4,2,'P',1,'Nunc scelerisque, ante a egestas gravida, purus libero dapibus dolor, sit amet blandit diam dui ut nulla. Morbi ut velit sed ligula euismod tristique. Duis fermentum, neque id eleifend cursus, enim dolor elementum enim, ac faucibus nisl nulla vel mauris. Cras libero urna, euismod quis fermentum sit amet, varius lobortis lectus. Donec at risus ac urna convallis egestas. Nunc egestas ullamcorper lobortis. Donec commodo quam ac risus pulvinar fringilla. Proin leo purus, semper ut venenatis vel, pulvinar eu risus. Fusce at mauris purus. Aliquam porta arcu at lectus faucibus, ut viverra magna tristique. Etiam convallis purus at facilisis convallis. Sed ante magna, laoreet vel massa eu, pulvinar laoreet odio. Nunc nec cursus orci, vel euismod tellus. Sed blandit dapibus urna vestibulum varius. Curabitur eget erat sed nunc volutpat vehicula.'),(5,2,'P',2,'Aliquam porta arcu at lectus faucibus, ut viverra magna tristique. Etiam convallis purus at facilisis convallis. Sed ante magna, laoreet vel massa eu, pulvinar laoreet odio. Nunc nec cursus orci, vel euismod tellus. Sed blandit dapibus urna vestibulum varius. Curabitur eget erat sed nunc volutpat vehicula. Nunc scelerisque, ante a egestas gravida, purus libero dapibus dolor, sit amet blandit diam dui ut nulla. Morbi ut velit sed ligula euismod tristique. Duis fermentum, neque id eleifend cursus, enim dolor elementum enim, ac faucibus nisl nulla vel mauris. Cras libero urna, euismod quis fermentum sit amet, varius lobortis lectus. Donec at risus ac urna convallis egestas. Nunc egestas ullamcorper lobortis. Donec commodo quam ac risus pulvinar fringilla. Proin leo purus, semper ut venenatis vel, pulvinar eu risus. Fusce at mauris purus. '),(6,1,'C',1,'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vel sollicitudin metus. In vestibulum eleifend orci, vitae dapibus metus pulvinar quis. Etiam et tellus quis diam tincidunt sagittis et ut mauris. Integer a mi nec augue ultrices tempor. Ut feugiat mi eu tortor ornare eleifend. Morbi pharetra consectetur sapien non placerat. Fusce tincidunt, mi vel pulvinar varius, est libero vulputate enim, ac pulvinar odio lorem eget nulla. Vestibulum nec ipsum mauris. Etiam sit amet interdum sapien, vel pharetra lorem. Duis ac auctor magna. Nunc eu finibus diam, non malesuada nisl. Nullam pharetra nec sapien id hendrerit. Curabitur fermentum dui sed diam elementum aliquam. Aliquam eu placerat odio, quis mollis nisi.\r\n\r\nInteger maximus, ex eget rhoncus tristique, urna eros sodales leo, et accumsan libero justo in risus. Nullam vulputate dui ut dui dignissim, sit amet pulvinar orci pretium. Etiam a diam ligula. Aliquam venenatis tellus non ante iaculis pellentesque. Aliquam venenatis enim id pharetra hendrerit. Aenean ut faucibus eros, sed porta dolor. Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.\r\n\r\nVestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam rhoncus ultricies magna id rhoncus. Sed sit amet purus vel lorem elementum condimentum. Maecenas ornare ipsum massa, ac ultricies est vulputate nec. Morbi euismod libero sed posuere placerat. Nulla facilisi. Mauris vitae odio ut ante aliquam vehicula. Fusce in aliquet lacus. Curabitur auctor finibus quam, ut convallis orci ultricies vitae. Phasellus convallis metus id feugiat auctor. Aenean non sem feugiat, faucibus mi in, viverra sem. Sed auctor pharetra velit, vitae efficitur quam vulputate eget. Aliquam laoreet orci tortor, ac interdum ligula elementum quis.'),(7,1,'C',2,'Aliquam venenatis enim id pharetra hendrerit. Aenean ut faucibus eros, sed porta dolor. Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.\r\n\r\nVestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam rhoncus ultricies magna id rhoncus. Sed sit amet purus vel lorem elementum condimentum. Maecenas ornare ipsum massa, ac ultricies est vulputate nec. Morbi euismod libero sed posuere placerat. Nulla facilisi. Mauris vitae odio ut ante aliquam vehicula. Fusce in aliquet lacus. Curabitur auctor finibus quam, ut convallis orci ultricies vitae. Phasellus convallis metus id feugiat auctor. Aenean non sem feugiat, faucibus mi in, viverra sem. Sed auctor pharetra velit, vitae efficitur quam vulputate eget. Aliquam laoreet orci tortor, ac interdum ligula elementum quis.'),(8,2,'C',1,'Fusce in aliquet lacus. Curabitur auctor finibus quam, ut convallis orci ultricies vitae. Phasellus convallis metus id feugiat auctor. Aenean non sem feugiat, faucibus mi in, viverra sem. Sed auctor pharetra velit, vitae efficitur quam vulputate eget. Aliquam laoreet orci tortor, ac interdum ligula elementum quis.'),(9,3,'C',1,'Integer maximus, ex eget rhoncus tristique, urna eros sodales leo, et accumsan libero justo in risus. Nullam vulputate dui ut dui dignissim, sit amet pulvinar orci pretium. Etiam a diam ligula. Aliquam venenatis tellus non ante iaculis pellentesque. Aliquam venenatis enim id pharetra hendrerit. Aenean ut faucibus eros, sed porta dolor. Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.\r\n\r\nVestibulum ante ipsum primis in faucibus orci luctus et ula. Fusce in aliquet lacus. Curabitur auctor finibus quam, ut convallis orci ultricies vitae. Phasellus convallis metus id feugiat auctor. Aenean non sem feugiat, faucibus mi in, viverra sem. Sed auctor pharetra velit, vitae efficitur quam vulputate eget. Aliquam laoreet orci tortor, ac interdum ligula elementum quis.'),(10,4,'C',1,'Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.\r\n'),(11,5,'C',1,'Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.\r\n\r\nVestibulum ante ipsum primis in faucibus orci luctus et ');
+/*!40000 ALTER TABLE `body` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `comment`
+--
+
+DROP TABLE IF EXISTS `comment`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `comment` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `page_id` varchar(45) NOT NULL,
+ `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `author` varchar(128) NOT NULL DEFAULT 'anonymous',
+ `title` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `comment`
+--
+
+LOCK TABLES `comment` WRITE;
+/*!40000 ALTER TABLE `comment` DISABLE KEYS */;
+INSERT INTO `comment` VALUES (1,'1','2017-12-03 19:22:40','j.doe@gmail.com','Phasellus ullamcorper sed tellus'),(2,'1','2017-12-03 19:24:15','b.blair@gmail.com','Quisque vitae lorem metus'),(3,'2','2017-12-03 19:24:55','ggg123@aol.com','Nunc scelerisque, ante a egestas gravida'),(4,'2','2017-12-03 19:25:24','o.prime@cybertron.com','Nullam risus enim, fringilla in urna eu'),(5,'2','2017-12-03 19:25:42','jlpicard@starfleet.org','Curabitur a aliquam urna');
+/*!40000 ALTER TABLE `comment` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `page`
+--
+
+DROP TABLE IF EXISTS `page`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `page` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `author` varchar(128) DEFAULT 'anonymous',
+ `title` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `page`
+--
+
+LOCK TABLES `page` WRITE;
+/*!40000 ALTER TABLE `page` DISABLE KEYS */;
+INSERT INTO `page` VALUES (1,'2017-12-03 18:53:32','sdcoates@umd.edu','Lorem Ipsum'),(2,'2017-12-03 19:16:56','d.who@bbc.co.uk','Another Lorem Ipsum');
+/*!40000 ALTER TABLE `page` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Temporary table structure for view `page1_view`
+--
+
+DROP TABLE IF EXISTS `page1_view`;
+/*!50001 DROP VIEW IF EXISTS `page1_view`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `page1_view` AS SELECT
+ 1 AS `created`,
+ 1 AS `author`,
+ 1 AS `revision`,
+ 1 AS `type`,
+ 1 AS `title`,
+ 1 AS `body_text`*/;
+SET character_set_client = @saved_cs_client;
+
+--
+-- Final view structure for view `page1_view`
+--
+
+/*!50001 DROP VIEW IF EXISTS `page1_view`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_general_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `page1_view` AS select `my_derived_table`.`created` AS `created`,`my_derived_table`.`author` AS `author`,`my_derived_table`.`revision` AS `revision`,`my_derived_table`.`type` AS `type`,`my_derived_table`.`title` AS `title`,`my_derived_table`.`body_text` AS `body_text` from (select `pg`.`created` AS `created`,`pg`.`author` AS `author`,`bd`.`revision` AS `revision`,`bd`.`host_type` AS `type`,`pg`.`title` AS `title`,`bd`.`body_text` AS `body_text` from (`example`.`page` `pg` join `example`.`body` `bd` on((`pg`.`id` = `bd`.`host_id`))) where ((`pg`.`id` = 1) and (`bd`.`host_type` = 'P')) union select `co`.`created` AS `created`,`co`.`author` AS `author`,`bd`.`revision` AS `revision`,`bd`.`host_type` AS `type`,`co`.`title` AS `title`,`bd`.`body_text` AS `body_text` from (`example`.`comment` `co` join `example`.`body` `bd` on((`co`.`id` = `bd`.`host_id`))) where ((`co`.`page_id` = 1) and (`bd`.`host_type` = 'C'))) `my_derived_table` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2017-12-04 17:27:49
diff --git a/Coates_guest_lecture/example.php b/Coates_guest_lecture/example.php
new file mode 100644
index 0000000..7af2699
--- /dev/null
+++ b/Coates_guest_lecture/example.php
@@ -0,0 +1,74 @@
+ 0) {
+
+ // fetch the results into an array
+ while( $rows[] = mysqli_fetch_assoc($result) ) {
+ // code to process rows would go here
+ }
+
+ echo "";
+ echo "
';
+ echo 'Added by ' . $row['author'] . ' on ' . $row['created'] . ' ';
+ echo '
' . $row['body_text'] . '
';
+
+ }
+ }
+ }
+ echo "";
+}
+
+mysqli_close($conn);
+
+?>
\ No newline at end of file
diff --git a/Coates_guest_lecture/queries.txt b/Coates_guest_lecture/queries.txt
new file mode 100644
index 0000000..c2ff774
--- /dev/null
+++ b/Coates_guest_lecture/queries.txt
@@ -0,0 +1,65 @@
+SELECT pg.created, pg.author, bd.host_type as type, pg.title, bd.body_text
+FROM page AS pg
+JOIN body AS bd ON pg.id = bd.host_id
+WHERE pg.id = 1 AND bd.host_type = "P" ;
+
+
+
+SELECT MAX(revision)
+FROM body
+WHERE host_id = 1 AND host_type = "P";
+
+
+
+SELECT pg.created, pg.author, bd.host_type as type, pg.title, bd.body_text
+FROM page AS pg
+JOIN body AS bd ON pg.id = bd.host_id
+WHERE pg.id = 1 AND bd.host_type = "P" AND bd.revision = (
+ SELECT max(revision)
+ FROM body
+ WHERE host_id = 1 AND host_type = "P"
+);
+
+
+
+SELECT co.created, co.author, bd.host_type AS type, co.title, bd.body_text
+FROM comment AS co
+JOIN body AS bd ON co.id = bd.host_id
+WHERE co.page_id = "1" AND bd.host_type = "C" AND bd.revision = (
+ SELECT max(revision)
+ FROM body
+ WHERE host_id = co.id AND host_type="C"
+);
+
+
+SELECT pg.created, pg.author, bd.host_type as type, pg.title, bd.body_text
+ FROM page AS pg
+ JOIN body AS bd ON pg.id = bd.host_id
+ WHERE pg.id = 1 AND bd.host_type = "P" AND bd.revision = (
+ SELECT max(revision)
+ FROM body
+ WHERE host_id = 1 AND host_type = "P"
+ )
+UNION
+SELECT co.created, co.author, bd.host_type AS type, co.title, bd.body_text
+ FROM comment AS co
+ JOIN body AS bd ON co.id = bd.host_id
+ WHERE co.page_id = 1 AND bd.host_type = "C" AND bd.revision = (
+ select max(revision)
+ FROM body
+ WHERE host_id = co.id AND host_type="C"
+);
+
+
+
+CREATE VIEW page1_view AS SELECT * FROM (
+ SELECT pg.created, pg.author, bd.revision, bd.host_type as type, pg.title, bd.body_text
+ FROM page AS pg
+ JOIN body AS bd ON pg.id = bd.host_id
+ WHERE pg.id = 1 AND bd.host_type = "P"
+ UNION
+ SELECT co.created, co.author, bd.revision, bd.host_type AS type, co.title, bd.body_text
+ FROM comment AS co
+ JOIN body AS bd ON co.id = bd.host_id
+ WHERE co.page_id = 1 AND bd.host_type = "C"
+) AS my_derived_table;
\ No newline at end of file
diff --git a/Coates_guest_lecture/test.html b/Coates_guest_lecture/test.html
new file mode 100644
index 0000000..f356f77
--- /dev/null
+++ b/Coates_guest_lecture/test.html
@@ -0,0 +1,6 @@
+Another Lorem Ipsum
Another Lorem Ipsum
Added by d.who@bbc.co.uk on 2017-12-03 19:16:56
Aliquam porta arcu at lectus faucibus, ut viverra magna tristique. Etiam convallis purus at facilisis convallis. Sed ante magna, laoreet vel massa eu, pulvinar laoreet odio. Nunc nec cursus orci, vel euismod tellus. Sed blandit dapibus urna vestibulum varius. Curabitur eget erat sed nunc volutpat vehicula. Nunc scelerisque, ante a egestas gravida, purus libero dapibus dolor, sit amet blandit diam dui ut nulla. Morbi ut velit sed ligula euismod tristique. Duis fermentum, neque id eleifend cursus, enim dolor elementum enim, ac faucibus nisl nulla vel mauris. Cras libero urna, euismod quis fermentum sit amet, varius lobortis lectus. Donec at risus ac urna convallis egestas. Nunc egestas ullamcorper lobortis. Donec commodo quam ac risus pulvinar fringilla. Proin leo purus, semper ut venenatis vel, pulvinar eu risus. Fusce at mauris purus.
Comment: Nunc scelerisque, ante a egestas gravida
Added by ggg123@aol.com on 2017-12-03 19:24:55
Integer maximus, ex eget rhoncus tristique, urna eros sodales leo, et accumsan libero justo in risus. Nullam vulputate dui ut dui dignissim, sit amet pulvinar orci pretium. Etiam a diam ligula. Aliquam venenatis tellus non ante iaculis pellentesque. Aliquam venenatis enim id pharetra hendrerit. Aenean ut faucibus eros, sed porta dolor. Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.
+
+Vestibulum ante ipsum primis in faucibus orci luctus et ula. Fusce in aliquet lacus. Curabitur auctor finibus quam, ut convallis orci ultricies vitae. Phasellus convallis metus id feugiat auctor. Aenean non sem feugiat, faucibus mi in, viverra sem. Sed auctor pharetra velit, vitae efficitur quam vulputate eget. Aliquam laoreet orci tortor, ac interdum ligula elementum quis.
Comment: Nullam risus enim, fringilla in urna eu
Added by o.prime@cybertron.com on 2017-12-03 19:25:24
Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.
+
Comment: Curabitur a aliquam urna
Added by jlpicard@starfleet.org on 2017-12-03 19:25:42
Vivamus faucibus dictum sapien, at tristique est auctor non. Sed condimentum nisl at vulputate elementum. Suspendisse eu massa eget massa ultricies tincidunt. Suspendisse semper, felis eget fermentum tristique, augue arcu pretium neque, in faucibus eros felis nec sem. Praesent ut sem ut sem dapibus condimentum lacinia ut felis. Praesent venenatis tortor at libero pharetra viverra. Nulla faucibus magna et scelerisque tincidunt. Morbi sollicitudin pretium erat.
+
+Vestibulum ante ipsum primis in faucibus orci luctus et
\ No newline at end of file
diff --git a/README.md b/README.md
index 490aa4c..97d632b 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,16 @@
-INST742 Git and Python Session (Feb. 20, 2017)
+INST377 Dynamic Web Applications (Fall 2017)
==============
-Myeong Lee, DCIC, iSchool
+Myeong Lee, iSchool, University of Maryland
--------------
-This repo provides course materials about Git and Python (Jupyter) for the INST 742 class.
+This repo provides course materials about Git for the INST 377 class.
Each folder has brief explanations about the topic and source code, if any.
-For both of these topics, you need to get familiar with command line tools (e.g., Git Shell, Bash, Terminal). Of course, using a command line tool instead of GUIs is not intuitive, but Git and Python require only basic commands. Don't worry.
+For the topics in the class, you need to get familiar with command line tools (e.g., Git Shell, Bash, Terminal). Of course, using a command line tool instead of GUIs is not intuitive, but many operations require only basic commands. Don't worry.
-#### [Link to the introduction to Git](git/) [Link to the introduction to Python](python/)
+Most of the course slides are available on ELMS.
+
+#### [Link to the introduction to Git](git/)
+#### [Link to the introduction to JavaScript](javascript/)
If you have any questions, contact Myeong Lee (myeong@umd.edu).
\ No newline at end of file
diff --git a/assignment_1/table_manager.html b/assignment_1/table_manager.html
new file mode 100644
index 0000000..5eb0bdc
--- /dev/null
+++ b/assignment_1/table_manager.html
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assignment_2/form_display.php b/assignment_2/form_display.php
new file mode 100644
index 0000000..ec6d1e5
--- /dev/null
+++ b/assignment_2/form_display.php
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assignment_2/form_generator.php b/assignment_2/form_generator.php
new file mode 100644
index 0000000..d9ebb7b
--- /dev/null
+++ b/assignment_2/form_generator.php
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assignment_3/config.php b/assignment_3/config.php
new file mode 100644
index 0000000..732a1a8
--- /dev/null
+++ b/assignment_3/config.php
@@ -0,0 +1,8 @@
+
diff --git a/assignment_3/form_viz.php b/assignment_3/form_viz.php
new file mode 100644
index 0000000..4fdff04
--- /dev/null
+++ b/assignment_3/form_viz.php
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assignment_3/insert.php b/assignment_3/insert.php
new file mode 100644
index 0000000..9990898
--- /dev/null
+++ b/assignment_3/insert.php
@@ -0,0 +1,39 @@
+" . mysqli_error($conn);
+ }
+
+}
+
+
+// Receving the submitted data
+
+
+
+// You need to save the data into the database. Write an INSERT query here.
+$sql = "";
+query_to_db($conn, $sql);
+
+
+
+mysqli_close($conn);
+
+
diff --git a/assignment_3/query.php b/assignment_3/query.php
new file mode 100644
index 0000000..a1a12dd
--- /dev/null
+++ b/assignment_3/query.php
@@ -0,0 +1,37 @@
+ 0) {
+ while($row = mysqli_fetch_assoc($result)) {
+ // var_dump($row);
+ echo $row["country_id"] . "," . $row['count'];
+ echo "\n";
+ }
+} else {
+ echo "No results..";
+}
+
+?>
\ No newline at end of file
diff --git a/assignment_4/index.html b/assignment_4/index.html
new file mode 100644
index 0000000..ca62325
--- /dev/null
+++ b/assignment_4/index.html
@@ -0,0 +1,50 @@
+
+
+
+ Layout
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Your Profile Image here...
+
+
+ Your Introduction here...
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/auth_api/auth.html b/auth_api/auth.html
new file mode 100644
index 0000000..d18f0ec
--- /dev/null
+++ b/auth_api/auth.html
@@ -0,0 +1,81 @@
+
+
+
+ Authorization
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Click here if you are logged in.
+
+
+
+
\ No newline at end of file
diff --git a/bootstrap/layout.html b/bootstrap/layout.html
new file mode 100644
index 0000000..e61ce3b
--- /dev/null
+++ b/bootstrap/layout.html
@@ -0,0 +1,92 @@
+
+
+
+ Layout
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/data_api/ajax_api.html b/data_api/ajax_api.html
new file mode 100644
index 0000000..22a0f35
--- /dev/null
+++ b/data_api/ajax_api.html
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/data_api/twitter-api-php-master/.gitignore b/data_api/twitter-api-php-master/.gitignore
new file mode 100755
index 0000000..cdb3d20
--- /dev/null
+++ b/data_api/twitter-api-php-master/.gitignore
@@ -0,0 +1,3 @@
+.idea/
+vendor/
+composer.lock
\ No newline at end of file
diff --git a/data_api/twitter-api-php-master/.travis.yml b/data_api/twitter-api-php-master/.travis.yml
new file mode 100755
index 0000000..abac424
--- /dev/null
+++ b/data_api/twitter-api-php-master/.travis.yml
@@ -0,0 +1,12 @@
+language: php
+php:
+ - "5.3"
+
+before_install:
+ - composer self-update
+
+before_script:
+ - composer install
+
+script:
+ - phpunit --configuration phpunit.xml
\ No newline at end of file
diff --git a/data_api/twitter-api-php-master/LICENSE.md b/data_api/twitter-api-php-master/LICENSE.md
new file mode 100755
index 0000000..1f7ccb6
--- /dev/null
+++ b/data_api/twitter-api-php-master/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 James Mallison (j7mbo.co.uk)
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
diff --git a/data_api/twitter-api-php-master/README.md b/data_api/twitter-api-php-master/README.md
new file mode 100755
index 0000000..1e7bdaa
--- /dev/null
+++ b/data_api/twitter-api-php-master/README.md
@@ -0,0 +1,99 @@
+twitter-api-php
+===============
+
+Simple PHP Wrapper for Twitter API v1.1 calls
+
+[](https://packagist.org/packages/j7mbo/twitter-api-php)
+[](https://travis-ci.org/J7mbo/twitter-api-php)
+[](https://packagist.org/packages/j7mbo/twitter-api-php)
+
+**[Changelog](https://github.com/J7mbo/twitter-api-php/wiki/Changelog)** ||
+**[Examples](https://github.com/J7mbo/twitter-api-php/wiki/Twitter-API-PHP-Wiki)** ||
+**[Wiki](https://github.com/J7mbo/twitter-api-php/wiki)**
+
+[Instructions in StackOverflow post here](http://stackoverflow.com/questions/12916539/simplest-php-example-retrieving-user-timeline-with-twitter-api-version-1-1/15314662#15314662) with examples. This post shows you how to get your tokens and more.
+If you found it useful, please upvote / leave a comment! :)
+
+The aim of this class is simple. You need to:
+
+- Include the class in your PHP code
+- [Create a twitter app on the twitter developer site](https://dev.twitter.com/apps/)
+- Enable read/write access for your twitter app
+- Grab your access tokens from the twitter developer site
+- [Choose a twitter API URL to make the request to](https://dev.twitter.com/docs/api/1.1/)
+- Choose either GET / POST (depending on the request)
+- Choose the fields you want to send with the request (example: `array('screen_name' => 'usernameToBlock')`)
+
+You really can't get much simpler than that. The above bullet points are an example of how to use the class for a POST request to block a user, and at the bottom is an example of a GET request.
+
+Installation
+------------
+
+**Normally:** If you *don't* use composer, don't worry - just include TwitterAPIExchange.php in your application.
+
+```php
+require_once('TwitterAPIExchange.php');
+```
+
+**Via Composer:**
+
+```bash
+composer require j7mbo/twitter-api-php
+```
+
+How To Use
+----------
+
+#### Set access tokens ####
+
+```php
+$settings = array(
+ 'oauth_access_token' => "YOUR_OAUTH_ACCESS_TOKEN",
+ 'oauth_access_token_secret' => "YOUR_OAUTH_ACCESS_TOKEN_SECRET",
+ 'consumer_key' => "YOUR_CONSUMER_KEY",
+ 'consumer_secret' => "YOUR_CONSUMER_SECRET"
+);
+```
+
+#### Choose URL and Request Method ####
+
+```php
+$url = 'https://api.twitter.com/1.1/blocks/create.json';
+$requestMethod = 'POST';
+```
+
+#### Choose POST fields (or PUT fields if you're using PUT) ####
+
+```php
+$postfields = array(
+ 'screen_name' => 'usernameToBlock',
+ 'skip_status' => '1'
+);
+```
+
+#### Perform the request! ####
+
+```php
+$twitter = new TwitterAPIExchange($settings);
+echo $twitter->buildOauth($url, $requestMethod)
+ ->setPostfields($postfields)
+ ->performRequest();
+```
+
+GET Request Example
+-------------------
+
+Set the GET field BEFORE calling buildOauth(); and everything else is the same:
+
+```php
+$url = 'https://api.twitter.com/1.1/followers/ids.json';
+$getfield = '?screen_name=J7mbo';
+$requestMethod = 'GET';
+
+$twitter = new TwitterAPIExchange($settings);
+echo $twitter->setGetfield($getfield)
+ ->buildOauth($url, $requestMethod)
+ ->performRequest();
+```
+
+That is it! Really simple, works great with the 1.1 API. Thanks to @lackovic10 and @rivers on SO!
diff --git a/data_api/twitter-api-php-master/TwitterAPIExchange.php b/data_api/twitter-api-php-master/TwitterAPIExchange.php
new file mode 100755
index 0000000..d6e3a58
--- /dev/null
+++ b/data_api/twitter-api-php-master/TwitterAPIExchange.php
@@ -0,0 +1,410 @@
+
+ * @license MIT License
+ * @version 1.0.4
+ * @link http://github.com/j7mbo/twitter-api-php
+ */
+class TwitterAPIExchange
+{
+ /**
+ * @var string
+ */
+ private $oauth_access_token;
+
+ /**
+ * @var string
+ */
+ private $oauth_access_token_secret;
+
+ /**
+ * @var string
+ */
+ private $consumer_key;
+
+ /**
+ * @var string
+ */
+ private $consumer_secret;
+
+ /**
+ * @var array
+ */
+ private $postfields;
+
+ /**
+ * @var string
+ */
+ private $getfield;
+
+ /**
+ * @var mixed
+ */
+ protected $oauth;
+
+ /**
+ * @var string
+ */
+ public $url;
+
+ /**
+ * @var string
+ */
+ public $requestMethod;
+
+ /**
+ * The HTTP status code from the previous request
+ *
+ * @var int
+ */
+ protected $httpStatusCode;
+
+ /**
+ * Create the API access object. Requires an array of settings::
+ * oauth access token, oauth access token secret, consumer key, consumer secret
+ * These are all available by creating your own application on dev.twitter.com
+ * Requires the cURL library
+ *
+ * @throws \RuntimeException When cURL isn't loaded
+ * @throws \InvalidArgumentException When incomplete settings parameters are provided
+ *
+ * @param array $settings
+ */
+ public function __construct(array $settings)
+ {
+ if (!function_exists('curl_init'))
+ {
+ throw new RuntimeException('TwitterAPIExchange requires cURL extension to be loaded, see: http://curl.haxx.se/docs/install.html');
+ }
+
+ if (!isset($settings['oauth_access_token'])
+ || !isset($settings['oauth_access_token_secret'])
+ || !isset($settings['consumer_key'])
+ || !isset($settings['consumer_secret']))
+ {
+ throw new InvalidArgumentException('Incomplete settings passed to TwitterAPIExchange');
+ }
+
+ $this->oauth_access_token = $settings['oauth_access_token'];
+ $this->oauth_access_token_secret = $settings['oauth_access_token_secret'];
+ $this->consumer_key = $settings['consumer_key'];
+ $this->consumer_secret = $settings['consumer_secret'];
+ }
+
+ /**
+ * Set postfields array, example: array('screen_name' => 'J7mbo')
+ *
+ * @param array $array Array of parameters to send to API
+ *
+ * @throws \Exception When you are trying to set both get and post fields
+ *
+ * @return TwitterAPIExchange Instance of self for method chaining
+ */
+ public function setPostfields(array $array)
+ {
+ if (!is_null($this->getGetfield()))
+ {
+ throw new Exception('You can only choose get OR post fields (post fields include put).');
+ }
+
+ if (isset($array['status']) && substr($array['status'], 0, 1) === '@')
+ {
+ $array['status'] = sprintf("\0%s", $array['status']);
+ }
+
+ foreach ($array as $key => &$value)
+ {
+ if (is_bool($value))
+ {
+ $value = ($value === true) ? 'true' : 'false';
+ }
+ }
+
+ $this->postfields = $array;
+
+ // rebuild oAuth
+ if (isset($this->oauth['oauth_signature']))
+ {
+ $this->buildOauth($this->url, $this->requestMethod);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Set getfield string, example: '?screen_name=J7mbo'
+ *
+ * @param string $string Get key and value pairs as string
+ *
+ * @throws \Exception
+ *
+ * @return \TwitterAPIExchange Instance of self for method chaining
+ */
+ public function setGetfield($string)
+ {
+ if (!is_null($this->getPostfields()))
+ {
+ throw new Exception('You can only choose get OR post / post fields.');
+ }
+
+ $getfields = preg_replace('/^\?/', '', explode('&', $string));
+ $params = array();
+
+ foreach ($getfields as $field)
+ {
+ if ($field !== '')
+ {
+ list($key, $value) = explode('=', $field);
+ $params[$key] = $value;
+ }
+ }
+
+ $this->getfield = '?' . http_build_query($params, '', '&');
+
+ return $this;
+ }
+
+ /**
+ * Get getfield string (simple getter)
+ *
+ * @return string $this->getfields
+ */
+ public function getGetfield()
+ {
+ return $this->getfield;
+ }
+
+ /**
+ * Get postfields array (simple getter)
+ *
+ * @return array $this->postfields
+ */
+ public function getPostfields()
+ {
+ return $this->postfields;
+ }
+
+ /**
+ * Build the Oauth object using params set in construct and additionals
+ * passed to this method. For v1.1, see: https://dev.twitter.com/docs/api/1.1
+ *
+ * @param string $url The API url to use. Example: https://api.twitter.com/1.1/search/tweets.json
+ * @param string $requestMethod Either POST or GET
+ *
+ * @throws \Exception
+ *
+ * @return \TwitterAPIExchange Instance of self for method chaining
+ */
+ public function buildOauth($url, $requestMethod)
+ {
+ if (!in_array(strtolower($requestMethod), array('post', 'get', 'put', 'delete')))
+ {
+ throw new Exception('Request method must be either POST, GET or PUT or DELETE');
+ }
+
+ $consumer_key = $this->consumer_key;
+ $consumer_secret = $this->consumer_secret;
+ $oauth_access_token = $this->oauth_access_token;
+ $oauth_access_token_secret = $this->oauth_access_token_secret;
+
+ $oauth = array(
+ 'oauth_consumer_key' => $consumer_key,
+ 'oauth_nonce' => time(),
+ 'oauth_signature_method' => 'HMAC-SHA1',
+ 'oauth_token' => $oauth_access_token,
+ 'oauth_timestamp' => time(),
+ 'oauth_version' => '1.0'
+ );
+
+ $getfield = $this->getGetfield();
+
+ if (!is_null($getfield))
+ {
+ $getfields = str_replace('?', '', explode('&', $getfield));
+
+ foreach ($getfields as $g)
+ {
+ $split = explode('=', $g);
+
+ /** In case a null is passed through **/
+ if (isset($split[1]))
+ {
+ $oauth[$split[0]] = urldecode($split[1]);
+ }
+ }
+ }
+
+ $postfields = $this->getPostfields();
+
+ if (!is_null($postfields)) {
+ foreach ($postfields as $key => $value) {
+ $oauth[$key] = $value;
+ }
+ }
+
+ $base_info = $this->buildBaseString($url, $requestMethod, $oauth);
+ $composite_key = rawurlencode($consumer_secret) . '&' . rawurlencode($oauth_access_token_secret);
+ $oauth_signature = base64_encode(hash_hmac('sha1', $base_info, $composite_key, true));
+ $oauth['oauth_signature'] = $oauth_signature;
+
+ $this->url = $url;
+ $this->requestMethod = $requestMethod;
+ $this->oauth = $oauth;
+
+ return $this;
+ }
+
+ /**
+ * Perform the actual data retrieval from the API
+ *
+ * @param boolean $return If true, returns data. This is left in for backward compatibility reasons
+ * @param array $curlOptions Additional Curl options for this request
+ *
+ * @throws \Exception
+ *
+ * @return string json If $return param is true, returns json data.
+ */
+ public function performRequest($return = true, $curlOptions = array())
+ {
+ if (!is_bool($return))
+ {
+ throw new Exception('performRequest parameter must be true or false');
+ }
+
+ $header = array($this->buildAuthorizationHeader($this->oauth), 'Expect:');
+
+ $getfield = $this->getGetfield();
+ $postfields = $this->getPostfields();
+
+ if (in_array(strtolower($this->requestMethod), array('put', 'delete')))
+ {
+ $curlOptions[CURLOPT_CUSTOMREQUEST] = $this->requestMethod;
+ }
+
+ $options = $curlOptions + array(
+ CURLOPT_HTTPHEADER => $header,
+ CURLOPT_HEADER => false,
+ CURLOPT_URL => $this->url,
+ CURLOPT_RETURNTRANSFER => true,
+ CURLOPT_TIMEOUT => 10,
+ );
+
+ if (!is_null($postfields))
+ {
+ $options[CURLOPT_POSTFIELDS] = http_build_query($postfields, '', '&');
+ }
+ else
+ {
+ if ($getfield !== '')
+ {
+ $options[CURLOPT_URL] .= $getfield;
+ }
+ }
+
+ $feed = curl_init();
+ curl_setopt_array($feed, $options);
+ $json = curl_exec($feed);
+
+ $this->httpStatusCode = curl_getinfo($feed, CURLINFO_HTTP_CODE);
+
+ if (($error = curl_error($feed)) !== '')
+ {
+ curl_close($feed);
+
+ throw new \Exception($error);
+ }
+
+ curl_close($feed);
+
+ return $json;
+ }
+
+ /**
+ * Private method to generate the base string used by cURL
+ *
+ * @param string $baseURI
+ * @param string $method
+ * @param array $params
+ *
+ * @return string Built base string
+ */
+ private function buildBaseString($baseURI, $method, $params)
+ {
+ $return = array();
+ ksort($params);
+
+ foreach($params as $key => $value)
+ {
+ $return[] = rawurlencode($key) . '=' . rawurlencode($value);
+ }
+
+ return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return));
+ }
+
+ /**
+ * Private method to generate authorization header used by cURL
+ *
+ * @param array $oauth Array of oauth data generated by buildOauth()
+ *
+ * @return string $return Header used by cURL for request
+ */
+ private function buildAuthorizationHeader(array $oauth)
+ {
+ $return = 'Authorization: OAuth ';
+ $values = array();
+
+ foreach($oauth as $key => $value)
+ {
+ if (in_array($key, array('oauth_consumer_key', 'oauth_nonce', 'oauth_signature',
+ 'oauth_signature_method', 'oauth_timestamp', 'oauth_token', 'oauth_version'))) {
+ $values[] = "$key=\"" . rawurlencode($value) . "\"";
+ }
+ }
+
+ $return .= implode(', ', $values);
+ return $return;
+ }
+
+ /**
+ * Helper method to perform our request
+ *
+ * @param string $url
+ * @param string $method
+ * @param string $data
+ * @param array $curlOptions
+ *
+ * @throws \Exception
+ *
+ * @return string The json response from the server
+ */
+ public function request($url, $method = 'get', $data = null, $curlOptions = array())
+ {
+ if (strtolower($method) === 'get')
+ {
+ $this->setGetfield($data);
+ }
+ else
+ {
+ $this->setPostfields($data);
+ }
+
+ return $this->buildOauth($url, $method)->performRequest(true, $curlOptions);
+ }
+
+ /**
+ * Get the HTTP status code for the previous request
+ *
+ * @return integer
+ */
+ public function getHttpStatusCode()
+ {
+ return $this->httpStatusCode;
+ }
+}
diff --git a/data_api/twitter-api-php-master/composer.json b/data_api/twitter-api-php-master/composer.json
new file mode 100755
index 0000000..2002abe
--- /dev/null
+++ b/data_api/twitter-api-php-master/composer.json
@@ -0,0 +1,32 @@
+{
+ "require": {
+ "ext-curl": "*"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.5,>=4.5.1"
+ },
+ "name": "j7mbo/twitter-api-php",
+ "description": "Simple PHP Wrapper for Twitter API v1.1 calls",
+ "type": "library",
+ "keywords": [
+ "twitter",
+ "PHP",
+ "API"
+ ],
+ "homepage": "https://github.com/j7mbo/twitter-api-php",
+ "license": "GNU Public License",
+ "authors": [
+ {
+ "name": "James Mallison",
+ "homepage": "https://github.com/j7mbo/twitter-api-php"
+ }
+ ],
+ "autoload": {
+ "classmap": ["TwitterAPIExchange.php"]
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ }
+}
diff --git a/data_api/twitter-api-php-master/index.php b/data_api/twitter-api-php-master/index.php
new file mode 100755
index 0000000..ab0f790
--- /dev/null
+++ b/data_api/twitter-api-php-master/index.php
@@ -0,0 +1,37 @@
+ "",
+ 'oauth_access_token_secret' => "",
+ 'consumer_key' => "",
+ 'consumer_secret' => ""
+);
+
+/** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
+$url = 'https://api.twitter.com/1.1/blocks/create.json';
+$requestMethod = 'POST';
+
+/** POST fields required by the URL above. See relevant docs as above **/
+$postfields = array(
+ 'screen_name' => 'usernameToBlock',
+ 'skip_status' => '1'
+);
+
+/** Perform a POST request and echo the response **/
+$twitter = new TwitterAPIExchange($settings);
+echo $twitter->buildOauth($url, $requestMethod)
+ ->setPostfields($postfields)
+ ->performRequest();
+
+/** Perform a GET request and echo the response **/
+/** Note: Set the GET field BEFORE calling buildOauth(); **/
+$url = 'https://api.twitter.com/1.1/followers/ids.json';
+$getfield = '?screen_name=J7mbo';
+$requestMethod = 'GET';
+$twitter = new TwitterAPIExchange($settings);
+echo $twitter->setGetfield($getfield)
+ ->buildOauth($url, $requestMethod)
+ ->performRequest();
diff --git a/data_api/twitter-api-php-master/phpunit.xml b/data_api/twitter-api-php-master/phpunit.xml
new file mode 100755
index 0000000..ee5a42b
--- /dev/null
+++ b/data_api/twitter-api-php-master/phpunit.xml
@@ -0,0 +1,18 @@
+
+
+
+
+ ./test/
+
+
+
\ No newline at end of file
diff --git a/data_api/twitter-api-php-master/test/TwitterAPIExchangeTest.php b/data_api/twitter-api-php-master/test/TwitterAPIExchangeTest.php
new file mode 100755
index 0000000..24121d6
--- /dev/null
+++ b/data_api/twitter-api-php-master/test/TwitterAPIExchangeTest.php
@@ -0,0 +1,338 @@
+getConstants() as $key => $value)
+ {
+ $settings[strtolower($key)] = $value;
+ }
+
+ $this->exchange = new \TwitterAPIExchange($settings);
+ }
+
+ /**
+ * GET statuses/mentions_timeline
+ *
+ * @see https://dev.twitter.com/rest/reference/get/statuses/mentions_timeline
+ */
+ public function testStatusesMentionsTimeline()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/mentions_timeline.json';
+ $method = 'GET';
+ $params = '?max_id=595150043381915648';
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = "@j7php Test mention";
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * GET statuses/user_timeline
+ *
+ * @see https://dev.twitter.com/rest/reference/get/statuses/user_timeline
+ */
+ public function testStatusesUserTimeline()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';
+ $method = 'GET';
+ $params = '?user_id=3232926711';
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = "Test Tweet";
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * GET statuses/home_timeline
+ *
+ * @see https://dev.twitter.com/rest/reference/get/statuses/home_timeline
+ */
+ public function testStatusesHomeTimeline()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/home_timeline.json';
+ $method = 'GET';
+ $params = '?user_id=3232926711&max_id=756123701888839681';
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = "Test Tweet";
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * GET statuses/retweets_of_me
+ *
+ * @see https://dev.twitter.com/rest/reference/get/statuses/retweets_of_me
+ */
+ public function testStatusesRetweetsOfMe()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/retweets_of_me.json';
+ $method = 'GET';
+
+ $data = $this->exchange->request($url, $method);
+ $expected = 'travis CI and tests';
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * GET statuses/retweets/:id
+ *
+ * @see https://api.twitter.com/1.1/statuses/retweets/:id.json
+ */
+ public function testStatusesRetweetsOfId()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/retweets/595155660494471168.json';
+ $method = 'GET';
+
+ $data = $this->exchange->request($url, $method);
+ $expected = 'travis CI and tests';
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * GET Statuses/Show/:id
+ *
+ * @see https://dev.twitter.com/rest/reference/get/statuses/show/:id
+ */
+ public function testStatusesShowId()
+ {
+ $url = 'https://api.twitter.com/1.1/statuses/show.json';
+ $method = 'GET';
+ $params = '?id=595155660494471168';
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = 'travis CI and tests';
+
+ $this->assertContains($expected, $data);
+ }
+
+ /**
+ * POST media/upload
+ *
+ * @see https://dev.twitter.com/rest/reference/post/media/upload
+ *
+ * @note Uploaded unattached media files will be available for attachment to a tweet for 60 minutes
+ */
+ public function testMediaUpload()
+ {
+ $file = file_get_contents(__DIR__ . '/img.png');
+ $data = base64_encode($file);
+
+ $url = 'https://upload.twitter.com/1.1/media/upload.json';
+ $method = 'POST';
+ $params = array(
+ 'media_data' => $data
+ );
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = 'image\/png';
+
+ $this->assertContains($expected, $data);
+
+ /** Store the media id for later **/
+ $data = @json_decode($data, true);
+
+ $this->assertArrayHasKey('media_id', is_array($data) ? $data : array());
+
+ self::$mediaId = $data['media_id'];
+ }
+
+ /**
+ * POST statuses/update
+ *
+ * @see https://dev.twitter.com/rest/reference/post/statuses/update
+ */
+ public function testStatusesUpdate()
+ {
+ if (!self::$mediaId)
+ {
+ $this->fail('Cannot /update status because /upload failed');
+ }
+
+ $url = 'https://api.twitter.com/1.1/statuses/update.json';
+ $method = 'POST';
+ $params = array(
+ 'status' => 'TEST TWEET TO BE DELETED' . rand(),
+ 'possibly_sensitive' => false,
+ 'media_ids' => self::$mediaId
+ );
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = 'TEST TWEET TO BE DELETED';
+
+ $this->assertContains($expected, $data);
+
+ /** Store the tweet id for testStatusesDestroy() **/
+ $data = @json_decode($data, true);
+
+ $this->assertArrayHasKey('id_str', is_array($data) ? $data : array());
+
+ self::$tweetId = $data['id_str'];
+
+ /** We've done this now, yay **/
+ self::$mediaId = null;
+ }
+
+ /**
+ * POST statuses/destroy/:id
+ *
+ * @see https://dev.twitter.com/rest/reference/post/statuses/destroy/:id
+ */
+ public function testStatusesDestroy()
+ {
+ if (!self::$tweetId)
+ {
+ $this->fail('Cannot /destroy status because /update failed');
+ }
+
+ $url = sprintf('https://api.twitter.com/1.1/statuses/destroy/%d.json', self::$tweetId);
+ $method = 'POST';
+ $params = array(
+ 'id' => self::$tweetId
+ );
+
+ $data = $this->exchange->request($url, $method, $params);
+ $expected = 'TEST TWEET TO BE DELETED';
+
+ $this->assertContains($expected, $data);
+
+ /** We've done this now, yay **/
+ self::$tweetId = null;
+ }
+
+ /**
+ * GET search/tweets
+ *
+ * @see https://dev.twitter.com/rest/reference/get/search/tweets
+ */
+ public function testCanSearchWithHashTag()
+ {
+ $url = 'https://api.twitter.com/1.1/search/tweets.json';
+ $method = 'GET';
+ $params = '?q=#twitter';
+
+ $data = $this->exchange->request($url, $method, $params);
+ $data = (array)@json_decode($data, true);
+
+ $this->assertNotCount(1, $data);
+ }
+
+ /**
+ * Test to check that options passed to curl do not cause any issues
+ */
+ public function testAdditionalCurlOptions()
+ {
+ $url = 'https://api.twitter.com/1.1/search/tweets.json';
+ $method = 'GET';
+ $params = '?q=#twitter';
+
+ $data = $this->exchange->request($url, $method, $params, array(CURLOPT_ENCODING => ''));
+ $data = (array)@json_decode($data, true);
+
+ $this->assertNotCount(1, $data);
+ }
+
+ /**
+ * Apparently users/lookup was not working with a POST
+ *
+ * @see https://github.com/J7mbo/twitter-api-php/issues/70
+ */
+ public function testIssue70()
+ {
+ $url = 'https://api.twitter.com/1.1/users/lookup.json';
+ $method = 'POST';
+ $params = array(
+ 'screen_name' => 'lifehacker'
+ );
+
+ $data = $this->exchange->request($url, $method, $params);
+ $this->assertContains('created_at', $data);
+ }
+
+ /**
+ * Thanks to Sharath at eywamedia for bringint this to my attention
+ */
+ public function testPut()
+ {
+ $url = 'https://ads-api.twitter.com/1/accounts/hkk5/campaigns/8zwv';
+ $method = 'PUT';
+ $params = array (
+ 'name' => 'Important',
+ 'paused' => true
+ );
+
+ $data = $this->exchange->request($url, $method, $params);
+
+ /** If we get this back, then it looks like we can support PUT! :-) **/
+ $this->assertContains('UNAUTHORIZED_CLIENT_APPLICATION', $data);
+ }
+
+ public function testDelete()
+ {
+ $params = array();
+
+ // foobaa is sandbox Ads account id
+ $url = 'https://ads-api-sandbox.twitter.com/1/accounts/foobaa';
+ $method = 'DELETE';
+
+ $data = $this->exchange->request($url, $method, $params);
+
+ $this->assertContains('UNAUTHORIZED_CLIENT_APPLICATION', $data);
+ }
+}
diff --git a/data_api/twitter-api-php-master/test/img.png b/data_api/twitter-api-php-master/test/img.png
new file mode 100755
index 0000000..85f8ce3
Binary files /dev/null and b/data_api/twitter-api-php-master/test/img.png differ
diff --git a/git/README.md b/git/README.md
index ff8955e..c7f0c9a 100644
--- a/git/README.md
+++ b/git/README.md
@@ -67,7 +67,7 @@ We will use [Github](http://github.com) in this session since it is most widely
# Git Process
This is the core part of the Git session: how to use the Git?
-### Prerequisite
+### Prerequisites
In order to use Git on your computer, you might need to install an app. After install the required app, every Git process is done either on the Github website or on your command-line app.
- If you're using **Mac**, it is possible that Git is already installed along with Xcode. Try to open "Terminal" app, and type `git` and hit "enter". If not installed, Mac will automatically open a window to install Git.
@@ -153,47 +153,8 @@ Type:
```
git push origin master
```
- By default, your branch is "master". Later, you can create other branches as needed.
-
-### Collaborating with your Colleague(s)
-For your own project, you normally use `commit` and `push` to manage your code, but not other commands that much. However, Git is often for collaboration with other colleagues. Let's do some exercises on collaborating with your friend.
-
-1. Peer up with a colleague on your next. On the browser, go to your friend's Git repo page by typing your friend's Git repo URL. For example, you may go to `https://github.com/UMD-DCIC/INST742-git`
-2. Click the "Folk" button at the top.
-3. Once you folk your friend's repo, you just copied your friend's precious project to your account.
-4. Go to your folked repo page (you can see it in your repo list on your main Git page).
-5. Go to the terminal, get out of your original repo folder. For example:
-
- ```
- cd ..
- ```
-6. Clone your folked repo to your computer. The steps are same to before, but just the address of the repo is different. If not sure, follow the steps in [Cloning a Git Repo](#clone).
-7. Get into the cloned repo folder. Remember, this is a repo "folked" from your friend's account.
-
- ```
- cd [name of the folked repo]
- ```
-8. In the folked folder, there is a file that your friend created. Let's create another file.
- - Open your text editor, create a new file, write something in it, and save it in the folked repo folder with your name (e.g., `[your_name].md`).
- - Add, commit, and push your change.
- - Once pushing your changes, your file is uploaded to your folked Git repo, not your friend's repo. But you want to give your changes to your friend.
-9. Go to the web page of your folked repo. There is a button called "New Pull Request". Click it.
-10. You will see "base fork" and "head fork" in the web page. "Base fork" is the original repo that you want to contribute to (in this case, your friend's repo). "Head fork" is your folked repo that you just made changes. You are basically trying to ask your friend to merge your changes.
-11. If you see the "Create Pull Request" button (in green), click it. Then, you can write down a message about your contribution. Once you make a pull-request, your friend will receive the request from his or her email or on the Github website. **Now, as a contributor, your work is done.**
-12. As an original project owner, you receive a pull request from your friend. In your original project repo page, you can see there is one pull request. Click "Pull requests" menu.
-13. You can see your friend's message. If you have any opinion, you can comment on it as well. This conversation can go on as a thread. Once you're satisfied with your friend's contribution, click the `Merge Pull Request` button. Don't click `Comment and Close` button unless you don't want to merge it. Subsequenlty, it is possible that you need to click `Confirm merge` to complete the merge.
-14. Once it says it was successfully merged, your project is finally contributed by your friend. As a contributor, you also made success in contributing to your friend's project.
-
-### Pulling Your Repo (Github → Your PC, whenever there're any changes on Github)
-Your Git repo has been contributed by your friend, but your computer still doesn't have your friend's contribution, because you accepted your friend's pull request online and never downloaded the new changes onto your computer. In this case, you need to "pull" the up-to-date changes.
+ By default, your branch is "master". Later, you can create other branches as needed.
-1. Go to your original repo folder on your computer (not the folked repo folder) using the `cd` command.
-2. Type this:
-
- ```
- git pull origin master
- ```
-3. Then, your friend's recent contribution will be downloaded to your computer.
### Branching
If you want to keep your code safe, and do some experiment with it at the same time, you can use "branching". In your repo, you can create a new branch by typing:
@@ -237,6 +198,75 @@ Then, both of your branches have up-to-date changes.
It is possible to see graphically how your branching has been processed on the website. Go to your project repo page, and click the "Graphs" menu. In there, click the "Network" button.
Then, it shows how branches were created and merged among each other.
+
+### Exercise: Folking and Contributing to the Original Code Base
+1. Go to this Git repo web page: `https://github.com/myeong/INST377`
+2. Click "Folk"
+3. Go to your folked repo. It should be something like `https://github.com/[your_id]/INST377`
+4. Clone it to your PC.
+5. Go to `git/introductions/` folder, and create a Markdown file with your last name. `[your_last_name].md`
+6. Open the file, write down any one sentence in the Markdown file, and save it.
+7. In the command line, `git add .`
+8. `git commit -m "my name added"`
+9. `git push origin master`
+10. On the Github repo page, click "pull request" button and submit your pull request.
+11. The instructor comments on the pull requests and merges them.
+12. Now, your change has been applied to the original project repository.
+13. Check the registered Git addresses by typing `git remote -v`
+14. You want to pull the most recent changes to your local computer. In order to do that, your PC needs to know the address of the original repo.
+Type `git remote add upstream https://github.com/myeong/INST377.git`
+15. Check again whether the original repo has been registered.
+ - `git remote -v`
+16. The original repo that you are contributing to is now registered on your local folder.
+17. You pull down the most recent changes on your computer by typing
+ - `git fetch upstream`
+18. You merge "upstream" to your local repo.
+ - `git merge upstream/master`
+19. You push the most recent changes to your online repo
+ - `git push origin master`
+
+
+### Collaborating with your Colleague(s)
+For your own project, you normally use `commit` and `push` to manage your code, and you many not use other commands that much. However, Git is often used for collaboration with other colleagues. Let's do some exercises on collaborating with your friend.
+
+1. Pair up with a colleague next to you. On the browser, go to your friend's Git repo page by typing your friend's Git repo URL. For example, you may go to `https://github.com/myeong/INST377`
+2. Click the "Folk" button at the top.
+3. Once you folk your friend's repo, you just copied your friend's precious project to your account.
+4. Go to your folked repo page (you can see it in your repo list on your main Git page).
+5. Go to the terminal, get out of your original repo folder. For example:
+
+ ```
+ cd ..
+ ```
+6. Clone your folked repo to your computer. The steps are same to before, but just the address of the repo is different. If not sure, follow the steps in [Cloning a Git Repo](#clone).
+7. Get into the cloned repo folder. Remember, this is a repo "folked" from your friend's account.
+
+ ```
+ cd [name of the folked repo]
+ ```
+8. In the folked folder, there is a file that your friend created. Let's create another file.
+ - Open your text editor, create a new file, write something in it, and save it in the folked repo folder with your name (e.g., `[your_name].md`).
+ - Add, commit, and push your change.
+ - Once pushing your changes, your file is uploaded to your folked Git repo, not your friend's repo. But you want to give your changes to your friend.
+9. Go to the web page of your folked repo. There is a button called "New Pull Request". Click it.
+10. You will see "base fork" and "head fork" in the web page. "Base fork" is the original repo that you want to contribute to (in this case, your friend's repo). "Head fork" is your folked repo that you just made changes. You are basically trying to ask your friend to merge your changes.
+11. If you see the "Create Pull Request" button (in green), click it. Then, you can write down a message about your contribution. Once you make a pull-request, your friend will receive the request from his or her email or on the Github website. **Now, as a contributor, your work is done.**
+12. As an original project owner, you receive a pull request from your friend. In your original project repo page, you can see there is one pull request. Click "Pull requests" menu.
+13. You can see your friend's message. If you have any opinion, you can comment on it as well. This conversation can go on as a thread. Once you're satisfied with your friend's contribution, click the `Merge Pull Request` button. Don't click `Comment and Close` button unless you don't want to merge it. Subsequenlty, it is possible that you need to click `Confirm merge` to complete the merge.
+14. Once it says it was successfully merged, your project is finally contributed by your friend. As a contributor, you also made success in contributing to your friend's project.
+
+### Pulling Your Repo (Github → Your PC, whenever there're any changes on Github)
+Your Git repo has been contributed by your friend, but your computer still doesn't have your friend's contribution, because you accepted your friend's pull request online and never downloaded the new changes onto your computer. In this case, you need to "pull" the up-to-date changes.
+
+1. Go to your original repo folder on your computer (not the folked repo folder) using the `cd` command.
+2. Type this:
+
+ ```
+ git pull origin master
+ ```
+3. Then, your friend's recent contribution will be downloaded to your computer.
+
+
# Advanced Topics
We just covered very basic functionalities of Git. If your time allows, it's also very useful to know some more advanced features and topics that you can do using Github. Advanced topics include, but are not limited to:
@@ -247,7 +277,7 @@ We just covered very basic functionalities of Git. If your time allows, it's als
- [How to make a Git profile](https://help.github.com/articles/about-your-profile/): Your dedicated profile page about your technical work. One of strong portfolios on your resúme.
- [How to revert back to a previous state](https://github.com/blog/2019-how-to-undo-almost-anything-with-git): When you want to get back to a previous commit after making a mistake.
-#Resources
+# Resources
- [Markdown Editor for Mac: MacDown](https://macdown.uranusjr.com/)
- [Markdown Editor for Windows: MarkdownPad](http://markdownpad.com/)
- [Git Tutorial Video](https://www.youtube.com/watch?v=HVsySz-h9r4)
diff --git a/git/introductions/Cheakalos.md b/git/introductions/Cheakalos.md
new file mode 100644
index 0000000..ffa60b2
--- /dev/null
+++ b/git/introductions/Cheakalos.md
@@ -0,0 +1,3 @@
+MY name is paul
+InfoSci
+
diff --git a/git/introductions/Geleg.md b/git/introductions/Geleg.md
new file mode 100644
index 0000000..bcfebc0
--- /dev/null
+++ b/git/introductions/Geleg.md
@@ -0,0 +1,2 @@
+Geleg Test Touch-Vi-I to Insert.
+
diff --git a/git/introductions/Oni.md b/git/introductions/Oni.md
new file mode 100644
index 0000000..38d2ec8
--- /dev/null
+++ b/git/introductions/Oni.md
@@ -0,0 +1 @@
+I love web dev
\ No newline at end of file
diff --git a/git/introductions/README.md b/git/introductions/README.md
new file mode 100644
index 0000000..bb229ae
--- /dev/null
+++ b/git/introductions/README.md
@@ -0,0 +1,2 @@
+Create your file in this folder
+========
diff --git a/git/introductions/abbott.md b/git/introductions/abbott.md
new file mode 100644
index 0000000..3b0bf90
--- /dev/null
+++ b/git/introductions/abbott.md
@@ -0,0 +1,2 @@
+TEST TEST TEST
+
diff --git a/git/introductions/ankrah.md b/git/introductions/ankrah.md
new file mode 100644
index 0000000..0a4cbd9
--- /dev/null
+++ b/git/introductions/ankrah.md
@@ -0,0 +1,2 @@
+ Alexis ANkrah readme file.
+Welcome
diff --git a/git/introductions/benites.md b/git/introductions/benites.md
new file mode 100644
index 0000000..322ba8f
--- /dev/null
+++ b/git/introductions/benites.md
@@ -0,0 +1 @@
+hello, my name is pierre
\ No newline at end of file
diff --git a/git/introductions/bolivar.md b/git/introductions/bolivar.md
new file mode 100644
index 0000000..73d4caf
--- /dev/null
+++ b/git/introductions/bolivar.md
@@ -0,0 +1,2 @@
+Nikoli Bolivar's ReadME file.
+Welcome.
diff --git a/git/introductions/bool.md b/git/introductions/bool.md
new file mode 100644
index 0000000..42be4c5
--- /dev/null
+++ b/git/introductions/bool.md
@@ -0,0 +1,2 @@
+Richard Bool's Readme file.
+Welcome.
diff --git a/git/introductions/chen.md b/git/introductions/chen.md
new file mode 100644
index 0000000..0e249de
--- /dev/null
+++ b/git/introductions/chen.md
@@ -0,0 +1 @@
+yoo
\ No newline at end of file
diff --git a/git/introductions/coulibaly.md b/git/introductions/coulibaly.md
new file mode 100644
index 0000000..019a526
--- /dev/null
+++ b/git/introductions/coulibaly.md
@@ -0,0 +1 @@
+Hello this is my md file.
diff --git a/git/introductions/dhakal.md b/git/introductions/dhakal.md
new file mode 100644
index 0000000..4afb3ef
--- /dev/null
+++ b/git/introductions/dhakal.md
@@ -0,0 +1,3 @@
+Hey! My name is Aseem Dhakal.
+This is in the introduction folder.
+These are some description for the classwork.
diff --git a/git/introductions/hong.md b/git/introductions/hong.md
new file mode 100644
index 0000000..cf02b02
--- /dev/null
+++ b/git/introductions/hong.md
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+Hello, this is my temp fil
+
diff --git a/git/introductions/hu.md b/git/introductions/hu.md
new file mode 100644
index 0000000..e5a2b45
--- /dev/null
+++ b/git/introductions/hu.md
@@ -0,0 +1 @@
+Hi my name is Martin
diff --git a/git/introductions/hunt.md b/git/introductions/hunt.md
new file mode 100644
index 0000000..e96be46
--- /dev/null
+++ b/git/introductions/hunt.md
@@ -0,0 +1,3 @@
+Chelsea Readme file.
+sup.
+
diff --git a/git/introductions/jiroun.md b/git/introductions/jiroun.md
new file mode 100644
index 0000000..c493def
--- /dev/null
+++ b/git/introductions/jiroun.md
@@ -0,0 +1,2 @@
+Adam Jiroun's Readme File.
+Welcome.
diff --git a/git/introductions/kim.md b/git/introductions/kim.md
new file mode 100644
index 0000000..5bb32b7
--- /dev/null
+++ b/git/introductions/kim.md
@@ -0,0 +1 @@
+This is the test file for INST377.
diff --git a/git/introductions/lee.md b/git/introductions/lee.md
new file mode 100644
index 0000000..ab4df8b
--- /dev/null
+++ b/git/introductions/lee.md
@@ -0,0 +1,2 @@
+Myeong Lee's Readme file.
+Welcome.
diff --git a/git/introductions/padget.md b/git/introductions/padget.md
new file mode 100644
index 0000000..0527e6b
--- /dev/null
+++ b/git/introductions/padget.md
@@ -0,0 +1 @@
+This is a test
diff --git a/git/introductions/santos.md b/git/introductions/santos.md
new file mode 100644
index 0000000..11cc0ca
--- /dev/null
+++ b/git/introductions/santos.md
@@ -0,0 +1 @@
+it me, jan santos
diff --git a/git/introductions/wan.md b/git/introductions/wan.md
new file mode 100644
index 0000000..d277ea8
--- /dev/null
+++ b/git/introductions/wan.md
@@ -0,0 +1 @@
+This is Kevin's Readme
diff --git a/git/introductions/your_last_name.md b/git/introductions/your_last_name.md
new file mode 100644
index 0000000..e69de29
diff --git a/javascript/README.md b/javascript/README.md
new file mode 100644
index 0000000..ecd70a3
--- /dev/null
+++ b/javascript/README.md
@@ -0,0 +1,3 @@
+This folder provides exercise materials for JavaScript sessions
+======
+
diff --git a/javascript/ajax.html b/javascript/ajax.html
new file mode 100644
index 0000000..259db40
--- /dev/null
+++ b/javascript/ajax.html
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
Hello, this is inside a PPPPP tag.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/ajax_answer.html b/javascript/ajax_answer.html
new file mode 100644
index 0000000..dbfc2a4
--- /dev/null
+++ b/javascript/ajax_answer.html
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
Hello, this is inside a PPPPP tag.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/ajax_test2.txt b/javascript/ajax_test2.txt
new file mode 100644
index 0000000..000d7d3
--- /dev/null
+++ b/javascript/ajax_test2.txt
@@ -0,0 +1 @@
+This is for AJAX Test 2...
\ No newline at end of file
diff --git a/javascript/attribute.html b/javascript/attribute.html
new file mode 100644
index 0000000..d6ecc65
--- /dev/null
+++ b/javascript/attribute.html
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
Hello, this is inside a PPPPP tag.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/dom.html b/javascript/dom.html
new file mode 100644
index 0000000..278d12f
--- /dev/null
+++ b/javascript/dom.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
diff --git a/javascript/event.html b/javascript/event.html
new file mode 100644
index 0000000..1fd12da
--- /dev/null
+++ b/javascript/event.html
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
Hello, this is inside a PPPPP tag.
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/ex.html b/javascript/ex.html
new file mode 100644
index 0000000..7516d92
--- /dev/null
+++ b/javascript/ex.html
@@ -0,0 +1,18 @@
+
+
+
+