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
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| /** | |
| * @author lei | |
| * 2011-9-2 | |
| */ | |
| public class StringUtils { |
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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # !/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| __author__ = 'zhibin' | |
| import requests | |
| try: | |
| import xml.etree.cElementTree as ET | |
| except ImportError: | |
| import xml.etree.ElementTree as ET |
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
| [Solarized Dark] | |
| text(bold)=839496 | |
| magenta(bold)=6c71c4 | |
| text=839496 | |
| white(bold)=fdf6e3 | |
| green=859900 | |
| red(bold)=cb4b16 | |
| green(bold)=586e75 | |
| black(bold)=073642 | |
| red=dc322f |
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
| Sublime Text 2 + Gist = 代码片段管理器 | |
| MAR 7TH, 2012 | COMMENTS | |
| 来自 Nettuts+ 的视频教程 (Youtube/优酷),结合 Sublime Text 2 的 Gist 插件和 Github 提供的 Gist 代码片段分享平台,打造出一个能够很方便的进行创建、搜索插入、更新以及版本控制的代码片段管理器。 | |
| 大致流程: | |
| 建立一个 Gist 账户。 |
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
| # tmux v2.0 installation steps for Ubuntu 14.04 (Trusty Tahr) | |
| tmux -V | |
| sudo apt-get update | |
| sudo apt-get install -y python-software-properties software-properties-common | |
| sudo add-apt-repository -y ppa:pi-rho/dev | |
| sudo apt-get update | |
| sudo apt-get install -y tmux | |
| tmux -V | |
| # tmux v1.9 installation steps for Ubuntu 14.04 (Trusty Tahr) |
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
| import os | |
| import sys | |
| import traceback | |
| import json | |
| # Path for spark source folder | |
| os.environ['SPARK_HOME']="/Users/jilu/Downloads/spark-1.3.0-bin-hadoop2.4" | |
| # Append pyspark to Python Path |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import gevent | |
| from gevent import monkey, queue | |
| monkey.patch_all() | |
| import urllib2 | |
| from time import sleep | |
| import traceback | |
| import logging |