Skip to content

Instantly share code, notes, and snippets.

View bethropolis's full-sized avatar
😊

Bethuel bethropolis

😊
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bethropolis on github.
  • I am bethropolis (https://keybase.io/bethropolis) on keybase.
  • I have a public key whose fingerprint is D642 0166 8B3B AF5A D1E6 8ADC 4352 8A8A 550E 603A

To claim this, I am signing this object:

@bethropolis
bethropolis / github-search-new-tab.user.js
Last active April 21, 2021 01:06
Open github search links in new tab
// ==UserScript==
// @name Github search open in new tab
// @namespace bethropolis.github
// @include https://github.com/search?*
// @version 0.1
// @homepage https://greasyfork.org/en/scripts/425294-github-search-open-in-new-tab
// @description open search results in new tab.
// @license MIT
// @updateURL https://openuserjs.org/meta/Jav_bethro/Github_search_open_in_new_tab.meta.js
// @downloadURL https://openuserjs.org/install/Jav_bethro/Github_search_open_in_new_tab.user.js
@bethropolis
bethropolis / github-homepage-button.user.js
Last active February 23, 2023 10:59
Adds a "Homepage" button to GitHub repository search results to quickly access the repository's homepage URL
// ==UserScript==
// @name GitHub Homepage Button
// @description Adds a "Homepage" button to GitHub repository search results to quickly access the repository's homepage URL.
// @version 1
// @match https://github.com/search?*
// @namespace https://gist.github.com/bethropolis/37cfb3821ad2321b53749ca097ec2963
// @author bethropolis
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
@bethropolis
bethropolis / retro.css
Last active June 8, 2023 13:59
retro theme for code editor
:root {
--primary: #FFD700;
--on-primary: #000000;
--primary-container: #FFFAF0;
--on-primary-container: #8B4513;
--secondary: #FFA500;
--on-secondary: #000000;
--secondary-container: #FFF5EE;
--on-secondary-container: #A0522D;
--tertiary: #FF6347;
@bethropolis
bethropolis / plugins.json
Last active June 8, 2023 16:05
a plugin file for Haze editor
[
{
"name": "Retro Theme",
"description": "Experience the beauty of a retro style with this captivating theme.",
"version": "1.0.0",
"image": "http://localhost/plugins/img/img.png",
"type": "theme",
"file": "https://gist.githubusercontent.com/bethropolis/d50c3e9c1055243dca86ca9e0f9f8fbe/raw/46423a9229e8c2211166d56baf07054957d7f45e/retro.css",
"mode": "light",
"author": "bethropolis"
@bethropolis
bethropolis / gothic.css
Last active June 8, 2023 14:26
a gothic theme
body.dark {
--primary: #800000;
--on-primary: #FFFFFF;
--primary-container: #8B0000;
--on-primary-container: #FFFFFF;
--secondary: #8B4513;
--on-secondary: #FFFFFF;
--secondary-container: #A0522D;
--on-secondary-container: #FFFFFF;
--tertiary: #4B0082;
@bethropolis
bethropolis / pastel.css
Created June 8, 2023 14:58
pastel theme
:root {
--primary: #FFC0CB;
--on-primary: #000000;
--primary-container: #FFF0F5;
--on-primary-container: #DB7093;
--secondary: #ADD8E6;
--on-secondary: #000000;
--secondary-container: #F0F8FF;
--on-secondary-container: #6495ED;
--tertiary: #FFE4B5;
body.dark{
--primary: #007ACC;
--on-primary: #FFFFFF;
--primary-container: #DCE6F0;
--on-primary-container: #004E8C;
--secondary: #0097FB;
--on-secondary: #FFFFFF;
--secondary-container: #E0F0FF;
--on-secondary-container: #0067B8;
--tertiary: #4EC9B0;
@bethropolis
bethropolis / retro-gothic.css
Created June 22, 2023 21:04
suplike theme retro-gothic
:root {
--bg: #000;
--co: #fff;
--ho: #ff00ff;
--ac: #00ffff;
--inp: #333;
--icon-light: #fff;
--icon-dark: #000;
--box-shadow: 0 0 5px var(--light);
--tab: #333;
@bethropolis
bethropolis / dexieWrapper.js
Created July 5, 2023 13:36
a JS class that acts as a wrapper around Dexie.js major functions
// A JS class that wraps Dexie.js major functions
class DexieWrapper {
// Constructor takes a database name and an optional schema object
constructor(dbName, schema = {}) {
// Create a new Dexie instance with the given name
this.db = new Dexie(dbName);
// Define the schema if given
if (Object.keys(schema).length > 0) {
this.db.version(1).stores(schema);
}