A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
# Template: A.html | |
<html> | |
<head></head> | |
<body> | |
{% block hello %} | |
HELLO | |
{% endblock %} | |
</body> | |
</html> |
Unofficial documentation to internal Riot Games APIs for LOL eSports.
this has been rewritten yet again as most workarounds aren't required anymore since wine 3+
example video of the final result: https://www.youtube.com/watch?v=zkqzQoeOGfU
with touchscreen: https://www.youtube.com/watch?v=GcIrlorWmaQ
performance is indistinguishable from windows. there might be a very slight ~25ms sound latency which is easily compensated with +25 local offset
tested on
""" | |
If you are not using this inside a cog, add the event decorator e.g: | |
@bot.event | |
async def on_command_error(ctx, error) | |
For examples of cogs see: | |
https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be | |
For a list of exceptions: | |
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exceptions |
@commands.guild_only() | |
# Command cannot be used in private messages. | |
@commands.dm_only() | |
# Command can only be used in private messages. | |
@commands.is_owner() | |
# Command can only be used by the bot owner. | |
@commands.is_nsfw() |
@-moz-document domain("djangoproject.com") { | |
/* Fork or comment on: https://gist.github.com/batisteo/4f4c1552ba18ffa51a4b8bfb527c9673 */ | |
/* License: http://www.wtfpl.net/txt/copying */ | |
body, | |
[role="main"], | |
.mdzr-boxshadow.container.sidebar-right { | |
background: #222 !important; | |
} |
Note
If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.
In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).
The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server
.
For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample
function run(input, parameters) { | |
const appNames = []; | |
const skipAppNames = []; | |
const verbose = true; | |
const scriptName = "close_notifications_applescript"; | |
const CLEAR_ALL_ACTION = "Clear All"; | |
const CLEAR_ALL_ACTION_TOP = "Clear"; |
import Foundation | |
import SwiftData | |
extension Note { | |
/// 根据给定的筛选条件生成相应的谓词,用于筛选笔记。 | |
public static func predicateFor(_ filter: NotePredicate) -> Predicate<Note>? { | |
var result: Predicate<Note>? | |
switch filter { | |
case let .filterRootNoteByName(name): | |
result = #Predicate<Note> { $0.name == name && $0.parent == nil } |