Skip to content

Instantly share code, notes, and snippets.

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

Rikumi rikumi

🐠
绝赞摸鱼中
View GitHub Profile
@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。
*/
@rikumi
rikumi / herald-monitor.coffee
Created January 3, 2018 09:03
Slacklet for Monitoring Herald API
monitoring = true
main = ->
send '监控程序已上线'
loop
if not monitoring
send '监控程序已退出'
break
downCount = 0
@rikumi
rikumi / seulogin.js
Created September 14, 2017 01:15
seu-wlan 自动登录/轮询登录脚本
const axios = require('axios');
const read = require('readline-sync');
const program = require('commander');
program
.version('1.0.0')
.option('-u, --username [username]', '设置用户名')
.option('-p, --password [password]', '设置密码')
.option('-d, --daemon [seconds]', '每隔数秒轮询网络状态,一旦退出自动重新登录', '0')
.parse(process.argv);