Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

diff --git a/source/MultiGrid/MultiGrid.jest.js b/source/MultiGrid/MultiGrid.jest.js
index 501c6cd..e751c79 100644
--- a/source/MultiGrid/MultiGrid.jest.js
+++ b/source/MultiGrid/MultiGrid.jest.js
@@ -248,13 +248,13 @@ describe('MultiGrid', () => {
expect(bottomLeftAfter.style.getPropertyValue('width')).toEqual('75px');
expect(bottomRightAfter.style.getPropertyValue('width')).toEqual('325px');
});
-
+

Keybase proof

I hereby claim:

  • I am petersendidit on github.
  • I am petersendidit (https://keybase.io/petersendidit) on keybase.
  • I have a public key ASDuIiR-5yICEOo8-VyNZakmWLMKD8JeqWsTdQaSjPRkgAo

To claim this, I am signing this object:

#coding: utf-8
import requests
import urllib
import json
import re
import sys
import webbrowser
movie = urllib.quote(sys.argv[1])
dayone = 'dayone://post?entry='
diff --git a/ui/widget.js b/ui/widget.js
index b86232b..e4a1426 100644
--- a/ui/widget.js
+++ b/ui/widget.js
@@ -434,9 +434,21 @@ $.Widget.prototype = {
});
},
- _off: function( element, eventName ) {
+ _off: function( elements, eventName ) {
test( "range", function() {
expect( 27 );
var element, range;
// min
element = $("<div></div>").slider({
range: "min",
min: 1,
max: 10,
step: 1
@petersendidit
petersendidit / jQuery-UI_tabs_POST.js
Created January 29, 2013 03:54
Tiny jQuery UI tabs extension to switch to using POST.
(function( $ ) {
var _ajaxSettings = $.ui.tabs.prototype._ajaxSettings;
$.ui.tabs.prototype._ajaxSettings = function( anchor, event, eventData ) {
return $.extend( {
type: "POST",
data: { test: "123" }
}, _ajaxSettings.apply( this, arguments ) );
};
})( jQuery );
/*
* jQuery special events for delayedEnter, delayedLeave, and delayedHover
* Author: Scott Jehl, scott@filamentgroup.com
* Copyright (c) 2011 Filament Group
* licensed under MIT
* note: Each event can be used with bind or live event handling as you would use mouseenter,mouseleave, and hover
* events fire after 200ms timeout
*/
(function($){
//delayedEnter event
@petersendidit
petersendidit / lineargradienttest.js
Created February 2, 2011 13:43
Modernizr test for linear-gradient() support
/*
Modernizr already has a test for cssgradients but it checks the old webkit syntax
In order to do px points we need linear-gradient()
Webkit did not have suport for linear-gradient() until Jan 2011
http://webkit.org/blog/1424/css3-gradients/
So here is a test to check for it.
*/
Modernizr.addTest('lineargradient', function () {
var test = document.createElement('div'),
if (!Modernizr.input.placeholder) {
$(':input[placeholder]').live('focus',function(){
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
}).live('blur',function(){
var input = $(this);
if (input.val() == '') {
input.val(input.attr('placeholder'));
jQuery.config = {
namespaces : {
myNamespace : '/js/myNamespace/'
}
};
// this module would be in a separate file at /js/myNamepsace/MyModule.js
jQuery.module('myNamespace.MyModule', null, {
config:{