Skip to content

Instantly share code, notes, and snippets.

View EVanGorkom's full-sized avatar

Ethan Van Gorkom EVanGorkom

View GitHub Profile
@EVanGorkom
EVanGorkom / b2_intermission_work.md
Last active August 19, 2023 18:58 — forked from mikedao/b2_intermission_work.md
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML?

    Hyper Text Markup Language

  2. What is an HTML element?

@EVanGorkom
EVanGorkom / rails_7_cheatsheet.md
Created August 24, 2023 15:29 — forked from cjsim89/rails_7_cheatsheet.md
Rails 7 Cheatsheet

Rails v7.0.4 Cheatsheet

Updated by: Chris Simmons, based on the 5.2 Cheatsheet by Scott Borecki.

Please reach out if you have any comments or suggestions for updates!

Notes About this Cheatsheet

  • Rails version v7.0.4. Run $rails -v to check your Rails version number.
  • Code snippets in this cheatsheet starting with $:
  • Run from the terminal, usually within your project directory.
@EVanGorkom
EVanGorkom / intermediate_sql.md
Created October 10, 2023 04:33 — forked from case-eee/intermediate_sql.md
Intermediate SQL

Intermediate SQL Workshop

  • Run psql
  • You may need to run CREATE DATABASE intermediate_sql;
  • To exit this shell, you can run CTRL d

Create tables

Let's create some tables in the database.

@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:

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

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

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

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

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.

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.

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";