Skip to content

Instantly share code, notes, and snippets.

View surajsharma's full-sized avatar
🌜
do not fold, spindle, or mutilate

スレージ シャーマ surajsharma

🌜
do not fold, spindle, or mutilate
View GitHub Profile
@surajsharma
surajsharma / CHEATSHEET.md
Created June 5, 2024 07:16 — forked from oschannel/CHEATSHEET.md
Running PostgreSQL server on Android Phone without rooting

This cheatsheet is for the following video that shows how to Install and Run the PostgreSQL Database server on your Andriod Phone. Watch this video for a complete Demo/Solution: https://youtu.be/7edutr-ALdc

Install Termux:

Once termux is installed open it and use the shell for below commands

  • Install PostgreSQL:

@surajsharma
surajsharma / IndexedDB101.js
Created May 19, 2024 18:56 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});