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
GenevieveBuckley /
Created Jun 13, 2019 — forked from acbetter/
Image Viewer Example by PyQt5 and Python 3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog
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
You can’t perform that action at this time.