Skip to content

Instantly share code, notes, and snippets.

View ChrisWellsWood's full-sized avatar

Christopher W. Wood ChrisWellsWood

View GitHub Profile
@ChrisWellsWood
ChrisWellsWood / 1_pypi_dist.md
Last active August 17, 2017 08:49
Packaging a Python Project and Distributing on PyPi

Packaging a Python Project and Distributing on PyPi

Workflow

  1. Create setup.py
    • Contains information about your project i.e. version numbers, licences, Python version
  2. Create MANIFEST.in
    • Defines files to be included/excluded from the package
    • See example below.
  3. Run create the distribution
@ChrisWellsWood
ChrisWellsWood / useful_git_commands.md
Last active October 25, 2017 09:29
Useful Git Commands

A Random Selection of Useful Git Commands

Checkout

Files

1. Checkout a file from another branch

git checkout branch-with-file path/to/file.we

Merge

Conflicts

@ChrisWellsWood
ChrisWellsWood / useful_docker_commands.md
Last active August 31, 2017 14:16
Useful Docker Commands

Connect to container and run bash:

docker exec -i -t container /bin/bash

Stop all containers:

docker stop $(docker ps -a -q)

Remove all containers:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / i3_config
Last active September 17, 2023 14:41
i3wm Config and Cheat Sheet
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@ChrisWellsWood
ChrisWellsWood / parametric-modelling-isambard2.ipynb
Last active January 31, 2024 14:46
Parametric Modelling of Coiled Coils using ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / model-evaluation.ipynb
Created April 20, 2018 13:53
Evaluation of Models Produced by ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / grid-scanning.ipynb
Created April 20, 2018 13:54
Grid Scanning Parameters in ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChrisWellsWood
ChrisWellsWood / metaheuristics.ipynb
Created April 20, 2018 13:56
Parameter Optimisation with Metaheuristics in ISAMBARD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.