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
/* | |
Timing and asynchronus events | |
http://javascript.info/tutorial/events-and-timing-depth | |
PubSubJS | |
https://github.com/mroderick/PubSubJS | |
http://jsperf.com/pubsubjs-vs-jquery-custom-events/6 | |
http://maxpert.tumblr.com/post/2658433646/puny-standalone-javascript-custom-pubsub-events-library | |
http://higginsforpresident.net/js/static/jq.pubsub.js |
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> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Card test - 10K Hearts</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<style> |
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
/*jslint browser: true, indent: 4 */ | |
/* | |
* Normalized hide address bar for iOS & Android | |
* (c) Scott Jehl, scottjehl.com | |
* MIT License | |
*/ | |
(function (win) { | |
'use strict'; | |
var doc = win.document, | |
scrollTop = 1, |
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> | |
<html> | |
<head> | |
<title>Dictation with HTML5 - Using Speech, Blobs, Drag & Drop APIs</title> | |
</head> | |
<body> | |
<input id="dictate" type="text" speech x-webkit-speech /> | |
<textarea id="post"></textarea> | |
<a href="#" id="dragout" draggable="true">Save Text file (drag to desktop)</a> | |
<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 Dealer = function (decks, suits, cards) { | |
var pack = [], // cards yet to be dealt (stock/shoe) | |
played = 0, // cards already dealt, | |
suitsLen, | |
cardsLen, | |
i, | |
j, | |
// Fisher-Yates shuffle - http://jsfromhell.com/array/shuffle |