Skip to content

Instantly share code, notes, and snippets.

@rduplain
rduplain / MainActivity.java
Created May 8, 2012 20:08
A very simple full-screen WebView activity for Android native wrappers, as a starting point.
package com.willowtreeapps.demo;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Window;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends Activity {
@ngs
ngs / table.mkdn
Created May 24, 2012 16:04
Unicode character table

A

Description Entity Preview
A With Acute, Latin Capital Letter Á Á
A With Acute, Latin Small Letter á á
A With Breve, Latin Small Letter ă ă
A With Caron, Latin Small Letter ǎ ǎ
A With Circumflex, Latin Capital Letter  Â
A With Circumflex, Latin Small Letter â â
@ryandotsmith
ryandotsmith / agg.sql
Created January 23, 2013 05:19
Postgres array concatenation aggregate function.
CREATE AGGREGATE array_accum (anyarray)
(
sfunc = array_cat,
stype = anyarray,
initcond = '{}'
);
@karthiks
karthiks / webapp_android.java
Last active May 17, 2020 13:32
Convert HTML5 into standalone Android App
//Ref. http://stackoverflow.com/questions/12840977/convert-html5-into-standalone-android-app
//Ref. http://gamedev.stackexchange.com/questions/8599/packaging-html5-games-as-applications-for-iphone-android
//1. Create an Android app using Eclipse.
//2. Create a layout that has a <WebView> control.
public class WebApp extends Activity {
protected void onCreate(Bundle savedInstanceState) {
WebView wv = new WebView(this);
wv.loadUrl("http://www.myapp.com/");
@arraytools
arraytools / qt5.5_configure
Created July 15, 2015 16:51
qt 5.5 configure options
brb@brb-VirtualBox:~/qt-everywhere-opensource-src-5.5.0$ ./configure -h
+ cd qtbase
+ /home/brb/qt-everywhere-opensource-src-5.5.0/qtbase/configure -top-level -h
Usage: configure [options]
Installation options:
These are optional, but you may specify install directories.
-prefix <dir> ...... The deployment directory, as seen on the target device.
@craigtp
craigtp / GetWindowsProductKey.vbs
Created May 30, 2016 18:10
Retrieve Windows Product Key
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
@robert-claypool
robert-claypool / debian-fullscreen-in-hyperv.md
Created July 13, 2016 18:05
How To Make Debian Linux Fullscreen in Hyper-V
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active April 20, 2025 19:36
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@SinBirb
SinBirb / check_darkmode.js
Created October 26, 2017 16:37
Heuristic to check whether a site appears dark or bright to a user
/* round num to c digits */
function round(num, c) {
return +(Math.round(num + "e+" + c) + "e-" + c);
}
/* Adapted from Python from manojpandey, thanks!
https://gist.github.com/manojpandey/f5ece715132c572c80421febebaf66ae
*/
function rgbTolab(inputColor) {
@harubaru
harubaru / wd1-3-release.md
Last active April 16, 2025 14:17
Official Release Notes for Waifu Diffusion 1.3