Skip to content

Instantly share code, notes, and snippets.

View wibus-wee's full-sized avatar
🎯
Focusing

Wibus wibus-wee

🎯
Focusing
View GitHub Profile
@wibus-wee
wibus-wee / git-stats.sh
Created December 1, 2024 03:28
Git Contribution Stats
#!/bin/bash
# Define colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
@wibus-wee
wibus-wee / DownloadWeChatStickers_macOS.js
Last active January 4, 2025 16:52
Download WeChat Stickers in macOS
// How to use: node DownloadWeChatStickers_macOS.js
// Requirements: curl, node
// Reference: https://blog.jogle.top/2022/08/14/macos-wechat-sticker-dump/
const { execSync } = require('child_process');
const { randomUUID } = require('crypto');
const fs = require('fs');
const exec = require('child_process').exec;
const os = require('os');
const argv = process.argv.slice(2);
@wibus-wee
wibus-wee / GitHub.sh
Created November 14, 2022 11:10 — forked from sxzz/GitHub.sh
GitHub CLI scripts
# Get the owner of the repository to which you contributed (Pull Requests)
gh api graphql --paginate -f query='
query($endCursor: String) {
user(login: "username") {
pullRequests(first: 100, after: $endCursor, states: MERGED) {
nodes { repository { owner { login } } }
pageInfo {
hasNextPage
endCursor
@wibus-wee
wibus-wee / ASCII-CAM.js
Created April 13, 2022 10:11
Fork from @iveseenthedatk
/**
* ASCII - CAM
* Fork from @iveseenthedatk
* https: //hellogithub.com/onefile/code/126093303b6b414dbab9d623c957fdd4
**/
(() => {
'use strict';
let interval; // 用于记录定时器的id
let r_layer, g_layer, b_layer; // 用于记录每个颜色通道的canvas
@wibus-wee
wibus-wee / ASCII-CAM.html
Created April 13, 2022 10:11
with ASCII-CAM.js, Fork from @iveseenthedatk
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="author" content="iveseenthedark">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#333333">
<title>A S C I I C A M</title>
<style>#ascii-cam pre,body,html{width:100vw;height:100vh;margin:0}*{box-sizing:border-box}body{overflow:hidden;background-color:#000;color:#eee;font-family:monospace}#logo,#enable-cam-msg{transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.fade{transition:opacity 0.25s ease-in-out}#logo{line-height:1.5}#ascii-cam{opacity:0}#ascii-cam pre{position:absolute;top:0;left:0;overflow:hidden;line-height:0.6;user-select:none;mix-blend-mode:screen;font-size:1.2em;font-size:2vh}@media (max-height:50em){#ascii-cam pre{font-size:1em}}@media (min-height:60em){#ascii-cam pre{font-size:1.2em}}#ascii-cam #r-output{color:red}#ascii-cam #g-output{color:#0f0}#ascii-cam #b-output{color:#00f}#enable-cam-msg{opacity:0;font-size:3rem;background-color:white;color: