Skip to content

Instantly share code, notes, and snippets.

# Write a method that takes an integer `n` in; it should return
# n*(n-1)*(n-2)*...*2*1. Assume n >= 0.
#
# As a special case, `factorial(0) == 1`.
#
# Difficulty: easy.
def factorial(n)
total = n
m = 1
<!-- Follow these steps
First write in the content
Make sure you have:
Opened and closed h1 tags around the site's name.
Opened and closed h2 tags around the site's subheading.
Opened and closed p tags around the site's body content.
<!-- Write your code below-->
<h1>Hi, I'm awesome.</h1> <p><a href="#">Follow me</a> on twitter.</p>
<p>Send me an <a href="mailto:serabak15@gmail.com">email</a>.</p>
<!DOCTYPE html>
<html>
<head>
<link ref="stylesheet" type="text/css" src="style.css">
<style id="jsbin-css">
div {
width: 150px;
height: 150px;
border: 2px solid black;
<!-- Fundamental Unit 4: Working with Images -->
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<style id="jsbin-css">
body {
background: #333;
}
<!DOCTYPE html>
<html>
<head>
<title>ELK Web Design</title>
<style id="jsbin-css">
body {
font-size: 18px;
font-family: sans-serif;
}
@serabakpak
serabakpak / index.html
Created August 8, 2016 22:39 — forked from anonymous/index.html
ELK Web Design // source https://jsbin.com/rabuga
<!DOCTYPE html>
<html>
<head>
<title>ELK Web Design</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,800" rel="stylesheet" type="text/css">
<style id="jsbin-css">
/*Copy over your previous HTML code below
*/body {
font-size: 18px;
font-family: "Open Sans", sans-serif;
@serabakpak
serabakpak / index.html
Created August 8, 2016 23:34 — forked from anonymous/index.html
ELK Web Design // source https://jsbin.com/madedo
<!DOCTYPE html>
<html>
<head>
<title>ELK Web Design</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,800" rel="stylesheet" type="text/css">
<style id="jsbin-css">
/*Copy over your previous HTML code below
*/body {
font-size: 18px;
font-family: "Open Sans", sans-serif;
@serabakpak
serabakpak / week1-learning-objectives.md
Last active August 17, 2016 23:14
Week 1 Learning Objectives

Week 1 Learning Objectives

###Git & Github

  • Explain the uses of Git and GitHub for tracking their changes and collaborating on projects.
  • Draw a model of local, remote, and working copies of their repositories.
  • Write some code, commit the changes, and write a strong commit message.
  • Deploy first live website using gh-pages.

###HTML & CSS