Skip to content

Instantly share code, notes, and snippets.

Genevieve Buckley GenevieveBuckley

  • Monash University
  • Melbourne
Block or report user

Report or block GenevieveBuckley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
GenevieveBuckley / settings.json
Last active May 2, 2019
Visual Studio Code settings.json config file
View settings.json
"editor.rulers": [
"autoDocstring.docstringFormat": "numpy",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"window.zoomLevel": 0,
"python.formatting.provider": "autopep8",
"editor.formatOnSave": true,
GenevieveBuckley / pytest.ini
Last active Apr 4, 2019
Pytest configuration file
View pytest.ini
addopts = --cov-report xml:cov.xml --cov-report term-missing --cov=mypackagename
GenevieveBuckley /
Created Mar 15, 2019
User input in python using a while loop
response_yes = ['yes', 'y']
response_no = ['no', 'n']
response_cancel = ['quit', 'q', 'exit', 'cancel']
known_responses = response_yes + response_no + response_cancel
user_response = ''
while user_response.lower() not in known_responses:
user_response = input("Please input a value, or enter 'quit': ")
GenevieveBuckley / pip_install_directly_from_github
Last active Apr 24, 2019
pip install code directly from a github repository
View pip_install_directly_from_github
# pip install code directly from github with:
pip install git+
# Note: the repository must include file to be pip installable.
# Presumably, you can also specify a specific repository branch with:
pip install git+

A collapsible section with markdown

Click to expand!


  1. A numbered
  2. list
    • With some
    • Sub bullets
GenevieveBuckley /
Created Jan 16, 2019
Pickle AdornedImage objects
import pickle
from autoscript_sdb_microscope_client import SdbMicroscopeClient
from autoscript_sdb_microscope_client.enumerations import *
from autoscript_sdb_microscope_client.structures import *
microscope = SdbMicroscopeClient()
object_to_pickle = microscope.imaging.get_image()
GenevieveBuckley /
Created Nov 19, 2018 — forked from gnarf/
git pr - Global .gitconfig aliases for Pull Request Managment


Either copy the aliases from the .gitconfig or run the commands in


Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
from import push_notebook, output_notebook, show, save
from bokeh.layouts import row, column, layout
from bokeh.plotting import figure
GenevieveBuckley /
Last active Nov 13, 2018
Python testing and coverage reports with pytest and pytest-cov

Python testing


pytest path/to/tests/
pytest path/to/tests/
pytest path/to/tests/
pytest path/to/tests/
You can’t perform that action at this time.