Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Download all VMWare Fusion machines from Modern.IE Website to test your Website/Web Application in Microsoft Internet Explorer on Mac OSX. All VM's and other VM's for Windows and Linux and other Virtual Manager's such as VirtualBox can be found at http://modern.ie/
# Don't have cURL or want to learn more, visit http://curl.haxx.se/.. are you really a Developer? First part of that sentence comes from the MS site.
read -p "--> Downloading Internet Explorer 6-10 on Windows XP/7/8 Appliances for VMWare Fusion. Large downloads ahead. (Press Enter to continue)."
echo "--> Download Internet Explorer 6 on Microsoft Windows XP Appliance for VMWare Fusion."
curl --progress-bar -O "http://virtualization.modern.ie/vhd/IEKitV1_Final/VMWare_Fusion/IE6_XP/IE6.XP.For.MacVMware.sfx"
echo "--> Download Internet Explorer 8 on Microsoft Windows XP Appliance for VMWare Fusion."

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@tvpmb
tvpmb / watchResize.js
Created November 28, 2012 06:30 — forked from aarongustafson/watchResize.js
Efficient callback management for window.onresize
(function(window){
window.watchResize = function(callback)
{
var resizing;
callback.size = 0;
function done()
{
var curr_size = window.innerWidth;
clearTimeout( resizing );
resizing = null;
@tvpmb
tvpmb / nginx_cors_s3_upload_proxy_full
Created October 4, 2012 23:39 — forked from zefer/nginx_cors_s3_upload_proxy_full
My nginx config to allow CORS (cross-site) uploads to Amazon S3, with added config e.g. timeouts & security
# DO NOT RESPOND TO REQUESTS OTHER THAN yourdomain.com
server {
listen 80 default;
server_name _;
return 444;
}
# FILE UPLOADS
server {
listen 80;
@tvpmb
tvpmb / gist:3723738
Created September 14, 2012 18:25 — forked from ebidel/gist:3723309
Spotlight bookmarklet
// Save this in a bookmarklet and click it on a page:
javascript:(function(){function d(a,c){document.body.style.webkitClipPath="circle("+a+"px, "+c+"px, "+b+"px)"}var b=90;window.addEventListener("mousemove",function(a){d(a.pageX,a.pageY)});window.addEventListener("mousewheel",function(a){if(a.shiftKey){a.preventDefault();var c=a.wheelDeltaY;b+=-c;b=0<c?Math.max(90,b):Math.min(b,window.innerHeight/2);d(a.pageX,a.pageY)}})})();
// Or paste this in the console and mouse over the page.
// SHIFT+mousewheel scroll makes the circle bigger/smaller.
(function() {
var radius = 90; // px
@tvpmb
tvpmb / original.js
Created September 13, 2012 01:31 — forked from rmurphey/original.js
DRYing out code using a function
function updateDates() {
var startDate = $("#start-date").datepicker("getDate");
$("#menu-item-1 .day").text(startDate.getDate());
$("#menu-item-1 .month").text(Util.monthToText(startDate.getMonth()));
$("#menu-item-1 .year").text(startDate.getFullYear());
var endDate = $("#end-date").datepicker("getDate");
$("#menu-item-2 .day").text(endDate.getDate());
@tvpmb
tvpmb / uri.js
Created September 5, 2012 23:36 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@tvpmb
tvpmb / jquery-unit.conf
Created June 28, 2012 21:11 — forked from tbranyen/jquery-unit.conf
nginx configuration for running jquery unit tests
#
# jQuery Unit Test Configuration File.
# Copyright 2012, Tim Branyen (@tbranyen)
# This configuration file may be freely distributed under the MIT license.
#
# Include this file (named jquery.conf) alongside the jquery folder and run
# with root privileges:
#
# sudo nginx -c /absolute/path/to/jquery.conf
#