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 YouTube Disable Normalization | |
// @namespace https://gist.github.com/fa7ad/fa995474f5cb9fe91fb209686881373d | |
// @version 0.2 | |
// @description Allows true 100% volume on youtube videos. | |
// @author Wouter Gerarts | |
// @match https://www.youtube.com/* | |
// @match https://youtube.com/* | |
// @grant none | |
// ==/UserScript== |
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
#!/usr/bin/env ruby | |
require 'watir-webdriver' | |
require 'telegram/bot' | |
Telegram.bots_config = { | |
default: '<Telegram Bot token>', | |
} | |
Telegram.bot.get_updates |
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
https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt |
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
#!/bin/sh | |
# | |
# fyr - 2019 (c) MIT | /bin/sh mpvc | |
# control mpv remotely using JSON ipc | |
# https://mpv.io/manual/master/#json-ipc | |
SOCKET=${MPVC_SOCKET:-/tmp/mpvsocket} | |
MPVOPTIONS="--no-audio-display" | |
usage() { |
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
const data = ['apple', 'banana', 'orange', 'strawberry'] | |
const isNotBerry = fruit => !/berry/i.test(fruit) | |
const fruitsThatArentBerries = data.filter(capitalizeFirst) |
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
function add(a, b) { | |
let c = 0; | |
let n = a.length > b.length ? a : b | |
let m = n === a ? b.padStart(a.length, 0) : a.padStart(b.length, 0) | |
let r = [] | |
for(let i = n.length - 1;i >= 0; i--){ | |
let s = c > 0 ? c-- : 0; | |
s += +n[i] + +m[i] | |
if (s > 9) c++ | |
r.unshift((s%10)+"") |
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
function countryToEmoji (code) { | |
code = code.toUpperCase() | |
const [e1, e2] = [code.codePointAt(0) + 127397, code.codePointAt(1) + 127397] | |
return String.fromCodePoint(e1) + String.fromCodePoint(e2) | |
} |
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
function countryToEmoji (code) { | |
code = code.toUpperCase() | |
const [e1, e2] = [code.codePointAt(0) + 127397, code.codePointAt(1) + 127397] | |
return String.fromCodePoint(e1) + String.fromCodePoint(e2) | |
} |
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
import math | |
from random import randrange | |
from copy import deepcopy | |
class Puzzle: | |
def __init__(self): | |
self.board = [ | |
[1, 2, 3], | |
[4, 5, 6], |
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
#include <iostream> | |
#include <vector> | |
#include <array> | |
#include <algorithm> | |
using namespace std; | |
template <int T> | |
void multMatrix(array<array<int, T>, T> a, array<array<int, T>, T> b, | |
array<array<int, T>, T> &res) { | |
int i, j, k; |
NewerOlder