Skip to content

Instantly share code, notes, and snippets.

View rossedfort's full-sized avatar

Ross Edfort rossedfort

View GitHub Profile

Why Film is Better than Digitial

Digital File Formats

  • Compressed vs. Uncompressed
    • JPEG and Raw
  • Compression - Minimizing the size of the file without degrading image quality
    • Lossy vs. Lossless
      • Lossy = losing data
      • Lossless = retaining data, in different format
  • How it looks in ruby
one-to-one: Username and password
one-to-many: People and mailing address
People and pets
User and instagram photo
many-to-many: Teachers and mod_2 students
Hashtags and tweets
A test environment database can be set up to flush after every run, making it easier to keep track of what's in your db and what you are testing on.
A development environment database usually holds enough data to make sure your app is working as it should. It's usually fake data in the correct format.
-These can be dropped/deleted
function setup() {
noStroke();
width = 1400
height = 780
createCanvas(width, 780);
background(0);
size = 10
}
function draw() {
require 'minitest/autorun'
require 'minitest/emoji'
require './lib/list'
require './lib/node'
class ListTests < Minitest::Test
def test_you_can_create_new_nodes
assert Node.new("a")
end