Skip to content

Instantly share code, notes, and snippets.

View pwfisher's full-sized avatar

Patrick Fisher pwfisher

View GitHub Profile
@pwfisher
pwfisher / jsbin.soxawi.css
Last active September 30, 2015 22:31 — forked from rwjblue/jsbin.oxasil.css
JSBin for Ember.js test setup with QUnit (http://jsbin.com/soxawi/edit)
#ember-testing-container {
position: absolute;
background: white;
bottom: 0;
right: 0;
width: 640px;
height: 384px;
overflow: auto;
z-index: 9999;
border: 1px solid #ccc;
@pwfisher
pwfisher / radio-button-component.js
Last active August 29, 2015 14:07 — forked from courajs/helpers-radio-button.js
radio-button-component.js
// {{ radio-button name='dish' value='spam' groupValue=selectedDish }} Spam
// {{ radio-button name='dish' value='eggs' groupValue=selectedDish }} Eggs
//
App.RadioButtonComponent = Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: [ 'checked', 'name', 'type', 'value' ],
checked: function () {
Ember.Handlebars.helper 'or', (args...) ->
return arg for arg in args when !!arg
@pwfisher
pwfisher / jquery.nodoubletapzoom.js
Created July 27, 2012 08:39 — forked from johan/jquery.nodoubletapzoom.js
A jQuery plugin to selectively disable the iOS double-tap-to-zoom action on specific page elements (and have that generate two click events instead).
// jQuery no-double-tap-zoom plugin
// Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy!
(function($) {
var IS_IOS = /iphone|ipad/i.test(navigator.userAgent);
$.fn.nodoubletapzoom = function() {
if (IS_IOS)
$(this).bind('touchstart', function preventZoom(e) {
var now = (new Date().getTime()),