sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
| REGEDIT4 | |
| [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] | |
| "Arial"="wqy-microhei.ttc" | |
| "Arial Black"="wqy-microhei.ttc" | |
| "Arial CE,238"="wqy-microhei.ttc" | |
| "Arial CYR,204"="wqy-microhei.ttc" | |
| "Arial Greek,161"="wqy-microhei.ttc" | |
| "Arial TUR,162"="wqy-microhei.ttc" | |
| "Courier New"="wqy-microhei.ttc" |
Git Tagging and Branching 101
Here are the best practices for using Git Branches and Git Tags:
Git Tags
A ref pointing to a tag or commit object. To put simply, a tag is a way to mark a point in time in your repository. Here are some things that you should keep in mind when working with tags:
-You should add a tag to mark a released version. If you then need to make bug fixes to that release you would create a branch at the tag
| If you have a huge repository (in size and in history) and want to add a subfolder | |
| to your project as a submodule you can follow this example to save time and space | |
| using git's shallow clone and shallow checkout feature. It is a bit more complicated | |
| in this example because I assume that you want your submodule to track a non-default | |
| branch, called `mybranch`, instead of the `master` branch. Things could probably get | |
| a lot simpler when using the default branch. After following the commands in these | |
| examples you can use `git submodule update` and `git submodule update --remote` as normal. |