Skip to content

Instantly share code, notes, and snippets.

View leecade's full-sized avatar
🎯
Focusing

斯人 leecade

🎯
Focusing
View GitHub Profile
@leecade
leecade / Samsung Browser
Created May 24, 2017 22:35 — forked from NielsLeenheer/Samsung Browser
Samsung Browser
Note: Some older devices such as the Galaxy S III did not get the Chromium based browser with
the update to Android 4.2 or later. When Samsung later introduced the Galaxy S3 Neo it did get
the new browser.
Note: With the Android 4.3 release and version 1.5 of the Chromium browser, Samsung did not
enable WebAudio API for the Note 3. All other devices did get the WebAudio API.
Note: Samsung did not update the browser version with the upgrade from Android 4.3 to 4.4,
but did add getUserMedia and WebRTC functionality.
@leecade
leecade / HTC Sense Browser
Created May 24, 2017 22:35 — forked from NielsLeenheer/HTC Sense Browser
HTC Sense Browser
Note: All versions of the HTC Sense browser listed below send the following header: X-Requested-With: com.htc.sense.browser
Note: The difference between the two WebKit based versions are mostly which form field types are supported
Webkit
368 / 555
https://html5test.com/results/related/127d2c84dc7e495a6ed4ddd8ceccac2a.html
@leecade
leecade / LG Browser
Created May 24, 2017 22:35 — forked from NielsLeenheer/LG Browser
LG Browser
Chromium 30
458 / 555
https://html5test.com/results/related/7c791b543cbd7705f547a0a30e5404cf.html
- G Pad 8.3 Android 4.4.2
- G Pro 2 Android 4.4.2
- G2 Android 4.4.2
- G2 mini Android 4.4.2
- L65 Android 4.4.2
- L70 Android 4.4.2
@leecade
leecade / Sony
Created May 24, 2017 22:35 — forked from NielsLeenheer/Sony
Google Chrome on Sony devices
Sony devices ship with Google Chrome as the default browser. Google Chrome is baked
into the firmware of the device. Different versions of the firmware come with different
versions of Google Chrome.
Usually the version that comes with the firmware is updated using Google Play, however...
When first starting up the device Sony does not ask the user to log into Google Play.
This means that unless you manually open Google Play and log in, the devices does not
receive any updates using Google Play. In this case Google Chrome is only updated when
the user installs a firmware update.
@leecade
leecade / Native app communication
Created May 24, 2017 22:34 — forked from NielsLeenheer/Native app communication
How a web app running on HTTPS can communicatie with local services
I have a web app that needs to talk to point of sale hardware: receipt printers, customer displays,
cash drawers and payment terminals. Direct communication from the web app with these devices is
impossible, so I created a native app that can be installed on the computer that can talk to the
devices. The app runs a web server that exposes these devices using a REST api.
The native app registers itself upon startup with a webservice. It sends its own IP address on
the local network and the server also sees the external IP address of the network. The web app
sends a discovery request to the webservice and it receives all the local IP addresses which
have the same external IP address.
Consoles:
Xbox 360 - Internet Explorer 9
Xbox One - Internet Explorer 10
Sony PlayStation 3 - Netfront
Sony PlayStation 4 - Chromium based
Sony PlayStation TV - Netfront NX
Nintendo Wii - Opera 9.6, Presto
Nintendo Wii U - Netfront NX
WebKit代码在资源受限的嵌入式环境下的定制问题
传统的WebKit及Chromium为了性能和丰富的HTML5功能特性而优化,即使是iPhone或Android这样的手机移动设备,其内存也动辄以2G以上计。
那么,当我需要在资源受限的嵌入式环境下运行WebKit,如何进行节省资源的裁剪定制呢?
这里所谓的资源受限,指的就是像车载设备、智能电视这样的终端,CPU通常使用ARM,但主频不高;内存只有512MB以下,虽然也支持OpenGL ES,但能力受限。
首先考虑所谓的“节省资源”,这有2个方面的含义:
1、静态的资源 主要指程序编译出来的二进制文件大小
@leecade
leecade / 0-intro.md
Created May 17, 2017 19:53 — forked from revolunet/0-raspi-cheatsheet-intro.md
Raspberry PI 3 cheat sheet
// 程序启动器[win32]
// 一个小玩意,作用就是读取与 exe 同名的 .config 文件,并逐条并行执行,不显示窗口
// 以 # 打头的行忽略
// 用于开机挂载一些自带 cmd 窗口的程序
// 自用 vs2017 编译测试通过
// ver 1.1
// 一个新语法:@命令 可以等待此命令结束后再继续运行
// 例如 @ping 127.1 -n 3 等待3秒
@leecade
leecade / gist:dd49673cec405ba7710d71f12ccf4e01
Created November 11, 2016 23:25 — forked from ConoHa/gist:9223508
【ConoHa】CoreOSのインストール手順
# yum -y install curl mkisofs syslinux
# cd /tmp
# git clone https://github.com/nyarla/coreos-live-iso
# cd coreos-live-iso
# ./makeiso.sh
・できあがったISOイメージをConoHaにアップロード
・ISOイメージで起動
・ISOイメージを作成したマシン/ユーザーのKey Pairでsshログイン