Skip to content

Instantly share code, notes, and snippets.

View kuzen's full-sized avatar
🏠
student

kuzen

🏠
student
View GitHub Profile
@kuzen
kuzen / friends.js
Created February 9, 2022 14:14
hexo
const fs = require('fs');
const yaml = require('hexo-component-inferno/lib/util/yaml');
module.exports = hexo => {
return function generateFriends(locals) {
const configs = yaml.parse(fs.readFileSync('./_friends.yml', 'utf8'));
const friends = configs.friends;
if (!friends || !friends.list) {
return;
}
@kuzen
kuzen / debugvis.py
Last active December 3, 2021 09:11
lldbscripts
# debugvis.py
# use: 1. for conditional breakpoint:
# /py plot_cvimage($mat)
# 2. for debug console
# imshow mat
import io
import lldb
import debugger
import base64
@kuzen
kuzen / markdown.json
Last active November 12, 2021 09:04
snippets
{
"Generate Hexo blog header": {
"prefix": "header",
"body": [
"---",
"title: ${1:title}",
"date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"categories: ${2:categories}",
"tags: [${3:tags, tags, ...}]",
"toc: true",