Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'sinatra'
require './lib/profile'

set :application_id, 'EDIT_ME'
set :secret, 'EDIT_ME'
set :application_id, '7e16da8b68d5bf0c63f71535351d4a9da6ce6aff1b602f82788138aef009d42d'
set :secret, '6212562da0927a6ed927cfbfbd1f59d585d8f3b719463a0d4542b688d4d3c7d1'
set :redirect_uri, 'http://localhost:4567/callback'
set :site_url, 'https://wegotcoders.com'
set :session_secret, 'secret'
Expand Down
31 changes: 29 additions & 2 deletions primes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
class Primes
def self.sum_to(limit = 100)
# TODO - add your prime number solution here...
"I'm working on it!"

num = 1
last = 100
primes = []

while (num <= last)
condition = true
x = 2

while (x <= num / 2)
if (num % x == 0)
condition = false
break
end

x = x + 1

end
end

if condition && num > 1

primes << num

end

num = num + 1

end

print primes.inject(:+)
Binary file added public/images/codecademy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/picture.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 61 additions & 6 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,75 @@
header, footer {
padding: 1em;
color: black;
background-color: orange;
clear: left;
text-align: center;
}


.newspaper {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
-webkit-column-gap: 40px; /* Chrome, Safari, Opera */
-moz-column-gap: 40px; /* Firefox */
column-gap: 40px;
-webkit-column-rule: 1px solid lightblue; /* Chrome, Safari, Opera */
-moz-column-rule: 1px solid lightblue; /* Firefox */
column-rule: 1px solid lightblue;
}

h3 {
-webkit-column-span: all; /* Chrome, Safari, Opera */
column-span: all;
}

* {
padding: 0;
margin: 0;
}
.fit { /* set relative picture size */
max-width: 100%;
max-height: 100%;
}
.center {
display: block;
margin: auto;
}


body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
line-height: 1.428571429;
color: #333;
width: 50%;
margin: auto;
}

#logo {
table, th{
border: 0px solid black;
border-collapse: collapse;
text-align: left;
}

table, td{

text-align: center;
}


}
#logo {
text-align: right;
}

#content {
padding: 1em;
}

.box {
border: 1px solid #999;
border: 0px solid #999;
background: #FCFCFC;
padding: 1em;
margin-bottom: 0.5em;
Expand All @@ -27,13 +82,13 @@ body {
h3 {
font-size: 1.5em;
}

h4{
font-style: bold;
}
.error {
text-align: center;
}

.error h2 {
font-size: 1.5em;
}

/* TODO - Add your own styles here */
}
Loading