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
// ==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 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 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 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 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 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 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 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 |
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
// ==UserScript== | |
// @name Steam cart sorter | |
// @name:ZH-CN Steam 购物车自动排序 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.8 | |
// @description sort the Steam cart by price | |
// @description:ZH-CN 对 Steam 购物车中的物品按照价格排序 | |
// @author SLAPaper | |
// @match http://store.steampowered.com/cart/* | |
// @match https://store.steampowered.com/cart/* |
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
// ==UserScript== | |
// @name BundleStar_GetKey&Gift | |
// @Namespace http://tampermonkey.net/ | |
// @version 1.03 | |
// @description shows how to use babel compiler | |
// @icon https://cdn.bundlestars.com/production/brand/logo.png | |
// @author KamiXuan | |
// @match https://www.bundlestars.com/en/orders* | |
// ==/UserScript== |
NewerOlder