Skip to content

Instantly share code, notes, and snippets.

View krishna2nd's full-sized avatar
🎯
Focusing

Krishna krishna2nd

🎯
Focusing
View GitHub Profile

Opera Mini OBML file format

© 2016 Mantas Mikulėnas [email protected]

This documentation is released under CC BY 4.0.


OBML (Opera Binary Markup Language) files are self-contained, rendered versions of HTML documents generated by the Presto v2 engine. They are static, containing pixel-positioned regions adapted for a specific device's screen size & font metrics. (Thus OBML documents generated for one device tend to look slightly 'off' everywhere else, and a perfect rendering is impossible without knowing the original device.)

@krishna2nd
krishna2nd / UnityLoader.js
Created March 16, 2017 03:17
Web Assembly
var UnityLoader = UnityLoader || {
compatibilityCheck: function(e, t, r) {
UnityLoader.SystemInfo.hasWebGL ? UnityLoader.SystemInfo.mobile ? e.popup("Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.", [{
text: "OK",
callback: t
}]) : ["Firefox", "Chrome", "Safari"].indexOf(UnityLoader.SystemInfo.browser) == -1 ? e.popup("Please note that your browser is not currently supported for this Unity WebGL content. Press OK if you wish to continue anyway.", [{
text: "OK",
callback: t
}]) : t() : e.popup("Your browser does not support WebGL", [{
text: "OK",
@krishna2nd
krishna2nd / express
Created February 8, 2017 05:57
Generate certificates for http2-express
$ mkdir http2-express
$ cd http2-express
$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
...
$ openssl rsa -passin pass:x -in server.pass.key -out server.key
writing RSA key
$ rm server.pass.key
$ openssl req -new -key server.key -out server.csr
...
Country Name (2 letter code) [AU]:US
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
function arrFlatern(inArray) {
return inArray.reduce(function (_in, to) {
return _in.concat(Array.isArray(to) ? arrFlatern(to) : to);
}, []);
}