Skip to content

Instantly share code, notes, and snippets.

View ridheshcybe's full-sized avatar

ridheshcybe ridheshcybe

View GitHub Profile
document.querySelectorAll(`[data-testid="like"]`).forEach(e=>e.click())
document.addEventListener("contextmenu", function(e){
e.preventDefault();
}, false);
document.addEventListener("keydown", function(e){
// USE THIS TO DISABLE CONTROL AND ALL FUNCTION KEYS
// if (e.ctrlKey || (e.keyCode>=112 && e.keyCode<=123)) {
// THIS WILL ONLY DISABLE CONTROL AND F12
if (e.ctrlKey || e.keyCode==123) {
e.stopPropagation();
e.preventDefault();
}
});
function make2darray(cols,rows){
var arr = new Array(cols);
for(vae i=0; i<arr.length; i++){
arr[i] =new Array(rows);
}
return arr;
}
function make2darray(cols,rows){
var arr = new Array(cols);
for(vae i=0; i<arr.length; i++){
arr[i] =new Array(rows);
}
return arr;
}
export default make2darray
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import { JSDOM } from 'jsdom';
import { readFile } from 'node:fs';
import { resolve } from 'path';
function sleep(ms = 1000) {
return new Promise((l, r) => {
setTimeout(() => {
l();
}, ms);
})
!(function() {
"use strict";
try {
self["workbox:sw:6.1.5"];
} catch (t) {}
const t = {
backgroundSync: "background-sync",
broadcastUpdate: "broadcast-update",
cacheableResponse: "cacheable-response",
core: "core",
@ridheshcybe
ridheshcybe / mixin.ts
Created February 25, 2022 09:47
mixin function in typescript
export const mixin = <a, b>(a: a, b: b): a & b => Object.assign(a, b);
/*!
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width: