Skip to content

Instantly share code, notes, and snippets.

View XiaoPanPanKevinPan's full-sized avatar

潘仰祐 Kevin Pan XiaoPanPanKevinPan

View GitHub Profile
@XiaoPanPanKevinPan
XiaoPanPanKevinPan / Readme.md
Last active April 27, 2024 09:05
Vencord For Firefox (Self-compiled, Non-official)

Obviously, Vencord has stopped uploading their extension to addons.mozilla.org due to the long-waiting review, and they also decided not to go self-hosting. But I need to use that, therefore I decided to try build the addon.

Some packages are required to be installed in advance:

Here's what I've done:

  1. Clone the repo with git clone https://github.com/Vendicated/Vencord (let's call the directory of your clone $ROOT, which should be ./Vencord relative to your current directory.)
  2. cd $ROOT (i.e. cd ./Vencord)
@XiaoPanPanKevinPan
XiaoPanPanKevinPan / basement.svg
Last active April 3, 2024 15:23
Framing images with SVG where geometries are changed with `vue.js`. 將照片透過 SVG 錶框,其中的長寬參數以 `vue.js` 動態調整。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<title>期末報告</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css" />
<script>
let cwbToken = ""; // 氣象局 API 之權杖須自行取得
@XiaoPanPanKevinPan
XiaoPanPanKevinPan / AnsiTestOnWindows.c
Created November 20, 2021 13:44
C 語言用 ANSI 轉義序列在 Windows 上移動光標
#include <stdio.h>
#include <wchar.h>
#include <windows.h>
void enableAnsiSqeuence(){
HANDLE hStdin;
hStdin = GetStdHandle(STD_INPUT_HANDLE);
/* 參考: https://docs.microsoft.com/en-us/windows/console/setconsolemode */
const int ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200;