Instantly share code, notes, and snippets.

View Debouncer.swift
import Foundation
class Debouncer {
/**
Create a new Debouncer instance with the provided time interval.
- parameter timeInterval: The time interval of the debounce window.
*/
init(timeInterval: TimeInterval) {
View .gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Application</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.js"></script>
<script data-main="start.js" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.4/require.js"></script>
<!--script src="app.js"></script-->
View app.js
window.App = Ember.Application.create();
App.Router.map(function(){
this.resource("users");
});
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Application</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script type="text/javascript" src="http://runtriz-cdn.s3.amazonaws.com/ember-1.0.0-rc.1-84-gb46ff48.js"></script>
<script data-main="start.js" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.4/require.js"></script>
<!--script src="app.js"></script-->