This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
http://lucifr.com/tags/sublime-text/ category sublime of the author’s blog
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
http://lucifr.com/tags/sublime-text/ category sublime of the author’s blog
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
# PATH | |
export PATH=$PATH:$HOME/bin:usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin | |
# 为cd命令设定路径 | |
export CDPATH=.:$HOME:/var/www | |
## set PS1 ## | |
PS1='{\u@\h:\w }\$ ' | |
## 设定默认权限为644 ## | |
umask 022 |
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
#!/bin/bash | |
export LANG="en_US.UTF-8" | |
MC=/Users/steve/Minecraft | |
# Many of these options are explaiend here: | |
# http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html | |
# http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html | |
# http://blog.ragozin.info/2011/09/hotspot-jvm-garbage-collection-options.html |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
import ( | |
"compress/gzip" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strings" | |
) | |
func gzipit(source, target string) error { |