Skip to content

Instantly share code, notes, and snippets.

View ridheshcybe's full-sized avatar

ridheshcybe ridheshcybe

View GitHub Profile
require("fs").readdirSync("./").filter((e => decodeURIComponent(e) !== e)).forEach(e => require('fs').renameSync(e, decodeURIComponent(e)))
@import url(http://fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic);
/* ----------------------------------------------------
SKELETON
------------------------------------------------------- */
body {
background: #fff;
color: #777777;
font-size: 14px;
line-height: 31px;
letter-spacing: 0;
/*!
* Bootstrap v3.3.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
@font-face {
font-family: 'Stroke-Gap-Icons';
src: url('../fonts/Stroke-Gap-Icons.eot');
src: url('../fonts/Stroke-Gap-Icons.svg');
src: url('../fonts/Stroke-Gap-Icons.ttf');
src: url('../fonts/Stroke-Gap-Icons.woff');
}
@font-face {
font-family: 'Stroke-Gap-Icons';
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggi/X0AAAC8AAAAYGNtYXAaVc0eAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5ZgTOI9oAAAFwAACpuGhlYWQAUlk+AACrKAAAADZoaGVhA+QCqQAAq2AAAAAkaG10eJEHFCcAAKuEAAADMGxvY2GAlFTgAACutAAAAZptYXhwAOEBAAAAsFAAAAAgbmFtZZxmbAoAALBwAAABinBvc3QAAwAAAACx/AAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADmxwHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIObH//3//wAAAAAAIOYA//3//wAB/+MaBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAABAAA/+ACAAHgABQAKQA7AEEAAAUiLgI1ND4CMzIeAhUUDgIjESIOAhUUHgIzMj4CNTQuAiMTNyc3JwcnNxc3FwcXBz8BFwcHJzcnNxcBADVdRigoRl01NV1G
/*!
* 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:
@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);
!(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",
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);
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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