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
'use strict' | |
console.log "I'm the client code" | |
# A global reference, because coffeescript wraps everything in a closure | |
root = global ? window | |
root.Meteor.subscribe 'messages' | |
root.Meteor.subscribe 'rooms' | |
# root.Meteor.startup -> |
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
$('form').submit(function(event){ | |
event.preventDefault(); | |
event.stopPropogation(); // same thing | |
$(this); // <-- the form that was submitted | |
$('input', this); // <-- all the inputs for this form that need validation | |
$('input', this).each(function(){ | |
var element = $(this); // <-- this is the current field which can be validated | |
if(element.attr('required') == 'required' && element.val().trim() != '' && element.val() ){ |
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
iframe { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
overflow: hidden; | |
} | |
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> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body bgcolor="#eeeeff" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | |
<div style="float:left;position:relative; border:10px solid royalblue; width:820px; height:1100px;"> | |
<!-- show 1 iframe and box out the other --> |
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> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
<style> | |
body { | |
margin:0; | |
padding:0; | |
background-color:#ff99ff; | |
} |
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> | |
<meta charset="utf-8"> | |
<head> | |
<link href="test-styles.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body bgcolor="#FFFF99" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> | |
<div style="position:relative; border:10px solid #228b22; width:820px; height:250px;"> | |
<!-- first frame is positioned where it will be in view by the container iframe in the parent document --> |
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 open = require('open'); | |
var url = require('url'); | |
var http = require('http'); | |
var twitterAPI = require('node-twitter-api'); | |
var Q = require('q'); | |
var authObject = (function () { | |
var deferred = Q.defer(); | |
var twitter = {}; | |
var token = {}; |
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
// see if this is a mobile browser | |
var w = window, d = document; | |
var regex = /mobi|android|webos|blackberry|ipad|ipod|iphone|tablet|phone|kindle/i; | |
r.mobile = regex.test(ua) || regex.test(w.navigator.platform); | |
if (r.mobile) { | |
if (w.chrome || w.performance) { // this is an android device posing as an iPhone | |
if (w.Worker) { // android 4.4+ |
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
package FPSUtils { | |
import flash.display.DisplayObject; | |
import flash.display.MovieClip; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; | |
import flash.external.ExternalInterface; | |
import flash.utils.clearInterval; | |
import flash.utils.getTimer; |
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
'use strict'; | |
// ****** BEGIN SOLUTION TIMER ******* // | |
module.exports = (function () { | |
// all times will be measured in seconds by default | |
return function (_arrayOfTimes, _scriptTimeLimit, _timerCallback, _timeLimitCallback, _useMilliseconds) { // _useSeconds - add this later to add the ability to measure in milliseconds | |
var _startTime = 0, // the time this script started | |
_initialPlayTime = 0, // the time the playhead initially started |