Skip to content

Instantly share code, notes, and snippets.

View Canace22's full-sized avatar
🎯
Focusing

Canace Canace22

🎯
Focusing
View GitHub Profile
@Canace22
Canace22 / TriggerDropdown.vue
Created September 3, 2023 05:34
element-plus popover trigger virtual trigger example
<template>
<el-popover
ref="popoverRef"
:virtual-ref="triggerRef"
trigger="click"
virtual-triggering
:visible="visible"
popper-class="popper-class"
>
<slot></slot>
@Canace22
Canace22 / createPseudonym.js
Created July 18, 2020 02:23
createPseudonym
const fs = require('fs');
function createPseudonym (params) {
let start = 12354;
const arr = [];
for (let index = 0; index < 185; index++) {
const word = String.fromCharCode(start++);
arr.push(word);
}
fs.writeFileSync('./pseudonym.txt', arr);
@Canace22
Canace22 / createKanji.js
Last active July 18, 2020 02:10
createKanji
const fs = require('fs')
function createKanji() {
const arr = [];
for (let i = 0x4e00; i < 0x9faf; i++) {
arr.push(String.fromCharCode(i));
}
const sortedChars = arr.sort(Intl.Collator('ja-JP').compare);
const level1Kanji = sortedChars.slice(0, 2965);
const level2Kanji = sortedChars.slice(2965, 6355);