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
/* | |
This gist is intended to be included in controllers and provides an easy way to ensure data is applied | |
The function: func will be executed within an existing digest $$phase or call $scope.$apply and invoke one | |
*/ | |
var apply = function(func, callback) { | |
if(!$scope.$$phase) { | |
$scope.$apply(function() { | |
func(); | |
if (callback) callback(); |
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
THREE.NoBlending = 0; | |
THREE.NormalBlending = 1; | |
THREE.AdditiveBlending = 2; | |
THREE.SubtractiveBlending = 3; | |
THREE.MultiplyBlending = 4; | |
THREE.CustomBlending = 5; | |
How to change it: | |
var material = new THREE.BasicMaterial({ |
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 el = this.el; | |
el.style.display = 'none'; | |
el.offsetHeight; | |
el.style.display = 'block'; |
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: |
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
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
<!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
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
//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%'; |
OlderNewer