Skip to content

Instantly share code, notes, and snippets.

View Canace22's full-sized avatar
🎯
Focusing

Canace Canace22

🎯
Focusing
View GitHub Profile
@breezewish
breezewish / biaori-to-anki.js
Last active March 21, 2024 01:09
将《新标准日语》的音频和单词导入到 Anki https://zhuanlan.zhihu.com/p/58139619
const assert = require("assert").strict;
const child_process = require("child_process");
const path = require("path");
const crypto = require("crypto");
const glob = require("glob");
const fs = require("fs-extra");
const _ = require("lodash");
const sort = require("alphanum-sort");
const Kuroshiro = require("kuroshiro");
const KuromojiAnalyzer = require("kuroshiro-analyzer-kuromoji");
@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);
@iamandrewluca
iamandrewluca / bookmarks-to-notion.js
Last active September 30, 2024 13:07
Export bookmarks to Notion as a Database
(function bookmarksExportToCsv() {
/**
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks)
* 2. Open exported html file again in the browser
* 3. Copy paste this entire file in console, and execute it (hit enter)
* 4. You will be prompted to save a CSV file. Save it.
* 5. Open Notion. Click Import -> CSV
* 6. Select saved CSV file. Wait for import
* 7. You have a new database with all your bookmarks
*/