Skip to content

Instantly share code, notes, and snippets.

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

Hyperreal Haberdasher surajsharma

🎫
do not fold, spindle, or mutilate
View GitHub Profile
@chloechantelle
chloechantelle / yt.css
Created March 29, 2018 06:37
YouTube CSS
/* Required: http://www.fontsquirrel.com/fonts/open-sans */
@-moz-document domain("youtube.com")
{
:root
{
--bg: #1d1e2a !important;
/* main */
--bg2: #1a1b26 !important;
/* alt */
--bg3: #14151F !important;

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@laurenfazah
laurenfazah / authentication_with_express_postgres.md
Last active November 8, 2022 01:51
Authentication with an Express API and Postgres

Authentication with an Express API and Postgres

Setting Up

Let's make sure our Express app has the required base modules:

# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon
@liondancer
liondancer / App.js
Created August 15, 2017 09:45 — forked from crittermike/App.js
Using Google API (gapi) with React
/* global gapi */
const API_KEY = 'YOURAPIKEYHERE';
import React, { Component } from 'react';
class App extends Component {
loadYoutubeApi() {
const script = document.createElement("script");
@n1ru4l
n1ru4l / index.js
Created August 7, 2017 10:47
Fetch blob and convert to base64
export const fetchAsBlob = url => fetch(url)
.then(response => response.blob());
export const convertBlobToBase64 = blob => new Promise((resolve, reject) => {
const reader = new FileReader;
reader.onerror = reject;
reader.onload = () => {
resolve(reader.result);
};
reader.readAsDataURL(blob);
@dylants
dylants / proton-mail.css
Last active April 28, 2022 20:39
Dark Theme for Proton Mail
/* ProtonMail */
/* CLASSIC THEME */
body { font-size: 14px }
body,
.pm_opensans {
font-family: 'Lucida Grande', Verdana, Arial, sans-serif
}
@robertpeteuil
robertpeteuil / GitHub Language Colors in CSS and JSON
Last active March 14, 2024 14:49
GitHub Language Colors in CSS and JSON
This Gist contains the GitHub Language colors in CSS and JSON formats in seperate files.
@dfontana
dfontana / CmderZSH.md
Last active March 12, 2023 21:45
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
@vbsessa
vbsessa / chrome-devtools.md
Last active May 2, 2024 23:25
How to customize Chrome devtools fonts
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow extensions to load custom stylesheets.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <html>
    <head></head>
    <body><script src="devtools.js"></script></body>
@RainmanNoodles
RainmanNoodles / hs-fuzzy-window-picker.lua
Last active June 8, 2023 15:49
Hammerspoon Fuzzy Window Switcher
-- Fuzzy Window Switcher
_fuzzyChoices = nil
_fuzzyChooser = nil
_fuzzyLastWindow = nil
function fuzzyQuery(s, m)
s_index = 1
m_index = 1
match_start = nil