Skip to content

Instantly share code, notes, and snippets.

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@jcdavo
jcdavo / .gitignore
Created May 23, 2020 05:06 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jcdavo
jcdavo / cat.rb
Last active June 6, 2016 04:02
Ruby
class Pet
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end