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
| // ==UserScript== | |
| // @name Civitai Showcase All | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-10-15 | |
| // @description Showcase all items in Civitai user page | |
| // @author SLAPaper | |
| // @match https://civitai.com/user/* | |
| // @match https://civitai.green/user/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=civitai.com | |
| // @grant none |
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 argparse | |
| import os | |
| import torch | |
| import numpy as np | |
| from safetensors import safe_open | |
| from safetensors.torch import save_file | |
| from typing import Dict, Tuple | |
| # --- Configuration --- | |
| # Keys containing these substrings will not be quantized if --t5xxl is set |
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
| // ==UserScript== | |
| // @name A1111 WebUI fix lobe theme | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description fix Lobe theme broken webui v1.6.0 | |
| // @author SLAPaper, primeinc | |
| // @match http*://localhost:7860/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.localhost | |
| // @grant none | |
| // ==/UserScript== |
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
| name: Basic API call (TypeScript) | |
| description: Performs a basic Excel API call using TypeScript. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#run").click(() => tryCatch(run)); | |
| async function run() { | |
| await Excel.run(async (context) => { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN"> | |
| <info> | |
| <title>Chinese Std GB/T 7714-2005 (numeric, auto languange)</title> | |
| <id>chinese-gb7714-2005-autolang</id> | |
| <link href="https://gist.github.com/SLAPaper/19497b1cf37bc7c8bb4af9969fe69e9a" rel="self"/> | |
| <link href="http://gradschool.ustc.edu.cn/ylb/material/xw/wdxz/19.pdf" rel="documentation"/> | |
| <author> | |
| <name>SLAPaper</name> | |
| <email>slapaper@pku.edu.cn</email> |
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
| # https://gist.github.com/SLAPaper/9ef3699e5f76dc80c00bd2d405eef995 | |
| from datetime import datetime, timedelta | |
| from functools import wraps | |
| class throttle: | |
| """ | |
| Decorator that prevents a function from being called more than once every | |
| time period. |
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)] | |
| [string[]]$python_name = ('python'), | |
| [string[]]$Exclude = (''), | |
| [bool]$NoDeps = $false | |
| ) | |
| foreach ($python in $python_name) { |
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
| // ==UserScript== | |
| // @name Save to Zotero | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Make Zotero's boorkmarklet a user script (click the button 'Zotero!' on bottom right) | |
| // @author SLAPaper | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |
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
| // ==UserScript== | |
| // @name Juejin max-width setter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description make the sidebar no longer overlaps the article | |
| // @author You | |
| // @match https://juejin.im/post/* | |
| // @grant none | |
| // @license MIT | |
| // ==/UserScript== |
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
| '''Compares self-normalizing MLPs with regular MLPs. | |
| Compares the performance of a simple MLP using two | |
| different activation functions: RELU and SELU | |
| on the Reuters newswire topic classification task. | |
| # Reference: | |
| Klambauer, G., Unterthiner, T., Mayr, A., & Hochreiter, S. (2017). | |
| Self-Normalizing Neural Networks. arXiv preprint arXiv:1706.02515. | |
| https://arxiv.org/abs/1706.02515 |
NewerOlder