Skip to content

Instantly share code, notes, and snippets.

@linguofeng
linguofeng / 0_reuse_code.js
Created June 16, 2014 01:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
sudo xcodebuild -license
xcode-select --install # There will be a GUI prompt
sudo cpan SVN::Core # use the "sudo" method when prompted
# Then add this to your ~/.profile:
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH
# Then probably:
brew reinstall git
brew reinstall subversion
#!/bin/bash
BUILD_PATH=$(pwd)/Build
SCHEME=Imhero91Dev
CONFIG=Release
NAME=叫我大侠开发版
ID=com.qiyou.ios91dev
usage(){
cat << EOF
#!/bin/bash
echo Building Google Protobuf for Mac OS X / iOS.
echo Use 'tail -f build.log' to monitor progress.
(
PREFIX=`pwd`/protobuf
mkdir ${PREFIX}
mkdir ${PREFIX}/platform
@linguofeng
linguofeng / tag_gen.rb
Created November 26, 2012 09:18
jekyll generate tag
module Jekyll
module Filters
# 生成Tag
def generateTag(site)
site['tags'].keys.each do |tag|
_path = site['source'] + '/tag/' + tag
_file = _path + '/index.textile'
if !File.exist?(_file) then
FileUtils.mkdir_p _path