Skip to content

Instantly share code, notes, and snippets.

View sangramsingha's full-sized avatar

Sango sangramsingha

View GitHub Profile
@prof3ssorSt3v3
prof3ssorSt3v3 / app.js
Created March 13, 2021 22:17
Code for Service Workers 9 - Integrating IndexedDB into site with a Service Worker
const APP = {
SW: null,
DB: null, //TODO:
init() {
//called after DOMContentLoaded
//register our service worker
APP.registerSW();
document
.getElementById('colorForm')
.addEventListener('submit', APP.saveColor);
@jjdelc
jjdelc / crayola.json
Created February 20, 2012 06:32
Crayola colors in JSON format
[
{
"hex": "#EFDECD",
"name": "Almond",
"rgb": "(239, 222, 205)"
},
{
"hex": "#CD9575",
"name": "Antique Brass",
"rgb": "(205, 149, 117)"