Skip to content

Instantly share code, notes, and snippets.

@KojiNakamaru
KojiNakamaru / study.html
Last active September 8, 2020 13:08
study.html
<!DOCTYPE html>
<html lang="jp">
<head>
<meta charset="UTF-8">
<script src="js/jquery-2.1.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
margin:0;
@KojiNakamaru
KojiNakamaru / WebView.mm.diff
Created December 2, 2016 01:48
WebView.mm.diff to force inline video.
diff --git a/plugins/iOS/WebView.mm b/plugins/iOS/WebView.mm
index f7b246d..44a1198 100644
--- a/plugins/iOS/WebView.mm
+++ b/plugins/iOS/WebView.mm
@@ -123,12 +123,15 @@ extern "C" void UnitySendMessage(const char *, const char *, const char *);
UIView *view = UnityGetGLViewController().view;
if (enableWKWebView && [WKWebView class]) {
- webView = [[WKWebView alloc] initWithFrame:view.frame];
+ WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
@KojiNakamaru
KojiNakamaru / SampleWebView.cs.diff
Created April 15, 2016 00:39
SampleWebView.cs.diff an example for checking the current page
diff --git a/sample/Assets/Scripts/SampleWebView.cs b/sample/Assets/Scripts/SampleWebView.cs
index b1793ca..d4665cc 100644
--- a/sample/Assets/Scripts/SampleWebView.cs
+++ b/sample/Assets/Scripts/SampleWebView.cs
@@ -74,7 +74,10 @@ public class SampleWebView : MonoBehaviour
" iframe.parentNode.removeChild(iframe);" +
" iframe = null;" +
" }" +
- " }" +
+ " };" +
# brew install emacs.rb --with-cocoa --japanese
class Emacs < Formula
desc "GNU Emacs text editor"
homepage "https://www.gnu.org/software/emacs/"
url "https://ftp.gnu.org/gnu/emacs/emacs-26.1.tar.xz"
mirror "https://ftpmirror.gnu.org/emacs/emacs-26.1.tar.xz"
sha256 "1cf4fc240cd77c25309d15e18593789c8dbfba5c2b44d8f77c886542300fd32c"
revision 1
# cf. http://qiita.com/takaxp/items/e07bb286d80fa9dd8e05
diff -ruN emacs-24.4.orig/configure emacs-24.4/configure
--- emacs-24.4.orig/configure 2014-10-18 00:54:31.000000000 +0900
+++ emacs-24.4/configure 2014-10-22 11:17:48.000000000 +0900
@@ -10373,7 +10373,7 @@
INSTALL_ARCH_INDEP_EXTRA=
fi
- NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
+ NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o macim.o $macfont_file"
fi