Skip to content

Instantly share code, notes, and snippets.

View tiagovrtr's full-sized avatar

Tiago Reis tiagovrtr

View GitHub Profile
@niksumeiko
niksumeiko / git.migrate
Last active July 19, 2024 21:32
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@tushortz
tushortz / sphinx.sublime-build
Last active April 8, 2017 16:37
Sphinx Sublime build
To create a Sphinx sublime build, open Sublime, Go to Tools --> Bulid system --> New build system and type in the following code.
I have only tried it on windows so far and it worked.
Make sure you have sphinx installed and change the path to the script. may be python27 instead of python34
{
"cmd": ["c:/Python34/Scripts/sphinx-build.exe", "-b", "html", "$filedir", "_build/html"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "text.restructuredtext"
}