Skip to content

Instantly share code, notes, and snippets.

{
// Appbar commands
, "MyLocation" : "My Location"
, "MyLocationTooltip" : "Find your current location"
, "GetAllCars" : "Show all cars"
, "GetAllCarsTooltip" : "Find all available car2go vehicles"
, "ShowParking" : "Show parking spot"
, "ShowParkingTooltip" : "Show parking all car2go parking spots"
, "ChangeCity" : "Change city"
@atxryan
atxryan / breakpoint.js
Created August 29, 2011 22:06 — forked from benvinegar/breakpoint.js
Set JavaScript debugger breakpoints from the console
/**
* Utility lib for setting/unsetting JavaScript breakpoints
*
* Usage:
* breakpoint.set('globalMethodName');
* breakpoint.unset('globalMethodName');
*
* breakpoint.set('namespacedMethodName', namespaceObject);
* breakpoint.unset('namespacedMethodName', namespaceObject);
*/
@atxryan
atxryan / bookmarklet.js
Created August 23, 2011 20:36
Trac ticket form parametizer bookmarklet
javascript:(function(a,b,c,d,e,f,g,h){if(!(e=a.jQuery)||c>e.fn.jquery||d(e)){f=b.createElement(%22script%22);f.type=%22text/javascript%22;f.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+c+%22/jquery.min.js%22;f.onload=f.onreadystatechange=function(){if(!g&&(!(h=this.readyState)||h==%22loaded%22||h==%22complete%22)){d((e=a.jQuery).noConflict(1),g=1);e(f).remove()}};b.documentElement.childNodes[0].appendChild(f)}})(window,document,%221.6%22,function(a,b){var%20c=window.location;var%20d=[];var%20e,f;a(%22fieldset#properties%20input:visible,%20fieldset#properties%20select%22).each(function(){if(a(this).val()!=%22%22){e=a(this).attr(%22name%22);f=a(this).val();d.push({name:e.replace(%22field_%22,%22%22),value:f})}});window.location=c.protocol+%22//%22+c.host+c.pathname+%22?%22+a.param(d)})
@atxryan
atxryan / gist:1026013
Created June 14, 2011 21:55
Box.net Maximize preview in window bookmarklet
javascript:(function(d)%20{var%20h%20=%20d.body.clientHeight;var%20w%20=%20d.body.clientWidth;var%20p%20=%20d.getElementById(%22player%22);var%20g%20=%20d.getElementById(%22gallery%22);g.style.position%20=%20%22absolute%22;g.style.width%20=%20w%20+%20%22px%22;g.style.height%20=%20h%20+%20%22px%22;p.style.width%20=%20w%20+%20%22px%22;p.style.height%20=%20h%20+%20%22px%22;p.style.position%20=%20%22relative%22;g.style.top%20=%20%220%22;g.style.left%20=%20%220%22;g.style.zIndex%20=%20%2210000%22;p.setAttribute(%22width%22,%20w);p.setAttribute(%22height%22,%20h);})(document);