Skip to content

Instantly share code, notes, and snippets.

View PhantomTheMeaningOfLie's full-sized avatar
Phantom : An Epic on Lie

Phantom : The Meaning of Lie PhantomTheMeaningOfLie

Phantom : An Epic on Lie
View GitHub Profile
@PhantomTheMeaningOfLie
PhantomTheMeaningOfLie / new empty git branch.md
Created May 4, 2020 14:39 — forked from ozh/new empty git branch.md
Create a new empty branch in Git
$ git checkout --orphan NEWBRANCH
$ git rm -rf .

--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.

You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.

@PhantomTheMeaningOfLie
PhantomTheMeaningOfLie / min-char-rnn.R
Created January 21, 2020 06:59 — forked from georgeblck/min-char-rnn.R
Minimal character-level language model with a Vanilla Recurrent Neural Network, in R
###
### Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
### BSD License
### Re-written in R by @georgeblck
###
rm(list=ls(all=TRUE))
options(digits=10)