-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
433 lines (369 loc) · 14.5 KB
/
Copy pathindex.html
File metadata and controls
433 lines (369 loc) · 14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,500,600,700" rel="stylesheet">
<link
rel="stylesheet"
href="prism-atom-dark.css"
type="text/css"
media="screen"
/>
<script type="text/javascript" src="prism.js"></script>
<script type="text/javascript" src="prism.ruby.js"></script>
<title>Philip Hearn</title>
<meta name="description" content="Philip Hearn is a professional
software engineer specializing in full-stack development.
He has extensive experience with Ruby, Rails, JavaScript,
and building web applications.">
</head>
<body>
<div class="about-container">
<ul>
<li><a href="#" class="nav-link">ABOUT</a></li>
<li><a href="#code-samples" class="nav-link">CODE SAMPLES</a></li>
<li><a href="#web-apps" class="nav-link">WEB APPS</a></li>
<li><a href="#skills-and-tools" class="nav-link">SKILLS & TOOLS</a></li>
<li><a href="#photoshop-examples" class="nav-link">PHOTOSHOP</a></li>
<li><a href="#graphic-examples" class="nav-link">GRAPHICS</a></li>
<li><a href="#photography-examples" class="nav-link">PHOTOGRAPHY</a></li>
<li class="hire-me"><a href="#hire-me" class="nav-link">HIRE ME</a></li>
</ul>
<div class="about">
<img src="me.jpg" class="me"/>
<h1>Philip Hearn</h1>
<h2>Web Designer</h2>
<hr class="grey"/>
<p class="bio">I previously worked for a small business, maintaining their webpage and editing/creating the videos, audio, and pictures they generate using the Adobe suite primarily. I would like to move towards software or web developing from this position. I look forward to learning more about how to code to begin my career change to a more official developing-centered job.
</p>
<hr class="spacer"/>
</div>
</div>
<h3 id="code-samples">Code Snippets</h3> <hr class="yellow">
<div class="box">
<h4>Temperature Conversion</h4>
<p>
This ruby program will prompt the user for a temperature
in degrees Celsius and let the user know what the
corresponding temperature is in Fahrenheit.
</p>
</div>
<div class="box">
<pre><code class="language-ruby">def cel2fah(num)
return num * 1.8 + 32
end
puts "Enter degrees in Celsius:"
celsiusdeg = gets
puts "The temperature is #{cel2fah(celsiusdeg.to_f)} degrees Fahrenheit"</code></pre>
</div>
<br class="clear" />
<div class="box">
<pre><code class="language-ruby">puts "Enter a number"
answer = gets.chomp
answer_int = answer.to_i
rem = answer_int % 10
rem100 = answer_int % 100
if rem == 1 && rem100 == 11
puts "#{answer_int}th"
elsif rem == 2 && rem100 == 12
puts "#{answer_int}th"
elsif rem == 3 && rem100 == 13
puts "#{answer_int}th"
elsif rem == 1
puts "#{answer_int}st"
elsif rem == 2
puts "#{answer_int}nd"
elsif rem == 3
puts "#{answer_int}rd"
else
puts "#{answer_int}th"
end</code></pre>
</div>
<div class="box">
<h4>Ordinal Challenge</h4>
<p>
This ruby program will convert a plain number
to the ordinal of the number. So for example,
if the user enters 2, it will display 2nd, if
the user enters 3, it will display 3rd, etc.
</p>
</div>
<br class="clear" />
<div class="box">
<h4>Foobar</h4>
<p>
This ruby program is an adaptation of a classic technical
interview problem which displays sequences
of the Foobar pattern.
</p>
</div>
<div class="box">
<pre><code class="language-ruby">puts "How many digits do you want to see:"
answer = gets.chomp
answer_int = answer.to_i
answer_int.times do |n|
n = n + 1
numb3 = n % 3
numb5 = n % 5
if numb3 == 0 && numb5 == 0
puts "foobar"
elsif numb3 == 0
puts "foo"
elsif numb5 == 0
puts "bar"
else
puts "#{n}"
end
end</code></pre>
</div>
<br class="clear" />
<h3 id="web-apps">Web Apps</h3>
<hr class="yellow" />
<div class="box">
<h4><a href="https://splurty-philip-hearn.herokuapp.com/">Quote Generator</a></h4>
<img src="splurty.png" class="full-width" />
<p>
A database-powered quote generator with a mobile-first
design, using the Ruby on Rails framework, HTML, and CSS.
Uses Git and GitHub for version control, and launched
on Heroku.
</p>
</div>
<div class="box">
<h4><a href="https://nomster-philip-hearn.herokuapp.com/">Yelp Clone</a></h4>
<img src="nomster.png" class="full-width" />
<p>
A Yelp clone that integrates with the Google Maps API
and includes features like user comments, star ratings,
image uploading, and user authentication.
</p>
</div>
<br class="clear" />
<div class="box">
<h4><a href="https://flixter-phearn.herokuapp.com/">Two-Sided Market Place</a></h4>
<img src="flixter.png" class="full-width" />
<p>
A two-sided, video-streaming marketplace platform that
features credit card payment capabilities, user role
management, complex user interfaces, and advanced
database relationships.
</p>
</div>
<div class="box">
<h4><a href="https://grammable-phearn.herokuapp.com/">Test Driven Development</a></h4>
<img src="grammable.png" class="full-width" />
<p>
An Instagram clone that was built using industry-standard, test-driven
development following numerous red/green/refactor cycles.
</p>
</div>
<br class="clear" />
<div class="box">
<h4><a href="https://todoster-phearn.herokuapp.com/">Single Page Todo Application</a></h4>
<img src="todoster.png" class="full-width" />
<p>
This single-page to-do application features a
fluid user interface that– by using JavaScript–
allows users to rapidly add dynamic content.
</p>
</div>
<div class="box">
<h4><a href="https://warandpiece.herokuapp.com/">Agile Team Project</a></h4>
<img src="chess.png" class="full-width" />
<p>
Worked on an Agile software development team building
a chess application. Under the guidance of a senior software engineer,
we had weekly Agile team meetings for code reviews, sprint planning,
and feature assignments.
</p>
</div>
<br class="clear" />
<h3 id="skills-and-tools">Skills & Tools</h3>
<hr class="yellow" />
<p class="skills-and-tools">
Philip has developed proficiency and expertise
in the following programming languages and
comfort with the following tools.
</p>
<div class="icons">
<img src="github.png" class="icon"/>
<img src="trello.png" class="icon"/>
<img src="slack.png" class="icon"/>
<br class="clear" />
<img src="skills.png" class="icon"/>
</div>
<br class="clear" />
<h3 id="photoshop-examples">Photoshop Examples</h3>
<hr class="yellow" />
<br class="clear" />
<div class="w3-content w3-display-container">
<div id="space-pid">
<img class="mySlides-1 w3-display-container" src="Photoshop/space-pid.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup" style="display: none">This is a picture I did for a friend where I took a picture of her wearing circular glasses and stylized the image with various interposed cosmic images on various layers to create the desired effect.</div>
</div>
<div id="aristairs">
<img class="mySlides-1 w3-display-container" src="Photoshop/aristairs.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup7" style="display: none">I created this picture for a friend from a series of photos of him running down the stairs by removing extra photos to give it the desired effect and then merging the layers.</div>
</div>
<button class="w3-button w3-light-grey w3-display-left" onclick="plusDivs(-1)">❮</button>
<button class="w3-button w3-light-grey w3-display-right" onclick="plusDivs(+1)">❯</button>
</div>
<br class="clear" />
<h3 id="graphic-examples">Graphic Examples</h3>
<hr class="yellow" />
<br class="clear" />
<div class="w3-content w3-display-container">
<div id="HFF-logo">
<img class="mySlides-2 w3-display-container" src="Graphics/HFF-logo.png">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup2" style="display: none">I created this logo in Adobe Illustrator for a local business that was looking for a lighter, cleaner feel.</div>
</div>
<div id="HFF-Globe">
<img class="mySlides-2 w3-display-container" src="Graphics/hff-globe-white-outline-text.png">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup8" style="display: none">This graphic was created for the same company using Adobe Illustrator for use as a web link icon.</div>
</div>
<button class="w3-button w3-light-grey w3-display-left" onclick="plusDivs2(-1)">❮</button>
<button class="w3-button w3-light-grey w3-display-right" onclick="plusDivs2(+1)">❯</button>
</div>
<br class="clear" />
<h3 id="photography-examples">Photography</h3>
<hr class="yellow" />
<br class="clear" />
<div class="w3-content w3-display-container">
<div id="dukegardens">
<img class="mySlides-3 w3-display-container" src="Photography/duke-gardens-bush.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup3" style="display: none">This photo was taken looking from the top directly down at a bush in the Duke Gardens in Durham, NC and was later edited in Adobe Lightroom</div>
</div>
<div id="alpsmountain">
<img class="mySlides-3 w3-display-container" src="Photography/alps-mountain.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup4" style="display: none">I took this photo of a mountain range in the Alps while on a trip through parts of southern Germany and it was later edited in Adobe Lightroom</div>
</div>
<div id="viennapool">
<img class="mySlides-3 w3-display-container" src="Photography/vienna-pool.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup5" style="display: none">This photo was taken on the same trip in Vienna, Austria using a camera function that combines around 60 images to create a still effect on water that would otherwise be moving. It was later edited in Adobe Lightroom.</div>
</div>
<div id="nicolerhett">
<img class="mySlides-3 w3-display-container" src="Photography/black_white_nicole_rhett.jpg">
<div class="w3-display-middle w3-black w3-padding-16 w3-small w3-container" id="popup6" style="display: none">This is a photo of my girlfriend and my dog that was taken in Boone, NC and was edited in both Adobe Lightroom and Adobe Photoshop.</div>
</div>
<button class="w3-button w3-light-grey w3-display-left" onclick="plusDivs3(-1)">❮</button>
<button class="w3-button w3-light-grey w3-display-right" onclick="plusDivs3(+1)">❯</button>
</div>
<br class="clear"/>
<div class="contact-me">
</div>
<div class="contact-me" id="hire-me">
<h3 class="contact-headline">Contact</h3>
<hr class="yellow" />
<p class="contact-info">
Currently entertaining new opportunities.
Please get in touch via email:
</p>
<p>
<a href="mailto:philiphhearn@gmail.com" class="contact-link">
philiphhearn@gmail.com
</a>
</p>
</div>
</body>
<script type="text/javascript">var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides-1");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
var e = document.getElementById('space-pid');
e.onmouseover = function() {
document.getElementById('popup').style.display = 'block';
}
e.onmouseout = function() {
document.getElementById('popup').style.display = 'none';
}
var hfflogo = document.getElementById('HFF-logo');
hfflogo.onmouseover = function() {
document.getElementById('popup2').style.display = 'block';
}
hfflogo.onmouseout = function() {
document.getElementById('popup2').style.display = 'none';
}
var dukegardens = document.getElementById('dukegardens');
dukegardens.onmouseover = function() {
document.getElementById('popup3').style.display = 'block';
}
dukegardens.onmouseout = function() {
document.getElementById('popup3').style.display = 'none';
}
var alpsmountain = document.getElementById('alpsmountain');
alpsmountain.onmouseover = function() {
document.getElementById('popup4').style.display = 'block';
}
alpsmountain.onmouseout = function() {
document.getElementById('popup4').style.display = 'none';
}
var viennapool = document.getElementById('viennapool');
viennapool.onmouseover = function() {
document.getElementById('popup5').style.display = 'block';
}
viennapool.onmouseout = function() {
document.getElementById('popup5').style.display = 'none';
}
var nicolerhett = document.getElementById('nicolerhett');
nicolerhett.onmouseover = function() {
document.getElementById('popup6').style.display = 'block';
}
nicolerhett.onmouseout = function() {
document.getElementById('popup6').style.display = 'none';
}
var aristairs = document.getElementById('aristairs');
aristairs.onmouseover = function() {
document.getElementById('popup7').style.display = 'block';
}
aristairs.onmouseout = function() {
document.getElementById('popup7').style.display = 'none';
}
var HFFGlobe = document.getElementById('HFF-Globe');
HFFGlobe.onmouseover = function() {
document.getElementById('popup8').style.display = 'block';
}
HFFGlobe.onmouseout = function() {
document.getElementById('popup8').style.display = 'none';
}
var slideIndex2 = 1;
showDivs2(slideIndex2);
function plusDivs2(n) {
showDivs2(slideIndex2 += n);
}
function showDivs2(n){
var i;
var x = document.getElementsByClassName("mySlides-2");
if (n > x.length) {slideIndex2 = 1}
if (n < 1) {slideIndex2 = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex2-1].style.display = "block";
}
var slideIndex3 = 1;
showDivs3(slideIndex3);
function plusDivs3(n) {
showDivs3(slideIndex3 += n);
}
function showDivs3(n){
var i;
var x = document.getElementsByClassName("mySlides-3");
if (n > x.length) {slideIndex3 = 1}
if (n < 1) {slideIndex3 = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex3-1].style.display = "block";
}
</script>
</html>