Skip to content

Instantly share code, notes, and snippets.

Genevieve Buckley GenevieveBuckley

  • Monash University
  • Melbourne
View GitHub Profile
GenevieveBuckley /
Last active Apr 16, 2019 — forked from emmanuelle/
Inspect which functions of scikit-image are compatible with 3-D arrays.
import numpy as np
import inspect
from skimage import exposure, feature, filters, measure, morphology, \
restoration, segmentation, transform, util
def only_one_nondefault(args):
Returns True if the function has only one non-keyword parameter,
False otherwise.
# 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

A collapsible section with markdown

Click to expand!


  1. A numbered
  2. list
    • With some
    • Sub bullets
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
GenevieveBuckley /
Last active Nov 2, 2018 — forked from DragaDoncila/
microscopium illumination correction script
import os
import re
from microscopium import io
from microscopium.preprocess import correct_multiimage_illumination
from microscopium.preprocess import find_background_illumination
def main():
IMAGE_FILE_PATH = "/data/"
GenevieveBuckley / setup.cfg
Created Sep 24, 2018 — forked from althonos/setup.cfg
A `setup.cfg` template for my Python projects
View setup.cfg
name = {name}
version = {version}
author = Martin Larralde
author-email =
home-page ={name}
description = {description}
long-description = file: README.rst, CHANGELOG.rst
GenevieveBuckley /
Created Aug 10, 2018 — forked from piscisaureus/
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

GenevieveBuckley / imread
Created Aug 8, 2018 — forked from charlesreid1/imread
Results from using different imread() functions
View imread
In [1]: from import imread as skimage_imread
In [2]: from matplotlib.pyplot import imread as plt_imread
In [3]: from scipy.ndimage import imread as scipy_imread
In [4]: skimage_imread('bulk_water_000.png')
array([[[146, 125, 54, 255],
[146, 125, 54, 255],
GenevieveBuckley /
Last active Aug 8, 2018 — forked from diyan/
Desktop GUI automation in Python


UI Automation. Desktop. Python

GUI toolkit agnostic

autopy - simple, cross-platform GUI automation toolkit. MIT -

  • GUI toolkit agnostic
  • allows you to move mouse, take screenshots, show alerts, search for bitmaps on-screen
GenevieveBuckley /
Created Aug 8, 2018 — forked from Chaser324/
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

You can’t perform that action at this time.