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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
/* | |
* This style will hide the tab bar. For MacOS Big Sur | |
* | |
* Contributor(s): Isaac-Newt, Ivan0xFF, millerdev, AMomchilov | |
*/ |
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
[ | |
{ | |
"id": 1, | |
"name": "ustc_ipv4", | |
"server": "http://test.ustc.edu.cn/backend/", | |
"dlURL": "garbage.php", | |
"ulURL": "empty.php", | |
"pingURL": "empty.php", | |
"getIpURL": "getIP.php" | |
}, |
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 cv2 | |
import json | |
import math | |
import random | |
from io import BytesIO | |
import numpy as np | |
import os | |
import concurrent.futures | |
import argparse | |
import pandas as pd |
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
from diffusers import DiffusionPipeline | |
from transformers import CLIPTokenizer | |
import torch | |
import os | |
tokenizer = CLIPTokenizer.from_pretrained( | |
"stabilityai/stable-diffusion-xl-base-1.0", subfolder="tokenizer", device_map="auto" | |
) | |
# load both base & refiner | |
base = DiffusionPipeline.from_pretrained( |
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 json | |
from collections import Counter | |
SAS = "" # e.g sp=r&st=... | |
with open("canva.benchmark.json", "r") as f: | |
data = json.load(f) | |
print(""" | |
<html> |
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/bash | |
md_filename="vis.md" | |
cnt=0 | |
echo "| | | | |" >> $md_filename | |
echo "|-|-|-|-|" >> $md_filename | |
for file in $(ls | grep png) | |
do | |
printf "| ![$file](./$file) $file" >> $md_filename; |
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 grequests | |
import requests | |
from tqdm import tqdm | |
from urllib3 import Retry | |
import random | |
from parse import parse | |
class ProgressSession(): | |
def __init__(self, urls): | |
self.pbar = tqdm(total = len(urls), desc = 'Making async requests') |
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 | |
# View EXIF | |
exiftool -all:all <filename> | |
exiftool -xmp:all <filename> # view information in embedded xmp | |
# Move file according to capture date | |
exiftool -if '$datetimeoriginal ge "2023:03:17 00:00:00"' -'FileName<filename' -o <outdir> | |
# Export ratings to sidecar xmp |