Skip to content

Instantly share code, notes, and snippets.

@Misaka-0x447f
Misaka-0x447f / eve-ratting-upgrading.md
Created October 22, 2024 09:26
eve 远洋捕捞升级研究 III

此处远洋捕捞指的是在自家超旗伞下(或者不在)进行各种刷怪的行为。

挂机式远洋捕捞的方案

挂机式指的是捕捞过程中不需要操作,或者极少需要进行操作的捕捞方法。目前已知可以用于挂机式远洋捕捞的方法包括:

  • 战列/T2战列自锁导弹
  • yst 无人机

远洋捕捞通用软件简介

  • 预警软件 rift 通过 ESI 及本地日志收集预警频道信息,并发出声音警报。 https://riftforeve.online/
  • 本地频道突出显示 OnTopReplica
@Misaka-0x447f
Misaka-0x447f / eve-overview-upgrading.md
Last active October 22, 2024 09:16
eve 总览升级研究 V

如何使某类飞行员图标闪烁,例如使中立图标闪烁

简而言之

修改之前记得备份你现在的总览!
将其导出为文件,然后直接使用 visual studio code 修改文件。
在文件里搜索 stateBlinks 字段,在下面按照相同格式加上下面给出的代码。此处以中立声望调整为闪烁为例:

- - flag_17
  - true

注意如果对应的 flag 值已经存在,则要去修改对应的 flag 值为 true 而不是添加。

@Misaka-0x447f
Misaka-0x447f / ESP32-2432-CYD-Download.md
Last active April 4, 2024 15:31
ESP32-1732/2432/3248/4827/4848/8048/2424 Cheap Yellow Display Demo/Spec/Manual Download Link

Manufactor provided infomations

Download: http://pan.jczn1688.com/1/ESP32%20module Manufactor: 深圳市晶彩智能有限公司 Shenzhen Jingcai Intelligent Co., Ltd

About ending alphabet of model

N: Without touch; R: Resistive touch; C: Capacitive touch;

Overview

The following information was manually extracted from documents above. Contribution is welcomed.

// TL/DR ⬇️ source: https://fettblog.eu/typescript-react-generic-forward-refs/
const ClickableList = React.forwardRef(ClickableListInner) as <T>(
props: ClickableListProps<T> & { ref?: React.ForwardedRef<HTMLUListElement> }
) => ReturnType<typeof ClickableListInner>;
@Misaka-0x447f
Misaka-0x447f / .zshrc
Last active September 26, 2024 17:26
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@Misaka-0x447f
Misaka-0x447f / extended-get.js
Created May 18, 2023 09:27
面试记录>Extended get method
const getx = (input, expression) => {
if (!expression.length) return input
expression = expression.split('.')
const arrayMatch = expression[0].match(/(?<propName>\w+)\[(?<number>\d+)]/)
const functionMatch = expression[0].match(/(?<propName>\w+)\((?<arguments>.*)\)/)
if (arrayMatch) {
return getx(input[arrayMatch.groups.propName][arrayMatch.groups.number], expression.slice(1).join('.'))
}
if (functionMatch) {
const argString = functionMatch.groups.arguments.split(',')
@Misaka-0x447f
Misaka-0x447f / 面试记录>链表大整数加法.ts
Created April 6, 2023 05:02
面试记录>链表大整数加法.ts
interface BigIntLinkList {
next: BigIntLinkList | null;
value: number
}
const reverseLinkListInPlace = (origin: BigIntLinkList) => {
if (!origin.next) return origin
let newOrigin = {
next: null,
value: origin.value
import { first, last, uniqueId } from 'lodash';
import { useEffect, useState } from 'react';
import { useMixedState } from './hooks';
let startAt = 1000;
const inUseList: { index: number; key: string; comment?: string }[] = [];
export const setStartingZIndex = (index: number) => (startAt = index);
/**
* @author [email protected]
@Misaka-0x447f
Misaka-0x447f / useHybridState.ts
Last active May 25, 2024 12:30
useHybridState.ts
import { isFunction } from 'lodash-es'
import {
useCallback,
useRef,
useState,
useMemo,
Dispatch,
SetStateAction,
DependencyList,
useEffect
// recursive magic
export type Tail<T extends any[]> = T['length'] extends 0
? never
: ((...b: T) => void) extends (a: any, ...b: infer I) => void
? I
: [];
// Type of { ...L, ...R }
// Properties in L that don't exist in R plus R
type _TypeAssignWorker<L, R> = Pick<L, Exclude<keyof L, keyof R>> & R;