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 python3 | |
# -*- coding: utf-8 -*- | |
from pathlib import Path | |
import matplotlib.pyplot as plt | |
from collections import defaultdict | |
from utils import read_json | |
import argparse | |
exclude_keys = [ |
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 | |
# -*- coding: utf-8 -*- | |
import json | |
from base64 import b64decode | |
import dash_bootstrap_components as dbc | |
import numpy as np | |
from dash import Dash, Input, Output, State, callback, dash_table, dcc, html | |
from dash.exceptions import PreventUpdate |
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 python3 | |
# -*- coding: utf-8 -*- | |
import json | |
import gradio as gr | |
def read_jsonl(fname): | |
with open(fname) as f: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python3 | |
# -*- coding: utf-8 -*- | |
from keras.layers import (concatenate, | |
Conv2D, | |
Cropping2D, | |
Input, | |
MaxPooling2D, | |
UpSampling2D, | |
) |
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 bash | |
set -e | |
WPDIR = $1 | |
WAITTIME = $2 | |
while true; do | |
feh --bg-scale --no-xinerama $(find "$WPDIR" -type f | shuf -n1) | |
sleep $WAITTIME | |
done |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
word = sys.argv[1] | |
scores = [ord(letter) - 96 for letter in word.lower() if letter.isalpha()] | |
print(f'{word} = {" + ".join(map(str, scores))} = {sum(scores)}%') |
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
bind "kp_ins" "buy ak47; buy m4a1;" | |
bind "kp_del" "buy deagle;" | |
bind "kp_enter" "buy vesthelm;" | |
bind "kp_plus" "buy vest;" | |
bind "kp_end" "buy flashbang" | |
bind "kp_downarrow" "buy smokegrenade;" | |
bind "kp_pgdn" "buy molotov; buy incgrenade;" | |
bind "kp_leftarrow" "buy hegrenade;" | |
bind "kp_5" "buy defuser;" | |
bind "kp_rightarrow" "buy awp;" |