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
# example uses shared folder /media/sf_vm/www, change for your needs | |
sudo usermod -a -G vboxsf www-data | |
sudo usermod -a -G vboxsf <user name> | |
cd /etc/apache2/sites-available | |
sudo cp 000-default.conf weblab.conf | |
sudo nano weblab.conf | |
// Change DocumentRoot to point at your shared mount `www` directory /media/sf_vm/www | |
// cntrl-x then 'Y' to save changes |
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
<html> | |
<head> | |
<style> | |
body { | |
padding: 0; | |
margin: 0; | |
} |
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 all_games = | |
[ [ [ 'X', 'X', 'X' ], | |
[ 'X', 'O', 'O' ], | |
[ 'X', 'O', 'O' ] ], | |
[ [ 'X', 'X', 'X' ], | |
[ 'X', 'O', 'O' ], | |
[ 'O', 'X', 'O' ] ], |
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 num; | |
var guesses = 0; | |
function newGame(min, max) { | |
num = getRandomInt(min, max); | |
guesses = 0; | |
} | |
function guess(myGuess){ | |
guesses++; |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #ccc; | |
} | |
#container { |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #ccc; | |
} | |
.tab-wrapper { | |
width: 50%; |
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> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>Racecar</title> | |
<link rel="stylesheet" href="racecar.css"/> | |
</head> | |
<body> | |
<div class="container"> |
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> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 4000px; | |
} | |
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
$(function(){ | |
var table = $('#users'); | |
var tbody = table.find('tbody'); | |
var nameField = $('#name'); | |
var emailField = $('#email'); | |
var addButton = $('#add'); | |
var clearAll = $('#clearAll'); |
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 tessel = require('tessel') | |
, fs = require('fs') | |
, ambient = require('ambient-attx4').use(tessel.port['A']) | |
, audio = require('audio-vs1053b').use(tessel.port['D']); | |
var audioFile = fs.readFileSync('sample.mp3') // load mp3 into memory (small 29kb - 2.5 secs) | |
, timeout = 1000 * 60 // how long to wait after trigger and actions have happened. | |
, threshold = .2 // ambient noise trigger | |
, queue = 2; // number of modules to wait for |
OlderNewer