GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
| git diff -p \ | |
| | grep -E '^(diff|old mode|new mode)' \ | |
| | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \ | |
| | git apply |
My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.
To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)
Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.
You don't have to delete your local branch.
Simply delete your remote tracking branch:
git branch -d -r origin/<remote branch name>
(This will not delete the branch on the remote repo!)
See "Having a hard time understanding git-fetch"
there's no such concept of local tracking branches, only remote tracking branches.
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
| " vim:fdm=marker | |
| " Vundle {{{ | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'chriskempson/base16-vim' |
| $ sudo apt-get install chromium-chromedriver | |
| $ sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver |
| # Assume we are in your home directory | |
| cd ~/ | |
| # Clone the repo from GitLab using the `--mirror` option | |
| $ git clone --mirror [email protected]:mario/my-repo.git | |
| # Change into newly created repo directory | |
| $ cd ~/my-repo.git | |
| # Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
| // Sean Parent. Inheritance Is The Base Class of Evil. Going Native 2013 | |
| // Video: https://www.youtube.com/watch?v=bIhUE5uUFOA | |
| // Code : https://github.com/sean-parent/sean-parent.github.io/wiki/Papers-and-Presentations | |
| /* | |
| Copyright 2013 Adobe Systems Incorporated | |
| Distributed under the MIT License (see license at | |
| http://stlab.adobe.com/licenses.html) | |
| This file is intended as example code and is not production quality. |