Skip to content

Instantly share code, notes, and snippets.

View msorair's full-sized avatar
🏠
student

msorair

🏠
student
View GitHub Profile
@msorair
msorair / theme.js
Last active October 31, 2025 15:15
surfingkey theme
const hintsCss =
"font-size: 10pt; font-family: 'JetBrains Mono NL', 'Cascadia Code', 'Helvetica Neue', Helvetica, Arial, sans-serif; border: 1px solid #5d94e666; color: #e0def4 !important; background: initial; background-color: #232136";
api.Hints.style(hintsCss);
api.Hints.style(hintsCss, "text");
settings.theme = `
:root {
--bg: #f4f4f4;
@msorair
msorair / 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;
}
@msorair
msorair / 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
@msorair
msorair / 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",