from: http://dev.w3.org/2009/dap/system-info/compass.html
interface Compass : Object {
void getCurrentOrientation (
CompassCallback successCallback,
[Optional] CompassPosition position,
[Optional] CompassErrorCallback errorCallback,
#!/usr/bin/env node | |
function splitByComma(string) { | |
string = string.replace(/^\s*/,"") | |
string = string.replace(/\s*$/,"") | |
var result = string.split(/\s*,\s*/) | |
if (result.length == 1) { | |
if (result[0] == "") { | |
return [] |
#------------------------------------------------------------------------------- | |
# Useful while developing a plugin that lives in the phonegap-plugins Git repo. | |
# - create a new sample PhoneGap project to test your plugin | |
# - copy this file in there | |
# - modify PLUGIN_DIR, PLUGIN_FILES as needed | |
# - run "make watch" while working on your sample to update the | |
# phonegap-plugins files | |
#------------------------------------------------------------------------------- | |
PLUGIN_DIR = ~/Projects/phonegap-plugins/iPhone/BarcodeScanner |
from: http://dev.w3.org/2009/dap/system-info/compass.html
interface Compass : Object {
void getCurrentOrientation (
CompassCallback successCallback,
[Optional] CompassPosition position,
[Optional] CompassErrorCallback errorCallback,
function __function__6() { | |
WebInspector.panels.remote = new RemotePanel(); | |
var panel = WebInspector.panels.remote; | |
var toolbar = document.getElementById("toolbar") | |
WebInspector.addPanelToolbarIcon(toolbar, panel, toolbar.childNodes[1]) | |
WebInspector.panelOrder.unshift(WebInspector.panelOrder.pop()) | |
WebInspector.currentPanel = panel |
function __function__194 (styleId, propertyIndex, text, overwrite) { | |
var styleDecl = Weinre.cssStore._getStyleDecl(styleId) | |
if (!styleDecl) { | |
Weinre.logWarning("requested style not available: " + styleId) | |
return null | |
} | |
var mirror = styleDecl.__weinre__mirror | |
if (!mirror) { |
Classes = [] | |
Callbacks = [] | |
#=============================================================== | |
class Class | |
constructor: (@name, properties) -> | |
@properties = [] | |
@methods = [] | |
@staticProperties = [] |
<!-- ======================================================= --> | |
<h2>section colors</h2> | |
<table> | |
<tr><td>margin: <td><tt>#??????</tt> | |
<tr><td>border: <td><tt>#??????</tt> | |
<tr><td>padding: <td><tt>#??????</tt> | |
<tr><td>content: <td><tt>#??????</tt> | |
</table> |
class NetworkNotify | |
identifier - can it be a string instead of int? | |
//-------------------------------------------------------------- | |
in a nutshell, trap XHR open, add event handler | |
in open(): | |
- call identifierForInitialRequest() |
#/bin/sh | |
rm weinre-???-*.zip | |
rm -rf weinre-??? | |
cp ~/Projects/callback-weinre/weinre.build/out/archives/weinre-???-*.zip . | |
ls weinre-???-*.zip | xargs -L 1 unzip |
button.addEventListener("click", function buttonClicked() { | |
willThrowError() | |
}) | |
function willThrowError() { | |
throwsError() | |
} | |
function throwsError() { | |
x = null |