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
/************************************** | |
* File Put | |
**************************************/ | |
const uuidV1 = require('uuid/v1'); | |
const multer = require('multer'); | |
const upload = multer({ storage: multer.memoryStorage(), limits: { fileSize: 10*1024*1024 } }); //10mb limit | |
const fileUpload = (req, res) => { | |
//get args | |
const { id } = req.body; | |
const file = req.file; |
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
const STORE = { | |
head: new Map(), | |
undoStack: [], | |
redoStack: [], | |
//implement undo | |
undo: () => { | |
if (STORE.undoStack.length === 1) return STORE.head; | |
const action = STORE.undoStack.pop(); | |
STORE.head = STORE.undoStack[STORE.undoStack.length - 1]; | |
STORE.redoStack.push(action); |
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
//with store | |
const STORE = { | |
head: new Map(), | |
undo: () => { | |
const action = STORE.queue.pop(); | |
STORE.head = STORE.queue[STORE.queue.length - 1]; | |
return action; | |
}, | |
queue: [] | |
}; |
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
//mobile console | |
(function() { | |
var el = document.createElement('div'), | |
s = el.style; | |
//s.display = 'none'; //enable for production | |
s.position = 'fixed'; | |
s.bottom = '0px'; | |
s.left = '0px'; | |
s.background = 'white'; | |
s.width = '100%'; |
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
var APP = angular.module('APP', []); | |
APP.controller('gameController', function($scope) { | |
$scope.gameReady = false; | |
$scope.chatInput = ''; | |
var wins = [ |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Google Drive Realtime quickstart</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=9"> | |
<!-- Load the Realtime libraries. --> | |
<script type="text/javascript" | |
src="https://apis.google.com/js/api.js"></script> |
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
how can i tell my layout to change? CSS Media query | |
designing for device screen sizes | |
navigation bars and placement | |
app guidelines vs os | |
content layout vs. navigation ui layout (guidelines not necc. equal) |
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
var OBJ = { | |
create:function(obj) { | |
return (function() { | |
var priv = {}; | |
var pub = { | |
__proto__:obj ? obj.__proto__ : {}, | |
setPriv:function(name, value) { | |
priv[name] = value; | |
}, | |
getPriv:function(name) { |
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
IAT 381 Lab Outline | |
Learning Outcomes: | |
ability to implement a mobile application using fundamental web technologies and leading industry frameworks, tools and best practices | |
develop skills in reading documentation and apis to implement unique application features using frameworks, libraries and web services | |
practice generalization in programming and problem solving | |
Delivery Format: |