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
$(eval r=$(urlfetch json https://keepthescore.com/api/xckjgssgfkzlr/board/); s = r.players.filter(p => p.name.toLowerCase().includes(`$(1)`.toLowerCase()))[0]; `${s.name} currently have ${s.score} points.`) |
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
$(eval r=$(urlfetch json https://keepthescore.com/api/xckjgssgfkzlr/board/); s = ''; c = 0; for (p of r.players) {if (c >= 5) break; c++; s += `${p.name} (${p.score}) — `}; s) |
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 python | |
import requests | |
import time | |
import sys | |
import csv | |
from itertools import permutations | |
from flatten_dict import flatten | |
api_key = 'API-KEY' |
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 python | |
# Make sure to run w3w.py <words_file> first to generate a JSON file. | |
from flatten_dict import flatten | |
import json | |
import csv | |
def strip_first_key(nested_dict): | |
out = [] |
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
@echo off | |
net session >nul 2>&1 | |
if %errorLevel% neq 0 ( | |
echo ERROR: Run again with admin privileges. | |
exit 1 | |
) | |
netsh interface ipv4 set subinterface "NordLynx" mtu=1300 store=persistent |
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
########## | |
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: v3.10, 2020-07-15 | |
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
########## | |
### Require administrator privileges ### | |
RequireAdmin |
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 CODE = ` | |
const origFetch = window.fetch; | |
window.fetch = (url, init, ...args) => { | |
try { | |
if (typeof url === "string") { | |
if (url.includes("/access_token")) { | |
url = url.replace("player_type=site", "player_type=embed"); | |
} else if ( | |
url.includes("/gql") && | |
init && |
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() { | |
var size = 'YOUR SHOE SIZE HERE'; | |
var subdomain = 'shop.', | |
path = '/cart/%ID%:%QUANTITY%'; | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState == 4 && xhr.status == 200) { | |
var parsed = JSON.parse(xhr.responseText); |
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
FFmpegSource2("minah.avi", vtrack=-1, atrack=-2, cache=True, cachefile="", fpsnum=-1, fpsden=1, threads=-1, timecodes="", seekmode=1, overwrite=False, width=-1, height=-1, resizer="BICUBIC", colorspace="", rffmode=0, adjustdelay=-1, utf8=False, varprefix="") | |
Trim(79120, 79200) | |
ConvertToRGB24() | |
Animate(0, 80, "crop", 870,350,150,320, 770,350,150,320) | |
ConvertToYV12() | |
super = MSuper(pel=2) | |
backward_vec = MAnalyse(super, overlap=4, isb = true, search=3) | |
forward_vec = MAnalyse(super, overlap=4, isb = false, search=3) | |
MFlowFps(super, backward_vec, forward_vec, num=2*FramerateNumerator(last), den=FramerateDenominator(last)) |
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 sys | |
import csv | |
import time | |
def send_results(scoreboard): | |
import praw | |
message = """ | |
Hi %s, |
NewerOlder