git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?xml version="1.0" encoding="UTF-8"?> | |
| <scheme name="Solarized Dark" version="1" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.0" /> | |
| <option name="EDITOR_FONT_SIZE" value="14" /> | |
| <option name="EDITOR_FONT_NAME" value="Consolas" /> | |
| <colors> | |
| <option name="ADDED_LINES_COLOR" value="" /> | |
| <option name="ANNOTATIONS_COLOR" value="2b36" /> | |
| <option name="ANNOTATIONS_MERGED_COLOR" value="" /> | |
| <option name="CARET_COLOR" value="dc322f" /> |
| (function() { | |
| if (window.location.hostname === "twitter.com") { | |
| var tcoToLinkTitleURL = function(ev) { | |
| var target = ev.target, dataURI = target.getAttribute("data-expanded-url"); | |
| if (/^https?:\/\/t.co\//.test(target.href) && dataURI) target.href = dataURI; | |
| }; | |
| document.addEventListener("mousedown", tcoToLinkTitleURL, true); | |
| } | |
| })(); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| [alias] | |
| dt = difftool | |
| mt = mergetool | |
| [diff] | |
| tool = bc3 | |
| [difftool] | |
| prompt = false | |
| [difftool "bc3"] | |
| cmd = \"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" | |
| [difftool "p4"] |
| import flask | |
| class HelloApp(flask.Flask): | |
| def __init__(self, import_name): | |
| super(HelloApp, self).__init__(import_name) | |
| self.route("/hello")(self.hello) | |
| def hello(self): | |
| return "Hello, world!" |
| #!/bin/bash | |
| # This hook is run after a new virtualenv is activated. | |
| # ~/.virtualenvs/postmkvirtualenv | |
| libs=( PyQt4 sip.so ) | |
| python_version=python$(python -c "import sys; print (str(sys.version_info[0])+'.'+str(sys.version_info[1]))") | |
| var=( $(which -a $python_version) ) | |
| get_python_lib_cmd="from distutils.sysconfig import get_python_lib; print (get_python_lib())" |
Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.
First install motion:
~> sudo apt-get install motion
Then create a config file:
~> mkdir ~/.motion
~> nano ~/.motion/motion.conf
| """ | |
| Implementation of pairwise ranking using scikit-learn LinearSVC | |
| Reference: "Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich, | |
| T. Graepel, K. Obermayer. | |
| Authors: Fabian Pedregosa <[email protected]> | |
| Alexandre Gramfort <[email protected]> | |
| """ |
| """Python implementation of Conway's Game of Life | |
| Somewhat inspired by Jack Diederich's talk `Stop Writing Classes` | |
| http://pyvideo.org/video/880/stop-writing-classes | |
| Ironically, as I extended the functionality of this module it seems obvious | |
| that the next step would be to refactor board into a class with advance and | |
| constrain as methods and print_board as __str__. | |
| """ |