This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |