Skip to content

Instantly share code, notes, and snippets.

@holys
holys / compute.c
Last active December 11, 2015 00:39
简单版makefile
#include <math.h>
double compute(double x, double y) {
return pow(x, y);
}
@holys
holys / misc
Created January 14, 2013 15:29
Misc stuff
wget -m http://developers.douban.com/wiki/\?title\=api_v2
@holys
holys / gist:4547375
Last active December 11, 2015 04:48
practice *nix command line
touch
@holys
holys / gist:4562794
Last active December 11, 2015 06:58
设置WDS
设置WDS
// ==UserScript==
// @name GDUFS library helper
// @namespace http://library.gdufs.edu.cn
// @version 0.1.0
// @description Show the available books amount in GDUFS library.
// @match http://book.douban.com/*
// @match http://opac.gdufs.edu.cn:8118/apsm/recommend/recommend_nobor.jsp*
// @copyright 2012-2013, Link, hbc,cdh(later)
// @require http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js
// @require http://isbn.jpn.org/js/isbn.js
@holys
holys / gist:5187449
Last active December 15, 2015 02:29
squid
squid cache
## RPC
#允许rpc
enable-rpc=true
#允许所有来源, web界面跨域权限需要
rpc-allow-origin-all=true
#允许非外部访问
rpc-listen-all=true
#RPC端口, 仅当默认端口被占用时修改
#rpc-listen-port=6800
@holys
holys / solved.md
Last active May 30, 2020 13:36
解决smplayer 中文字幕乱码
  • 设置中文字体 如wqy-microhei
  • 选择中文编码 Simple Chinese (CP936)
javascript:(function(){var s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js');if(typeof jQuery=='undefined'){document.getElementsByTagName('head')[0].appendChild(s);}jQuery("td.edit select option[value=BN]").attr("selected","");})();
div.title {
display: none;
}
div.title_area.clearfix {
display: none;
}
dl.pic30.SW_fun {
display: none;