Skip to content

Instantly share code, notes, and snippets.

View rikumi's full-sized avatar
🐠
绝赞摸鱼中

Rikumi rikumi

🐠
绝赞摸鱼中
View GitHub Profile
@rikumi
rikumi / zeroomega-theme-tencent-dark.css
Created August 9, 2024 04:32
zeroomega-theme-tencent-dark
/* based on Nord theme by arcticicestudio */
:root {
--defaultBackground: #2d2d2d;
--lighterBackground: #434343;
--selectionBackground: #434343;
--highlightBackground: #434343;
--darkForeground: #ffffff;
--defaultForeground: #ffffff;
--lightForeground: #ffffff;
@rikumi
rikumi / ziyouroom.ts
Created June 4, 2024 16:26
某连锁租房平台 App API 请求加解密算法
import Crypto from 'crypto-js';
const key = Crypto.enc.Utf8.parse('vpRZ1kmU');
const iv = Crypto.enc.Utf8.parse('EbpU4WtY');
export const encode = (request: string) => {
return Crypto.DES.encrypt(request, key, {
iv,
mode: Crypto.mode.CBC,
padding: Crypto.pad.Pkcs7,
@rikumi
rikumi / zed.json
Created March 10, 2024 11:22
zed.json
{
"theme": "Fleet Dark",
"ui_font_size": 16,
"buffer_font_size": 15,
"buffer_font_family": "Zed Mono",
"ui_font_family": "PT Sans Caption",
"wrap_guides": [
120
],
"gutter": {
@rikumi
rikumi / bsl-light-overlay.md
Last active May 28, 2023 10:46
Light Overlay for BSL Shaders

This is a simple light overlay patch for BSL Shaders ported from Complementary Shaders.

View Screenshot

Usage

  1. Unzip BSL Shaders
  2. Copy the file showLightLevels.glsl to shaders/lib/util/
  3. Open shaders/program/gbuffers_terrain.glsl, add following line before GetLighting(...) and save:
@rikumi
rikumi / keybase.md
Created November 1, 2022 06:28
keybase.md

Keybase proof

I hereby claim:

  • I am rikumi on github.
  • I am rikumi (https://keybase.io/rikumi) on keybase.
  • I have a public key ASAaBR9_jBoYTHRy-yvCdQBrN2DWIKk48r68n8DjZVAcygo

To claim this, I am signing this object:

@rikumi
rikumi / Boundary.tsx
Last active December 28, 2021 03:07
Remax Boundary
import { createPortal } from '@remax/runtime';
import React, { useEffect, useState } from 'react';
import NativeBoundary from './native-boundary';
const Boundary: React.FC = (props) => {
const { children } = props;
const [container, setContainer] = useState<any>();
useEffect(() => container?.applyUpdate());
return <>
@rikumi
rikumi / jest-moebius.js
Created November 9, 2020 08:14
Jest Moebius
/**
* 生成莫比乌斯对象
* - 生成的对象支持调用,支持属性存取,支持数学运算,支持 await
* - 生成的对象是一个 jest.fn(),可以正常取 mock,可以正常 expect
* - 可以通过传入对象,自定义一些属性的值/实现
* - 从莫比乌斯对象中取出和返回的值默认都是新的莫比乌斯对象,重复取出的同名对象相等
* @param {any} extensions
* @return {any}
*/
const createMoebius = (extensions = {}) => {
@rikumi
rikumi / iconsur.sh
Last active October 24, 2023 06:46
My personal iconsur setup
# See https://github.com/rikumi/iconsur
yarn global add iconsur
sudo iconsur set /Applications/Android\ File\ Transfer.app -k Airdroid
sudo iconsur set /Applications/Android\ Studio.app/ -l -c 7a5 -s 0.8
sudo iconsur set /Applications/DaisyDisk.app/ -l
sudo iconsur set /Applications/Decompressor.app/ -l
sudo iconsur set /Applications/Discord.app/
sudo iconsur set /Applications/Google\ Chrome.app/
sudo iconsur set /Applications/IINA.app/ -l -c 161d22
@rikumi
rikumi / Wallpaper.html
Last active July 15, 2018 05:49
iOS11 简易桌面歌词 / 请先安装 XenHTML、XenInfo / 文件路径 /var/mobile/Library/SBHTML/Rikumi/Wallpaper.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=375, height=667, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<style>
:root {
font-family: 'PingFang SC';
color: #fff;
text-shadow: 0 1px 5px rgba(0, 0, 0, .2);
@rikumi
rikumi / scraper.js
Last active January 10, 2018 01:27
微机原理与接口技术 答案抓取器
/*
微机原理与接口技术 答案抓取器
用法:
1. 使用 Chrome 浏览器;
2. 登录进入作业列表页面,要求所有作业都为已完成、且可查看答案的状态;
3. 地址栏输入地址进入框架内部:223.3.65.249/student/Home_Management/Show_All_Homework_CN.aspx;
4. 打开 F12 控制台,复制粘贴执行下列代码,待显示结果后,保存页面为 PDF。
*/