This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="https://unpkg.com/h264-mp4-encoder/embuild/dist/h264-mp4-encoder.web.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script> | |
<style> | |
html { font-family: sans-serif; font-size: 12px; } |
This file contains hidden or 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
<head> | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/g/reveal.js(css/reveal.min.css)"> | |
<script src="//cdn.jsdelivr.net/g/reveal.js,zepto"></script> | |
</head> | |
<body> | |
<div class="reveal"> | |
<div class="slides"> | |
<section data-markdown data-separator-vertical="^===" data-separator="^---"> | |
<script type="text/template" id="md"></script> |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 14 columns, instead of 10 in line 5.
This file contains hidden or 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
Name,"Street Address",City,State,"Zip code",Phone,Website,Rating,Reviews,"Merchant Verified","Zagat Score",Lat,Lon,"Listing URL" | |
"Cesare Bistro","1126 Malvern Rd, Malvern VIC 3144, Australia",,Victoria,3144,"+61 3 9824 8126",,,,,,-37.8518021,145.0305495,https://maps.google.com/?cid=331980050335729601 | |
"The Feed Bag Cafe","1129 Malvern Rd, Malvern VIC 3144, Australia",,Victoria,3144,"+61 3 9822 2147",,,2,,,-37.8515806,145.0303308,https://maps.google.com/?cid=9348602243163246040 | |
"Ionsky's Bakehouse Cafe","1125 Malvern Rd, Malvern VIC 3144, Australia",,Victoria,3144,"+61 3 9822 1618",,,4,,,-37.851526,145.030218,https://maps.google.com/?cid=2678506672615980113 | |
"Coles Express Glenvern","Malvern Rd, Malvern VIC 3144, Australia",,Victoria,3144,"+61 3 9822 1481",http://www.colesexpress.com.au/,,1,,,-37.851869,145.02967,https://maps.google.com/?cid=11935115476390218234 | |
"The Malvern Hotel","Malvern Rd & Glenferrie Rd, Toorak VIC 3144, Australia",,Victoria,3144,"+61 3 9822 3582",http://www.themalvern.com/contact,,3, |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func main() { | |
http.HandleFunc("/", |
This file contains hidden or 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
<h1>Alert</h1> | |
<p>Bootstrap JS</p> | |
<div class="alert fade in"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. | |
</div> | |
<p></p><a ng-click="alert=true">Open Alert (AngularJS)</a></p> | |
<div class="alert fade" ng-class="{in:alert}"> | |
<button type="button" class="close" ng-click="alert=false">×</button> |
This file contains hidden or 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
// Live video stream management for HTML5 video. Uses FFMPEG to connect to H.264 camera stream, | |
// Camera stream is remuxed to a MP4 stream for HTML5 video compatibility and segments are recorded for later playback | |
var liveStream = function (req, resp) { // handle each client request by instantiating a new FFMPEG instance | |
// For live streaming, create a fragmented MP4 file with empty moov (no seeking possible). | |
var reqUrl = url.parse(req.url, true) | |
var cameraName = typeof reqUrl.pathname === "string" ? reqUrl.pathname.substring(1) : undefined; | |
if (cameraName) { | |
try { | |
cameraName = decodeURIComponent(cameraName); |