SWBAT:
- Use Angualar's built in services in controllers
- Create a custom service using the
.factory
method
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Pick-A-Student</title> | |
<style> | |
html, body { | |
font-family: helvetica; | |
font-weight: lighter; | |
font-size: 20px; |
var five = require("johnny-five"); | |
var Tessel = require("tessel-io"); | |
var tessel = require('tessel'); | |
var board = new five.Board({ | |
io: new Tessel() | |
}); | |
var pin = tessel.port.B.pin[2]; | |
var startTime = new Date().getTime() | |
var high = true |
#!/bin/bash | |
# Install a bunch of programs that I want on every chroot | |
sudo apt-get update | |
sudo apt-get install git -y | |
git config --global user.email "kedarmail@gmail.com" | |
git config --global user.name "Kedar Iyer" | |
git config --global push.default simple | |
sudo apt-get install vim -y | |
sudo apt-get install python3-pip -y |
model = Sequential() | |
# Output = 55 x 55 | |
model.add(Lambda(lambda x: x / 255 - 0.5, input_shape=(227, 227, 3))) | |
model.add(Convolution2D(48, 11, 11, subsample=(4,4))) | |
model.add(Activation('relu')) | |
# Output = 27 x 27 | |
model.add(MaxPooling2D((3,3), strides=(2,2))) | |
model.add(Convolution2D(128, 5, 5, border_mode='same')) |
0x2fbd98e03bd62996b68cc90dd874c570a1f94dcc |