This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PhoneGap Reachability Support | |
function testReachable() { | |
// no http:// prefix! | |
navigator.network.isReachable("www.google.com", testReachable_callback); | |
// OR by ipAddress | |
navigator.network.isReachable("212.32.454.32", testReachable_callback, { isIpAddress: true}); | |
} | |
// NetworkStatus: 0 for NotReachable, 1 for ReachableViaCarrierDataNetwork, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function watchCompass() { | |
debug.log("watchCompass"); | |
var suc = function(a){ | |
document.getElementById('compass_magnetic').innerHTML = roundNumber(a.magneticHeading); | |
document.getElementById('compass_true').innerHTML = roundNumber(a.trueHeading); | |
document.getElementById('compass_accuracy').innerHTML = roundNumber(a.headingAccuracy); | |
}; | |
var fail = function(){}; | |
var opt = {}; | |
opt.frequency = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Fri Nov 06 - 08:29:47> <elliottcable - Sophie-2> <~/Downloads/> | |
$ xattr /Users/elliottcable/Downloads/GitX.app | |
com.apple.quarantine | |
<Fri Nov 06 - 08:29:48> <elliottcable - Sophie-2> <~/Downloads/> | |
$ xattr -p com.apple.quarantine /Users/elliottcable/Downloads/GitX.app | |
0000;4af45c3f;WebKit;|org.webkit.nightly.WebKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From PrivateFrameworks/Bom.framework: | |
U _BOMCopierCopyWithOptions | |
U _BOMCopierCountFilesInArchive | |
U _BOMCopierFree | |
U _BOMCopierNew | |
U _BOMCopierSetCopyFileFinishedHandler | |
U _BOMCopierSetCopyFileStartedHandler | |
U _BOMCopierSetCopyFileUpdateHandler | |
U _BOMCopierSetFatalErrorHandler | |
U _BOMCopierSetFatalFileErrorHandler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: http://snipt.net/yonishin/about-xcode-4-project-template | |
XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates | |
Examples: | |
/Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate | |
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.plugins.nativeControls.createTabBar(); | |
window.plugins.nativeControls.createTabBarItem("home-tab", "Home", "home-icon", { | |
onSelect: function() { | |
alert("home"); | |
} | |
}); | |
window.plugins.nativeControls.showTabBar({position:"bottom"}); | |
window.plugins.nativeControls.showTabBarItems("home-tab"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<!-- iPad/iPhone specific css below, add after your main css > | |
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" /> | |
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<!-- iPad/iPhone specific css below, add after your main css > | |
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" /> | |
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parts[] = '<li class="share-g-plus-one share-regular">' . do_shortcode('[wdgpo_plusone]') . '</li>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var toolbar = document.createElement('menu'); | |
toolbar.setAttribute('type', 'toolbar'); | |
toolbar.setAttribute('label', 'Home'); | |
var commandBack = document.createElement('command'); | |
commandBack.setAttribute('label', 'Back'); | |
commandBack.setAttribute('accesskey', 'back'); | |
commandBack.setAttribute('action', function() { alert('Back'); }); | |
toolbar.appendChild(commandBack); |
OlderNewer