Skip to content

Instantly share code, notes, and snippets.

View XiaoPanPanKevinPan's full-sized avatar

潘仰祐 XiaoPanPanKevinPan

View GitHub Profile
@XiaoPanPanKevinPan
XiaoPanPanKevinPan / .env-template
Last active July 3, 2025 04:47
Vencord For Firefox (Self-built, Non-official)
EXT_ID=
WEB_EXT_API_KEY=
WEB_EXT_API_SECRET=
OUTPUT_FILENAME=
@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` 動態調整。
Loading
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/[email protected]/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;