Skip to content

Instantly share code, notes, and snippets.

@ykubota
ykubota / changelog.md
Last active June 24, 2021 00:44
Java 11による変更点。

Java 11: 利用や動作に影響を与える変更点

Java 10はこちら

なお、本資料に記載しているものの一部は実機確認してないので、お使いのコードを修正する前に動作確認してください :)

@sunnyone
sunnyone / CustomRules.js
Last active April 7, 2017 04:47
Fiddler script to replace 127.0.0.1/localhost
static function replaceLocalHost(str) {
str = str.replace(/\/\/127\.0\.0\.1/gi, "//ipv4.fiddler");
str = str.replace(/\/\/localhost/gi, "//localhost.fiddler");
return str;
}
static function OnBeforeResponse(oSession: Session) {
if (oSession.HostnameIs("localhost.fiddler") || oSession.HostnameIs("ipv4.fiddler")) {
if (oSession.oResponse.headers.Exists("Location")) {
@irace
irace / BIWebViewDelegate.m
Created September 10, 2012 02:51
JavaScript/native bridge for iOS's UIWebView
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType {
NSString *urlString = [[request URL] absoluteString];
if ([urlString hasPrefix:@"js:"]) {
NSString *jsonString = [[[urlString componentsSeparatedByString:@"js:"] lastObject]
stringByReplacingPercentEscapes];
NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
NSError *error;