Skip to content

Instantly share code, notes, and snippets.

View liz3's full-sized avatar
🌐
Beauty is a knife, I've been holding by the blade

Liz liz3

🌐
Beauty is a knife, I've been holding by the blade
View GitHub Profile
@liz3
liz3 / bug.md
Created October 25, 2024 00:29
Electron fcitx5 long press bug

Before reproducing

start fcitx 5(fcitx5 -d) and the config tool(fcitx5-configtool), from there click the Preferences button for the active language: image

then set the Choose key modifier to None and enable Type special characters with long press: image

You might need to add this flag to ~/.config/electron-flags.conf:

@liz3
liz3 / 25.cpp
Created December 26, 2023 01:52
AOC 2023 Day 25
#include "common.h"
struct Node {
std::string name;
std::unordered_map<std::string, bool> edges;
};
struct Edge {
std::string first, second, origFirst, origSecond;
};
@liz3
liz3 / Test.Kt
Created December 15, 2017 21:19
package de.durchrasten.displays.display
import net.minecraft.server.v1_8_R3.*
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer
import org.bukkit.entity.Player
class WrappedScoreboard(var title:String) {
private val scoreboard = Scoreboard()