Skip to content

Instantly share code, notes, and snippets.

View Descent098's full-sized avatar
🐍
Writing Python

Kieran Wood Descent098

🐍
Writing Python
View GitHub Profile
@Descent098
Descent098 / Getting_Started.txt
Last active January 20, 2018 16:51
How to download and set up a repository on github
1. First off you will need git, the git GUI and a Github account
git: https://git-scm.com/
git GUI: http://gitforwindows.org/
Github: https://github.com/ (this is the only one you need an account for)
2. I'll be making the repositories since I think I have the most experience with github so all you have to do is go to:
here for the assignments repository: https://github.com/CPSC-233-Group-2018/Assignments
and here for the project repository: https://github.com/CPSC-233-Group-2018/Project
3. next clone the repositories using git GUI (screenshots links below)
@Descent098
Descent098 / Getting_Started2.txt
Created January 23, 2018 05:23
how to update a repo after cloning it
if you're on windows just right click to open the git gui (screenshot: http://prntscr.com/i4982s)
here it will give you a description of the changes you made to each file.
just make a note of what you did in the commit message box, then stage changed, then commit, then push (screenshot: http://prntscr.com/i498xd)
for our stuff just hit push and ignore the branches box (screenshot: http://prntscr.com/i499h4)
if there's no problem with the upload you are all good and can see the changes online (screenshot: http://prntscr.com/i499o1)
it seems convoluted but this way we get a change history and can revert any errors we make and easily download the most up to date versions of the projects
@Descent098
Descent098 / ToDo Projects.md
Created January 28, 2019 08:12
A set of coding projects and technologies to learn

Project list

Projects that are ready to be started

  1. Snake: Python Snake Game, rendered in CLI
  2. Cellular Automata/Conway's Game of Life: Some implementation of conways game of life, CLI or GUI
  3. Pacman: CLI based pacman game
  4. Data Visualization: Web based system that will allow you to input a data set (array) and graph it in a number of ways
@Descent098
Descent098 / Useful Random Scripts.md
Created January 30, 2019 03:27
Any useful random scipts| mostly from stackoverflow

Uninstall all pip modules

source

''pip freeze | xargs pip uninstall -y''

@Descent098
Descent098 / Interesting Projects.md
Last active June 3, 2019 17:12
A list of some interesting projects

Twitch Leecher

ALlows you to download "VODS" of twich streams

Source

Maze Solving

A set of maze solvers; written in python

Source

@Descent098
Descent098 / .pylintrc
Last active June 20, 2019 19:42
My Personal pylint configuration, largely based off the google style guide (http://google.github.io/styleguide/pyguide.html) and https://gist.github.com/rpunkfu/3cd6f8b8b23e27adedbd
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Add files or directories to the blacklist. They should be base names, not
@Descent098
Descent098 / PyPi_uploading.md
Last active June 24, 2019 03:42
How to upload packages to PyPi

Update Modules

python -m pip install --upgrade setuptools wheel twine

Add Files to /dist folder

python setup.py sdist bdist_wheel

Upload files to PyPi

twine upload dist/*

@Descent098
Descent098 / py3-setup.sh
Last active August 24, 2019 06:35
Python3 setup on a debian 9 install NOTE: uncomment line 33 for python3.6 and corresponding pip to be set as alias keywords python and pip respectively
# This script is designed to download and install python 3.6.4 from source and build it in debian 9
# Taken from guide on https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-debian-9/
# NOTE: uncomment line 33 for python3.6 and corresponding pip to be set as alias keywords python and pip respectively
# Update and update apt packages to latest versions
sudo apt-get update && sudo apt-get upgrade
# Instal python source build tools
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
@Descent098
Descent098 / docker-setup
Created September 5, 2019 08:24
How to setup docker and docker-compose on linux (ubuntu)
Follow these two guides
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
https://linuxize.com/post/how-to-install-and-use-docker-compose-on-ubuntu-18-04/
@Descent098
Descent098 / static-templates.md
Last active October 12, 2019 18:57
A list of where to find static html templates