Skip to content

Instantly share code, notes, and snippets.

View uwang's full-sized avatar
💭
I may be slow to respond.

u.wang uwang

💭
I may be slow to respond.
  • 23:34 (UTC +08:00)
View GitHub Profile
@uwang
uwang / style.css
Created February 28, 2018 03:58
常用 css 样式
code {
font-size: Consolas,"Liberation Mono",Menlo,Courier,monospace;
white-space: pre-wrap;
background: #f5f7f8;
border: none;
padding: 0;
}
$(document).ready(function () {
$("ul.nav").find("li").each(function () {
var isCurrent = false;
$(this).find("a").each(function() {
// console.log($(this).attr("href") + "," + location.pathname);
if ($(this).attr("href") === location.pathname) {
isCurrent = true;
}
```
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
server {
listen 80;
server_name example.com;
root /path/to/your/root;
@uwang
uwang / README.md
Created July 29, 2016 03:13 — forked from githubutilities/README.md
Shadowsocks proxy and ssh proxy

Shadowsocks Proxy

apt-get install python-pip
pip install shadowsocks

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
if($(document).scrollTop() > 50){
  $('.menubar').addClass('accent-color-bg');
}