Speaker: @stuartrunyan
Venue: San Diego JS
Date: Decemeber 2nd
- Clean Room
- Determining If You Have a Memory Leak
# @see http://getgrav.org/blog/mac-os-x-apache-setup-multiple-php-versions | |
# Symlinked /etc/apache2/httpd.conf to this repo httpd.conf | |
# sphp cli to switch PHP versions maintained by brew | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> |
// ./Gruntfile.js | |
module.exports = function(grunt) { | |
grunt.loadTasks('hoge'); | |
}; |
jQuery(document).ready(function ($) { | |
/* <a> TAG TRACKER | |
* @Version: 0.0.2 | |
* @Author: Stuart Runyan | |
* @Documentation: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html | |
* @trackList: Add all domains that you want to track as "internal". | |
* Allow regular expressions | |
* It is not neccessary to include the domain this code resides on. | |
* If the active domain is include in the list there are checks to insure | |
* we don't double track. |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
function eachAsync(collection, iterator, callback) { | |
var iterate = function(i) { | |
setTimeout(function() { | |
iterator(collection[i]); | |
if (i < collection.length) { | |
iterate(i + 1); | |
} else { | |
callback(); | |
} | |
}, 0); |
import threading | |
def worker(num): | |
"""thread worker function""" | |
print 'Worker: %s' % num | |
return | |
threads = [] | |
for i in range(5): | |
t = threading.Thread(target=worker, args=(i,)) |
/** | |
* v0.1 - removing anchor tag DOM insertion; not neccessary for loop test. | |
*/ | |
console.time('Multi-variable:'); | |
for (var i = 0, k = 100000; i < k; i++) { | |
var a = document.createElement('A'); | |
a.href = 'http://www.google.com'; | |
a.innerHTML = 'Link'; | |
}; |
/** | |
* Returns an Array of all url parameters | |
* @return {[Array]} [Key Value pairs form URL] | |
*/ | |
function getAllUrlParams() { | |
var keyPairs = [], | |
params = window.location.search.substring(1).split('&'); | |
for (var i = params.length - 1; i >= 0; i--) { | |
keyPairs.push(params[i].split('=')); | |
}; |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Loading Bar Test</title> | |
<style> | |
/** | |
* Animations | |
* |