"~" signifies the application's folder.
- ~/Library/WebKit/LocalStorage/file__0.localstorage
| import java.io.*; | |
| import java.net.URL; | |
| import java.net.URLEncoder; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Calendar; | |
| import javax.net.ssl.HttpsURLConnection; | |
| public class Autoingestion | |
| { |
| if [ -f `brew --prefix`/etc/bash_completion ]; then | |
| . `brew --prefix`/etc/bash_completion | |
| fi | |
| GIT_PS1_SHOWDIRTYSTATE=1 #... untagged(*) and staged(+) changes | |
| GIT_PS1_SHOWSTASHSTATE=1 #... if something is stashed($) | |
| GIT_PS1_SHOWUNTRACKEDFILES=1 #... untracked files(%) | |
| PS1='\h:\W \u$(__git_ps1 " \[\e[0;32m\](%s)")\[\e[1;37m\]$ ' |
| <!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" /> |
| #!/bin/bash | |
| # | |
| # Build and iPhone Simulator Helper Script | |
| # Shazron Abdullah 2011 | |
| # | |
| # WARN: - if your .xcodeproj name is not the same as your .app name, | |
| # this won't work without modifications | |
| # - you must run this script in where your .xcodeproj file is | |
| PROJECTNAME=$1 |
| - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo | |
| { | |
| NSString* jsString = [NSString stringWithFormat:@"MyFunction(%@)", [dict JSONString]]; | |
| [self.webView stringByEvaluatingJavaScriptFromString:jsString]; | |
| } | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| NSDictionary* dict = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; | |
| if (dict && [dict isKindOfClass:[NSDictionary class]]) |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
| function openInWebView(url) | |
| { | |
| var anchor = document.createElement('a'); | |
| anchor.setAttribute('href', url); | |
| //anchor.setAttribute('target', '_self'); | |
| var dispatch = document.createEvent('HTMLEvents') | |
| dispatch.initEvent('click', true, true); | |
| anchor.dispatchEvent(dispatch); |
| function onDeviceReady() { | |
| window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, fail); | |
| } | |
| function success(fileSystem) { | |
| alert("success"); | |
| } | |
| function fail(evt) { | |
| alert("fail"); |
| #!/bin/bash | |
| # ############################################################################ | |
| # | |
| # MIT licensed | |
| # http://www.opensource.org/licenses/mit-license.php | |
| # | |
| # Script to create a new PhoneGap project from the PhoneGap Template. | |
| # You need to install PhoneGapLib first (through the installer) | |
| # before this script can work. |