Skip to content

Instantly share code, notes, and snippets.

import sys
import os
import subprocess
DEBUG_MODE = False
def debug_log(message):
if DEBUG_MODE:
print(f"DEBUG: {message}")
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
### little edit from https://github.com/cmus/cmus/blob/master/data/night.theme
### replace them from `set color_cmdline_attr` to `set color_win_title_fg=` in `~/.config/cmus/autosave`
### {{{
set color_cmdline_bg=145
set color_cmdline_fg=black
set color_error=lightred
set color_info=lightgoldenrodyellow
set color_separator=240
set color_statusline_bg=145
set color_statusline_fg=black
# Modify from https://github.com/CoderCharmander/starfetch/blob/master/convert.py
# By GPT-3.5🧙, see https://shareg.pt/a2IZp52
# Run `python convert.py file.json` to convert `file.json` to `cvt_file.json`.
# Then run `prettier --write --paser json cvt_file.json` to format it.
"""
Converts constellations from the format in Haruno19/starfetch to the format
used in this Rust rewrite of the program.
"""
import sys
# A script for using https://github.com/PrithivirajDamodaran/Gramformer
# Write by GPT-3.5🧙, scillidan🤡
# see https://shareg.pt/9aQy8UZ
import sys
import warnings
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from gramformer import Gramformer
curl -k https://raw.githubusercontent.com/scillidan/WALLPAP-ENG-resource/main/table.md ^
| sd "\[\d{10}\]\(" "" ^
| sd "(\)\|\S+subsc)" "|![](//img.shields.io/steam/subsc" ^
| mdtable2csv ^
| sd "//steamc" "https://steamc" ^
| xsv select source,version,urlid ^
| csview
/* global api */
class encn_Collins_noen {
constructor(options) {
this.options = options;
this.maxexample = 2;
this.word = '';
}
async displayName() {
let locale = await api.locale();
var table = [
{:""},
{:""},
];
var table = new Tabulator("#tabulator_", {
headerVisible:false,
data:table,
dataTree:true,
dataTreeFilter:false,
var minMaxFilterEditor = function (cell, onRendered, success, cancel, editorParams) {
var end;
var container = document.createElement("span");
var start = document.createElement("input");
start.setAttribute("type", "number");
start.setAttribute("placeholder", "Min");
start.setAttribute("min", 0);
start.setAttribute("max", 100);
start.style.padding = "4px";
start.style.width = "50%";