Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
ThaddeusJiang / interview report template (tech)
Last active August 28, 2024 14:42
Interview report template (tech)
Total: 1~5
下面各项得分的平均分
Experience: 1~5
过往项目的客户群(ToB or ToC)、项目规模、项目中担当的角色、是否有突出贡献等等
Skill: 1~5
开发基础、设计能力、能否攻克中大型开发难题,能否担当 full stack 任务等等
@mygeekdaddy
mygeekdaddy / OmniFocus_due_list_v4.14.scpt
Created February 7, 2019 14:34
Applescript to create .MD file of active OmniFocus tasks
(*
File: OmniFocus_Due_List.scpt
-------------------------------------------------------------------------------------------------
Revision: 4.14
Revised: 2019-02-07
Summary: Create .md file for list of tasks due and deferred +/- 7d from current date.
-------------------------------------------------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file
-------------------------------------------------------------------------------------------------
@bearlyrunning
bearlyrunning / questions.js
Last active July 13, 2018 02:08
Zhihu cleanup script - unfollow
// This script saves all followed question urls and titles in a hashmap => data.json
// { "url":"title", "url":"title", ...}
const puppeteer = require('puppeteer');
var fs = require('fs');
(async () => {
const browser = await puppeteer.launch({headless: false})
const page = await browser.newPage()
const pagenum = 25 // This is the number of pages + 1
@ttttmr
ttttmr / RSS_to_Inoreader.js
Last active March 6, 2023 17:02
一键订阅到Inoreader,相关:一键复制RSS https://gist.github.com/ttttmr/d44e40e92abb4966edcdee2e09fe8ffc
javascript: (function () {
let rsshub_host = 'https://rsshub.app';
let cnblog = 'https://www.cnblogs.com/';
let csdn = 'https://blog.csdn.net/';
let jianshu_user = '/jianshu/user/';
let zhihu_user = '/zhihu/people/activities/';
let zhihu_collection = '/zhihu/collection/';
let bilibili_user = '/bilibili/user/video/';
let jike_topic = '/jike/topic/';
@johnsonlee
johnsonlee / weibo_batch_unfollow.js
Last active May 30, 2018 12:42
微博批量取消关注
(function() {
// 批量管理
Array.prototype.forEach.call(document.getElementsByClassName('btn_link'), function(btn) {
if (btn.getAttribute('action-type') == 'batselect') {
btn.click();
}
});
// 批量选择
Array.prototype.forEach.call(document.getElementsByClassName('member_li'), function(li) {
import pandas as pd
import sys
if __name__ == '__main__':
df = pd.read_csv(sys.argv[1])
new = df[['Start time', 'End time', 'Description', 'Project', 'Duration']]
new.to_html('time_entries.html')
@itspig
itspig / hosts
Last active March 18, 2025 18:30
小米盒子、小米电视去广告 hosts file for MiBox & MiTV
127.0.0.1 ad.mi.com
127.0.0.1 ad.xiaomi.com
127.0.0.1 cdn.ad.xiaomi.com
127.0.0.1 log.ad.xiaomi.com
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 sdkconfig.ad.xiaomi.com
127.0.0.1 o2o.api.xiaomi.com
127.0.0.1 gallery.pandora.xiaomi.com
127.0.0.1 mishop.pandora.xiaomi.com
127.0.0.1 upgrade.mishop.pandora.xiaomi.com
@bpj
bpj / md-head2ul.pl
Last active October 31, 2021 04:21
Massage Markdown converted with Pandoc from OPML exported from Dynalist
#!/usr/bin/env perl
=head1 SYNOPSIS
pandoc -f opml -t markdown --atx-headers [PANDOC OPTIONS] input.opml \
| perl md-head2dl.pl [OPTIONS] > output.md
=head1 DESCRIPTION
Massage Markdown converted with Pandoc L<http://pandoc.org> from OPML exported from Dynalist <https://dynalist.io>.
@martinpi
martinpi / gist:c84d5530dafb73b5a9815768f5f9a160
Created August 25, 2017 09:48
Import a folder of text files into Evernote (OSX/AppleScript)
tell application "Finder"
set fl to files of folder POSIX file "/Users/pi/Desktop/VoodoopadExport" as alias list
end tell
repeat with f in fl
set theText to (do shell script "cat " & quoted form of (POSIX path of f))
set theName to (do shell script "basename " & quoted form of (POSIX path of f))
tell application "Evernote"
create note with text theText title theName notebook "private" tags "VoodooPad"
end tell
end repeat
@purpleskyfall
purpleskyfall / minos-style.css
Last active October 13, 2020 13:48
A Minos style Cascading Style Sheets (css) theme for Pandoc. Based on a hexo theme: http://blog.zhangruipeng.me/hexo-theme-minos/
/* A Minos style html theme for Pandoc, thanks for http://blog.zhangruipeng.me/hexo-theme-minos/ */
/* Usage this them by:
pandoc test.md -c minos-style.css --self-contained -o demo.html
*/
body {
font: 16px 'PT Serif', 'STZhongsong', '华文中宋', 'Microsoft Yahei', serif;
max-width: 760px;
margin: auto;