$ git checkout -b test origin/test
$ git push origin --delete <branch_name>
$ git branch -D
| // addMethod - By John Resig (MIT Licensed) | |
| // https://johnresig.com/blog/javascript-method-overloading/ | |
| // https://blog.fundebug.com/2017/07/24/javascript_metho_overloading/?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io | |
| function addMethod(object, name, fn){ | |
| var old = object[ name ]; | |
| object[ name ] = function(){ | |
| if ( fn.length == arguments.length ) | |
| return fn.apply( this, arguments ); | |
| else if ( typeof old == 'function' ) | |
| return old.apply( this, arguments ); |
| <!-- | |
| copy from https://www.dropbox.com/s/bus9jw8yqm03z3b/markdown-toc-v2.txt | |
| http://jianshu.io/p/34c92cbd0aaf | |
| --> | |
| <ul id="tree" class="ztree"></ul> | |
| <article class='markdown-body'> | |
| # titleI | |
| ## titleII | |
| ### titleIII |
| #!/bin/bash | |
| param=$1 | |
| oldsource=`gem sources | tail -n 1` | |
| if [ "$param"x = "setx" ]; then | |
| newsource="https://ruby.taobao.org/" | |
| else | |
| newsource="https://rubygems.org/" | |
| fi |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>PrintPreview - A bookmarklet to preview the print version of a web page</title> | |
| <meta name="viewport" content="initial-scale=1.0"> | |
| <link rel="stylesheet" href="style.css" > | |
| </head> | |
| <body> | |
| <h1>PrintPreview</h1> |
| function bust () { | |
| document.write = ""; | |
| window.top.location = window.self.location; | |
| setTimeout(function() { | |
| document.body.innerHTML = ''; | |
| }, 0); | |
| window.self.onload = function(evt) { | |
| document.body.innerHTML = ''; | |
| }; | |
| } |
How to install package control for Sublime Text 3, and recommend plugins.
OS: Mac
Install Xcode
Download Xcode from App Store
Install Command Line Tools
Xcode -> Preferences -> Downloads -> Components
Let Everyone Know Where XCode Is
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Install X11 [I don't know if this step is necessary ]