This file contains 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
library(httr) | |
myRunApp <- function(...) | |
{ | |
try(hostname <- suppressWarnings(system2(c("hostname", "-d"), | |
stdout=TRUE, stderr=NULL)), | |
silent=TRUE) | |
if (exists("hostname") && length(hostname) && | |
grepl("ec2\\.internal", hostname)) | |
{ | |
dots <- list(...) |
This file contains 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
# print() is the simplest debugging technique | |
myFunction <- function() | |
{ | |
#...possibly buggy code... | |
print("here i am") | |
#...more possibly buggy code... | |
print("here i am 2") | |
} |
This file contains 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
cy.on('click', function(event){ | |
// cyTarget holds a reference to the originator | |
// of the event (core or element) | |
var evtTarget = event.cyTarget; | |
window.evtTarget = evtTarget; | |
if( evtTarget === cy ){ | |
console.log('click on background'); | |
} else { | |
console.log('click on some element'); |
NewerOlder