I hereby claim:
- I am cgack on github.
- I am cgack (https://keybase.io/cgack) on keybase.
- I have a public key whose fingerprint is 7B59 A885 709F C977 9621 0DEC EB66 D4D1 3E4B 888C
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://fb.me/react-with-addons-0.13.1.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="container"></div> |
I hereby claim:
To claim this, I am signing this object:
.cg-navbar { | |
max-width: 100% | |
} | |
.cg-navbar__bar { | |
padding: 0; | |
display: table; table-layout:fixed; width: 100%;, | |
} | |
.cg-navbar__baritem{ |
/* turn all target = _blanks into whitelisted urls */ | |
$(document).on("click", function (event) { | |
if (event.target.target === "_blank" && event.target.href.indexOf("#openExternal=true") === -1) { | |
event.target.href = event.target.href + "#openExternal=true"; | |
} | |
}); |
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { | |
NSURL *url = [request URL]; | |
if ( ([url fragment] != NULL) && ([[url fragment] rangeOfString:@"openExternal=true"].location != NSNotFound) ) | |
{ | |
if ([[UIApplication sharedApplication] canOpenURL:url]) { | |
[[UIApplication sharedApplication] openURL:url]; | |
return NO; | |
} | |
} | |
return YES; |
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { | |
if ((navigationType == UIWebViewNavigationTypeLinkClicked) && ([[url absoluteString] hasSuffix:@"?openExternal=1"] )) | |
{ | |
[[UIApplication sharedApplication] openURL:url]; | |
return NO; | |
} | |
return YES; | |
} |
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { | |
if ((navigationType == UIWebViewNavigationTypeLinkClicked) && | |
([[[request URL] absoluteString] hasPrefix:@"https://www.google.com"])) | |
{ | |
[[UIApplication sharedApplication] openURL:request.URL]; | |
return NO; | |
} | |
return YES; | |
} |
var Greeter = (function () { | |
function Greeter(message) { | |
this.greeting = message; | |
} | |
Greeter.prototype.greet = function () { | |
return "Hello, " + this.greeting; | |
}; | |
return Greeter; | |
})(); | |
var greeter = new Greeter("world"); |
class Greeter { | |
greeting: string; | |
constructor (message: string) { | |
this.greeting = message; | |
} | |
greet() { | |
return "Hello, " + this.greeting; | |
} | |
} |
if (me.game.STATE.weaponState === "magic_torrentacle") { | |
if (this.direction === "west") { | |
magic = new MagicEntity(this.pos.x - 100, this.pos.y + 30 , { image: "magic_torrentacle", spriteheight: 128, spritewidth: 128}); | |
magic.flipX(true); | |
me.game.add(magic, this.z); | |
me.game.sort(); | |
} else if (this.direction === "east") { | |
magic = new MagicEntity(this.pos.x + 42, this.pos.y + 30, { image: "magic_torrentacle", spriteheight: 128, spritewidth: 128 }); | |
me.game.add(magic, this.z); | |
me.game.sort(); |