Skip to content

Instantly share code, notes, and snippets.

View PinkyJie's full-sized avatar

Wenbo Jie PinkyJie

View GitHub Profile
@PinkyJie
PinkyJie / gist:3cddd0a1f166e001081f
Last active August 29, 2015 14:01
有道chrome划词翻译
https://chrome.google.com/webstore/detail/%E6%9C%89%E9%81%93%E8%AF%8D%E5%85%B8chrome%E5%88%92%E8%AF%8D%E6%8F%92%E4%BB%B6/eopjamdnofihpioajgfdikhhbobonhbb
@PinkyJie
PinkyJie / template.html
Last active December 31, 2015 17:59
template
<script type="text/template" id="item-template">
<tr>
<td><%- id %></td>
<td><%- name %></td>
<td><%- gender %></td>
<td><%- age %></td>
<td>
<a href="#" title="edit"><i class="icon-edit"></i></a>
<a href="#" title="remove"><i class="icon-remove"></i></a>
</td>
@PinkyJie
PinkyJie / index.html
Last active December 26, 2015 12:09
jekyll首页:分页与摘要
---
layout: page
title: 进击的马斯特
tagline: Go Fighting! Master!
---
{% for post in paginator.posts %}
<div class="post-wrapper">
<h2 class="h2 entry-title">
<a href="{{ post.url }}">{{ post.title }}</a>
@PinkyJie
PinkyJie / .tmux.conf
Created September 23, 2013 01:51
tmux config file
# status bar
set-option -g status-utf8 on
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black] #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=green,bg=black,bright]#(tmux-mem-cpu-load 1) #[fg=red,dim]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
@PinkyJie
PinkyJie / Preferences.sublime-settings
Created September 4, 2013 14:27
sublime setting file
{
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
@PinkyJie
PinkyJie / twitter-oauth.py
Last active December 17, 2015 01:49
a twitter-oauth test user need not to anticipate
import time,random,urllib,urllib2,hmac,hashlib,re
# constants
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
AUTHENTICATE_URL = 'https://api.twitter.com/oauth/authenticate'
AUTHORIZE_URL = 'https://api.twitter.com/oauth/authorize'
ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'
CALLBACK_URL = None