This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RateLimiter { | |
private $timePeriod; | |
private $maxRequests; | |
private $retryAfter; | |
private $sessionKey; | |
private $errorRedirectUrl; | |
private $userRolesLimits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |