Skip to content

Instantly share code, notes, and snippets.

View notwa's full-sized avatar
🚲
bikeshedding

Connor notwa

🚲
bikeshedding
View GitHub Profile
@lbmaian
lbmaian / youtube-hide-livechat.user.js
Last active April 17, 2024 11:41
YouTube - Hide Live Chat By Default
// ==UserScript==
// @name YouTube - Hide Live Chat By Default
// @namespace https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c
// @downloadURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @updateURL https://gist.github.com/lbmaian/94824cef728917a53d3c6e6ea885469c/raw/youtube-hide-livechat.user.js
// @version 0.14
// @description Hide live chat by default on live streams
// @author lbmaian
// @match https://www.youtube.com/*
// @exclude https://www.youtube.com/embed/*
@Vivelin
Vivelin / YouTube audio compressor.user.js
Last active June 9, 2022 06:01
YouTube audio compressor
// ==UserScript==
// @name YouTube audio compressor
// @namespace https://vivelin.net/
// @version 0.4
// @description Adds an audio compressor option to YouTube videos.
// @author Vivelin
// @match https://*.youtube.com/*
// @updateURL https://gist.github.com/Vivelin/2321d17bf26016ceaed87d6d1a281881/raw/YouTube%2520audio%2520compressor.user.js
// @run-at document-idle
// @grant none
@yashsavani
yashsavani / haskellFunctions.hs
Last active August 12, 2022 15:07
List of Useful Haskell Functions and their Python counterparts
-- General purpose Haskell functions to remember (Note I have ommited the typeclasses here for simplicity)
-- Bryan O'Sullivan, Don Stewart, and John Goerzen. Real World Haskell, O'Reilly Media, 2008
-- Length of list
-- O(n)
-- ✅(empty list) -> total / safe
-- Python: len(list)
length :: [a] -> Int
-- Tells if a list is empty
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def expect_cossim(n, approx=True):
"""
returns gamma(n / 2) / gamma((n + 1) / 2) / sqrt(pi) for positive integers.
"""
assert n > 0
if approx:
# abs(error) < 1e-8
if n >= 128000:
return np.reciprocal(np.sqrt(np.pi / 2 * n + 1))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active June 23, 2024 21:35
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@dd86k
dd86k / readme.md
Last active May 16, 2017 17:12
Some languages and their first appearance year
Language First appeared
Assembly 1949
Speedcoding 1953
Fortran 1957
Lisp 1958
ALGOL 58 1958
COBOL 1959
ALGOL 60 1960
CPL 1963
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 26, 2024 17:02
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@xvitaly
xvitaly / remove_crw.cmd
Last active March 16, 2024 16:12
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)