Skip to content

Instantly share code, notes, and snippets.

@stevepond
stevepond / cloudSettings
Last active June 7, 2019 18:25
vscode settings
{"lastUpload":"2019-06-07T18:25:37.828Z","extensionVersion":"v3.2.9"}
@stevepond
stevepond / gist:4549095
Created January 16, 2013 17:41
aop for any method
jQuery.aop.before( {target: thresholdObject, method: '^.'},
function() {
console.log('to', arguments);
}
);
jQuery.aop.before( {target: window, method: '^.'},
function() {
YUI.add('multi', function (Y) {
/**
Loads different versions of YUI in sandboxed iframes and makes them available
for use in the parent frame by exposing them as properties on a `Y.Multi`
instance.
This is primarily intended to be used for testing. You probably shouldn't use it
for anything real.
@stevepond
stevepond / gist:3796347
Created September 27, 2012 20:40
Blackberry external driving directions

Blackberry does not seem to support opening directions for Google Maps. If supplying the ui=maps param, the browser opens with mixed results on blackberry.

There is a native app, Blackberry maps, but seems to only be able to have parameters passed in through the Native API

##References## http://stackoverflow.com/questions/1679264/blackberry-error-on-open-google-maps-in-browser http://stackoverflow.com/questions/8851910/set-direction-with-google-map-url-code-for-blackberry-and-windows-phone-7 http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862

##Swipe Benchmarking - Round 2##

###Baseline###

  • Same HTML Markup
  • Same CSS
  • Loaded 200 copies of a single carousel item into carousel
  • Each carousel used a start button to trigger the test
  • The carousel advances automatically every second
  • Tests both show auto-advance and manual swiping

##Swipe Benchmarking##

###Baseline###

  • Same HTML Markup
  • Same CSS
  • Loaded 200 copies of a single carousel item into carousel
  • Each carousel used a start button to trigger the test
  • The carousel advances automatically every second

###Targets###

We are having trouble getting our require.js dependancies to work in phonegap with Android.
The issue seems specific to Android.

###Device: HTC Nexus### ###PhoneGap Build: 1.4###

application_controllers.js

define([
'mediator', 'backbone', 'use!layoutmanager'
The new picker implementation should be as easy as the following:
{
name: 'depDate',
label: 'Departure:',
xtype: 'datepicker'
}
@stevepond
stevepond / gist:1014900
Created June 8, 2011 17:41
this lets you run jasmine maven tests build resources, etc...
mvn jasmine:resources; mvn jasmine:testResources;mvn jasmine:test