Skip to content

Instantly share code, notes, and snippets.

View CodeByLine's full-sized avatar

Yumei Leventhal CodeByLine

View GitHub Profile
@CodeByLine
CodeByLine / python_function_practice.py
Created December 30, 2017 03:46 — forked from wynand1004/python_function_practice.py
Python Function Practice (Send and Return Values w/Booleans)
# Function Practice Send and Return Values w/Booleans
# Please create and call various functions as explained below.
import os
os.system("clear")
# 1
# Write a function that prints Doh! on the screen.
# Call the function print_doh
print("1\n")
def print_doh():
@CodeByLine
CodeByLine / star_trek_captains.py
Created December 30, 2017 02:45 — forked from wynand1004/star_trek_captains.py
A simple introduction / practice exercise to learn a little about Python lists.
import os
os.system("clear")
print("""
__ ___
(_ |_ _ _ | _ _|
__)|_(_|| || (-|(
""")
# 1) Create a list called captains and add the following names to it:
@CodeByLine
CodeByLine / index.md
Created July 16, 2016 04:17 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one