Skip to content

Instantly share code, notes, and snippets.

View bartdorsey's full-sized avatar

Bart Dorsey bartdorsey

View GitHub Profile
@bartdorsey
bartdorsey / python-basics.md
Last active September 28, 2022 17:44
Python Basics

Python Basics

Glossary

  • Character - Characters in python are unicode characters. The computer can only store numbers so each character is stored as a number. See sites like [unicode-table.com] to find out what character code corresponds to each character.
  • Sequence - In python a sequence is an object that you can iterate over. Strings, lists, the output of range(), are just some examples of sequences.
  • Mapping -
@bartdorsey
bartdorsey / nms-ship-seeds.md
Last active August 25, 2022 22:29
NMS Ship Seeds

No Man's Sky Ship Seeds

Yellow Solar with yellow panels

0x93F48B7B8359E841

White Solar with purple panels

0x5EEDC0DE03E7288A

@bartdorsey
bartdorsey / how-to-start-a-git-bases-project.md
Last active September 16, 2022 15:24
How to start a git based project

How to start a git-based project

If you already have a remote repository on gitlab or github

You will gather the "clone url" from the website and then use the following command.

git clone <clone url>
@bartdorsey
bartdorsey / notable-minecraft-seeds.md
Last active July 29, 2022 15:15
Notable Minecraft Seeds
Seed Variant Description
13032936 Bedrock lots of biomes all around, with a savannah village close by
-4643289498761436768 Bedrock Jungle with Portal and Cave near Spawn
@bartdorsey
bartdorsey / git-worktrees-how-to.md
Last active September 16, 2022 15:24
How I use git worktrees

How I use git worktrees

What are git worktrees?

Git worktrees are a special feature of git that lets you checkout branches/commits into a folder.

How is this different that plain 'ol git checkout?

You can check each branch out into a separate folder. This means no more stashing/un-stashing or committing just to work on several branches at once.

@bartdorsey
bartdorsey / common-django-pitfalls.md
Last active November 21, 2023 13:54
Common Django Pitfalls

Common Django Pitfalls

This contains a collection of common errors people make when coding Django apps, and how to fix them.

Important Strategies for preventing pitfalls

  1. Always do one thing at a time and test it. Make a single change, test it for errors, before moving on to the next thing.
  2. When trying to fix an error, only change one thing at a time, If the error message does not change, undo that change and try something else.
  3. If you discover you haven't saved a file, and that's causing an error, save the file and try again and pay attention to any new errors. The original error isn't worth worrying about until you have saved everything
@bartdorsey
bartdorsey / echobucket-minecraft-mod-guide.md
Last active June 7, 2022 13:42
echobucket's Minecraft Java Mod Guide

echobucket's Minecraft Java Mod Guide

A note on download mods and malware

There are tons of mod sites on the internet, a lot of them link to sites that are questionable. Be careful what you download and run on your computer. My suggesting is to stick to official sites for mods or places like Curseforge.

The Launcher

I use multimc to launch minecraft. It's possible to use the official launcher with all the mods below, but I vastly prefer the utility this launcher give you.

@bartdorsey
bartdorsey / django-model-creation-cheatsheet.md
Last active June 2, 2022 17:35
Django Model Creation Cheatsheet

Django Model Creation Cheatsheet

Add the model class to models.py

class MyModel(models.Model):
  pass

Add fields to your model

@bartdorsey
bartdorsey / TodoItemUpdateView.md
Created May 5, 2022 00:36
TodoItemUpdateView

TodoItemUpdateView

classDiagram
  class BaseUpdateView {
    object
    get(request)
    post(request)
  }
@bartdorsey
bartdorsey / realm-notes.md
Last active March 18, 2022 15:01
Realm Notes

Realm Notes

POIs

  • Spawn Base
    • 9, 34
  • Spawn Village
    • 118, 85
  • Mountain with some Iron on top
  • 598, -204