Skip to content

Instantly share code, notes, and snippets.

View EVanGorkom's full-sized avatar

Ethan Van Gorkom EVanGorkom

View GitHub Profile

Flask Cheat Sheet

A cheat-sheet for creating web apps with the Flask framework using the Python language.

A Simple App

  • Create a module called app.py:
from flask import Flask

app = Flask(__name__)
@EVanGorkom
EVanGorkom / Java Cheatsheet.md
Created March 14, 2024 06:40
Java Cheatsheet based on the Mosh cheatsheet, with personal additions.

Java Cheatsheet

Variables

We use variables to temporarily store data in computer’s memory. In Java, the type of a variable should be specified at the time of declaration.

Types

In Java, we have two categories of types:

  • Primitives: for storing simple values like numbers, strings and booleans.

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

PHP Cheatsheet

Variables

We use variables to temporarily store data in the computer's memory. In PHP, variables do not require a type declaration and can hold different types of data such as strings, numbers, booleans, arrays, and objects.

Declaring Variables

$name = "John Doe";

C# Cheatsheet

Variables

We use variables to temporarily store data in the computer’s memory. In C#, the type of a variable should be specified at the time of declaration.

Types

In C#, we have two categories of types:

  • Value Types: for storing simple values directly.

Terminal Aliases

First start by making sure you're in your Root directory, run cd in the command line if you're unsure.

Next we need to open up the .zshrc file within your terminal. This file is what helps your terminal function so BE CAREFUL

nano .zshrc

Go to the bottom of your .zshrc file (top works too, I just like to be careful) and there you can add a new alias.

Mosh Python Cheatsheet

Disclaimer: I did not create this cheatsheet or the ideas within. All credit goes to Mosh Hamedani and his Python Cheatsheet that can be acquired through an email link, by visiting his YouTube tutorials or visiting his tutorial pages. This is a Markdown version of the original pdf that I retyped with a few typo corrections and notes for my own understanding.

Variables

We use variables to temporarily store data in computer's memory.

price = 10 # Integer

ITEMS: GET 127.0.0.1:8000/vendors/1/items/

[
	{
		"id": 1,
		"item_name": "Potato",
		"vendor": 1,
		"price": "2.50",
		"size": "1",

How to Create a README for your GitHub Profile Walkthrough

Getting Started

Create a new repository that has the SAME name as your GitHub username. This will give you a notification that this is a special repostitory that will automatically live at the top of your profile page.

  • Make sure the repo is public
  • Make sure you initiate a README.md when your create this
  • (In the screeshot below it says I already have one because I've done this step already, you won't see this error)

Screenshot 2023-12-04 at 10 30 02 AM

@EVanGorkom
EVanGorkom / Django Cheatsheet.md
Last active March 28, 2024 21:24
Django Starter Notes

Django Application Cheatsheet

Getting Started

In your command line, you'll need to make sure that pip and python are installed.

If this is not your first time making a Django application, see the Quickstart option instead.

Next is setting up a virtual environment. It is a recommended best practice when working on Python projects, including Django. A virtual environment helps isolate project dependencies and avoids conflicts with other projects.

1. Create your project root directory: