This file contains hidden or 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
""" | |
Time to execute: 0.002147326900568627 seconds | |
Lines of code: 31 | |
""" | |
from collections import defaultdict | |
with open('input.txt') as f: | |
log = f.read().splitlines() | |
log.sort(key=lambda e: e[:17]) |
This file contains hidden or 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/bash | |
# | |
# Uses ffmpeg to convert ShadowPlay recordings for uploading to Discord. | |
# Usage: ./8mib.sh <video_path> [seek_eof] | |
if [ ! -f "$1" ]; then | |
(>&2 echo "The video file could not be found.") | |
exit | |
fi |
This file contains hidden or 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
async def on_command_error( | |
self, | |
ctx: commands.Context, | |
error: commands.CommandError | |
): | |
# Skips errors that were already handled locally. | |
if getattr(ctx, 'handled', False): | |
return | |
if isinstance(error, commands.NoPrivateMessage): |
This file contains hidden or 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
param( | |
[Parameter(Position=0, mandatory=$true)] | |
# [ValidateScript({$regions.ContainsKey($_)})] | |
[ValidateSet("NA", "LA1")] | |
[string]$Region, | |
[Parameter(Position=1, mandatory=$true)] | |
[ValidateScript({Test-Path $_})] | |
[string]$GameDir | |
) |
This file contains hidden or 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 shutil | |
import subprocess | |
from pathlib import Path | |
from tempfile import NamedTemporaryFile, TemporaryDirectory | |
import requests | |
UNRAR_PATH = r"C:\Program Files\WinRAR\UnRAR.exe" | |
This file contains hidden or 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 bash | |
# | |
# Convert SVGs into PNGs using Inkscape. | |
# | |
# PNGs are saved to the same location as their corresponding SVG files. | |
# If sizes are specified, they are appended to the names of the PNGs. | |
# | |
# The env var INKSCAPE_BIN can be set to configure the path to Inkscape. | |
# | |
# Usage: ./export_svgs.sh <input_path> [size [size]...] |
This file contains hidden or 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
.fandom-sticky-header { | |
/* Make the thin header always visible. */ | |
transform: translateY(100%) !important; | |
/* Remove space left by hiding global navigation. */ | |
left: 0px !important; | |
} | |
/* Make space for the sticky header including the original page margin. */ | |
.page { |
This file contains hidden or 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
[buildPlans.iosevka] | |
family = "Iosevka" | |
spacing = "normal" | |
serifs = "sans" | |
no-cv-ss = true | |
export-glyph-names = false | |
[buildPlans.iosevka.variants.design] | |
capital-a = "straight-serifless" | |
capital-b = "standard-serifless" |
OlderNewer