- Update HISTORY.rst
- Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be patch or major)
bumpversion minor
{ | |
"@context": { | |
"@vocab": "http://ipython.org/nbformat/v4/", | |
"nb4": "http://ipython.org/nbformat/v4/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"language": {"@type": "@id"}, | |
"codemirror_mode": {"@type": "@id"}, | |
Git Hubflow Workflow: | |
Sync Branch: | |
git hf update - this will update master and develop and sync remote branches with local ones (be sure not to put commits into develop or master as it will push these up) | |
git hf push - this will push your commits in your local branch to the matching remote branch | |
git hf pull - this will pull the remote commits into your local branch (don't use if the remote branch has been rebased - use git pull origin "your-branch" instead) | |
Feature Branch: | |
gif hf feature start "my-feature" - this will create a feature branch on origin and local will be based off the latest develop branch (make sure to git hf update before or you will get an error if local develop and remote develop have divereged) | |
git hf feature finish "my-feature" - this will delete the local and remote branches (only do this after a PR has been merged) |
#!/usr/bin/env python | |
import json | |
import rdflib | |
from rdflib.plugin import register, Parser, Serializer | |
register('json-ld', Serializer, 'rdflib_jsonld.serializer', 'JsonLDSerializer') | |
ex = rdflib.Namespace("http://example.com/ns#") | |
g = rdflib.ConjunctiveGraph() |
#!/bin/sh | |
## newtab.sh -- newtab(), newwin() functions and osascripts for OSX Terminal | |
## src: https://stackoverflow.com/questions/7171725/open-new-terminal-tab-from-command-line-mac-os-x/12147804#12147804 | |
## license: Creative Commons cc by-sa 3.0 | |
function newtab { | |
# newtab() -- Open a new tab in the current Terminal window and | |
# optionally run a command. | |
# When invoked via a function named 'newwin', opens a new Terminal *window* instead. |
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion minor
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update -q | |
su - vagrant | |
wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /home/vagrant/miniconda | |
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc |
Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the Chromebook Pixel 2 (2015), but I can't think of any reason it wouldn't work with other devices.
[root@plex ~]# cat /etc/systemd/system/[email protected] | |
[Unit] | |
Description=Minecraft Server %i | |
[Service] | |
WorkingDirectory=/opt/minecraft-%i | |
User=mcserver | |
Type=forking | |
ExecStart=/usr/bin/tmux new-session -s mc-%i -d '/bin/java -Xmx2048M -jar minecraft_server.jar nogui' |
#!/usr/bin/env python | |
""" | |
ordereddefaultdict.OrderedDefaultDict | |
.. code:: bash | |
$ python ./ordereddefaultdict.py -t | |
$ nosetests ./ordereddefaultdict.py | |
$ py.test ./ordereddefaultdict.py |
jQuery(document).ready(function($){ | |
var body = $(document.body); | |
body.on('click', 'a[rel~="external"], a[target="_blank"]', function(e) { | |
e.preventDefault(); | |
var destination = window.open(); | |
destination.opener = null; | |
destination.location = this.href; | |
return false; | |
}); | |
}); |