Skip to content

Instantly share code, notes, and snippets.

importScripts('https://unpkg.com/workbox-sw@0.0.2/build/importScripts/workbox-sw.dev.v0.0.2.js');
importScripts('https://unpkg.com/workbox-google-analytics@1.0.0/build/importScripts/workbox-google-analytics.prod.v1.0.0.js');
const workboxSW = new WorkboxSW({clientsClaim: true});
workbox.googleAnalytics.initialize();
workboxSW.router.registerRoute(
/\.?!(html)$/,
workboxSW.strategies.cacheFirst({
cacheName: 'assets',
{
"ecmaFeatures": {
"impliedStrict": true
},
"rules": {
"eqeqeq": 1,
"indent": [2, "tab", {"SwitchCase": 1}],
"no-unused-vars": 1,
"curly": 1,
"no-multi-spaces": 2,
@wreszelewski
wreszelewski / compilation
Last active March 4, 2022 08:29
Compiling dalvikvm for Ubuntu 14.04, creating EC2 image, running hello world
#Some references:
# by Huber Flores:
# https://gist.github.com/huberflores/4687766
# https://gist.github.com/huberflores/9886339
# https://gist.github.com/huberflores/4714824
# by Hai on StackOverflow:
# http://stackoverflow.com/questions/14951374/didnt-find-class-foo-on-path-dexpathlist
# AOSP tutorial: https://source.android.com/source/index.html