Skip to content

Instantly share code, notes, and snippets.

Avatar

Artur Bodera Thinkscape

View GitHub Profile
@Thinkscape
Thinkscape / open-webinspector.applescript
Last active Sep 8, 2020 — forked from amuino/webinspector.applescript
Script for opening web inspector window for remote debugging iOS web apps (including phonegap and other webview apps). This version of the script will suspend and wait for 30 seconds for Safari to establish a connection with the device (or simulator) and open the web inspector window as soon as technically possible.
View open-webinspector.applescript
#!/usr/bin/osascript
# Name of the device as visible in Safari->Develop menu
set deviceName to "iPhone Simulator"
# Number of seconds to wait for the simulator window to show up
set maxWait to 30
# ---------------------------------------
# You shouldn't modify anything below here
@Thinkscape
Thinkscape / _.md
Created Aug 31, 2012 — forked from anonymous/inlet.js
playing with joins and transitions
@Thinkscape
Thinkscape / extjs-capture.js
Created Jul 17, 2012 — forked from inakiabt/extjs-capture.js
ExtJs debug : capture all events
View extjs-capture.js
// to capture ALL events use:
Ext.util.Observable.prototype.fireEvent =
Ext.Function.createInterceptor(Ext.util.Observable.prototype.fireEvent,function(evt) {
var a=arguments;
console.log(this,this.$className + ' fired event '+ evt +' with args ',Array.prototype.slice.call(a,1,a.length));
return true;
});
// to capture events for a particular component:
Ext.util.Observable.capture(