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
@Override | |
public void onProgressChanged(WebView view, int newProgress) { | |
Log.i(TAG, "onProgressChanged # " + newProgress); | |
if (newProgress >= PERCENT_100) { | |
if (lastTarget != null) { | |
webview.loadUrl(lastTarget); | |
lastTarget = null; | |
} |
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
private void dumpCursor(Cursor myCursor) { | |
if (myCursor == null) { | |
Logs.w(TAG, "Null cursor"); | |
} else { | |
try { | |
if (myCursor.moveToFirst()) { | |
String [] columns = myCursor.getColumnNames(); | |
StringBuilder sbHeader = new StringBuilder(); | |
for (String columnName : columns) { | |
sbHeader.append(columnName).append(", "); |
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
@interface UrlDebug <NSObject> { | |
+(void) explodeNSUrl: (NSURL*) urlDebug; | |
} | |
@implementation UrlExplore { | |
+(void) explodeNSUrl: (NSURL*) urlDebug { | |
NSLog(@"\n\n%s: %@", __FUNCTION__, urlDebug); |
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
private void dismissKeyboardHelper() { | |
View view = this.getCurrentFocus(); | |
if (view != null) { | |
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); | |
imm.hideSoftInputFromWindow(view.getWindowToken(), 0); | |
} | |
} |
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
<html> | |
<head> | |
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> | |
<script src="webbotFramework.js"></script> | |
</head> | |
<body> | |
<div id="webchat" role="main"></div> | |
<script> |
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
## Understand that this is the popular pattern. More patterns may exist and hide from this script. | |
$ find . -name 'frm*.js' -exec awk '$0 ~ /operationName/, /invokeOperation/ { print(FILENAME, $0) }' {} \; | |
## More in a Kony App to find all the navigation code. | |
find . -name 'frm*.js' -exec awk '$0 ~ /new.*kony\.mvc\.Navigation/, /;/ { print(FILENAME, $0) }' {} \; | grep -v -e "/jssrc/" | wc | |
## This was the "spy" script to see if I was on the right track for the navigation crawl. |
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
# explode the $PATH variable into separate lines (for easy review) | |
# | |
# nb. put user cmdline in /usr/local/bin/ like this ... (don't forget to chmod 777) | |
# sudo mv my-binary /usr/local/bin/ | |
env | grep -i "path" | tr : '\n' |
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
while true; do | |
read -p "Do you wish to install this program?" yn | |
case $yn in | |
[Yy]* ) make install; break;; | |
[Nn]* ) exit;; | |
* ) echo "Please answer yes or no.";; | |
esac | |
done |
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
find ./ -name '*.js*' -exec awk 'BEGIN {fnbefore=""} /onBreakpointChange:.*function/,/},/ { if(fnbefore != FILENAME) {fnbefore=FILENAME; print FILENAME, ": "; } print "\t", $0; }' {} \; |
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
define(function() { | |
return { | |
testSettings: { | |
showDataFrame: false | |
}, | |
constructor: function(baseConfig, layoutConfig, pspConfig) { | |
this.initGettersSetters(); | |
this.view.isVisible = false; |
OlderNewer