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
stateCfg: { | |
tmStart: null, | |
tmFinish: null, | |
}, | |
profileStart: function() { | |
// TODO: This is a heavy API/network zone. | |
let tmStart = this.stateCfg.tmStart = Date.now(); | |
// NOTE TO SELF -- the getMinutes and getSeconds did not work. | |
console.log(">>>># START: " + Date(tmStart).split(" ")[4]); |
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
let alert = UIAlertController(title: "My Alert", message: "This is an alert.", preferredStyle: .alert) | |
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: "Default action"), style: .default, handler: { _ in | |
NSLog("The \"OK\" alert occured.") | |
})) | |
self.present(alert, animated: true, completion: nil) |
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
class University | |
{ | |
var university: String | |
init(university: String) { | |
self.university = university | |
} | |
} | |
class Discipline : University{ | |
var discipline: String |
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> | |
<link href="https://ux.ohio.gov/assets/fonts/MyFontsWebfontsKit.css" rel="stylesheet"> | |
<!-- reference your copy Font Awesome here (from our CDN or by hosting yourself) ---> | |
<!-- | |
<link href="http://fontawesome.io/css/fontawesome.css" rel="stylesheet"> | |
<link href="http://fontawesome.io/css/brands.css" rel="stylesheet"> |
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; |
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
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
# 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
## 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
<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> |