-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.rb
executable file
·365 lines (316 loc) · 12.2 KB
/
resume.rb
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
#!/usr/bin/env ruby
require 'yaml'
require 'erb'
class ResumeRenderer
attr_reader :content, :template, :env
def initialize data
@env = ENV['RESUME_ENV']
@content = YAML::load data
@template = @content.delete 'TEMPLATE'
end
def to_html template=nil
ERB.new( template || @template ).result binding
end
private
def format_dates format, dates
dates.map do |date|
case date
when 'Present' then date
else Date.parse(date).strftime format
end
end.join '–'
end
# Replace [Markdown-style links][1] with HTML links (naive!)
def l text, links
if links
text.gsub! /\[([^\]+]*)\]\[([0-9])\]/, '<a href="%\2%">\1</a>'
text.gsub! /\[([0-9])\]/, '<a href="%\1%">\1</a>'
links.each {|key, url| text.gsub! "%#{key}%", url }
end
text
end
def method_missing meth
@content[ meth.id2name ] || super
end
def respond_to? meth
!@content[ meth.id2name ].nil? || super
end
end
resume = ResumeRenderer.new DATA.read
if ARGV.empty? || ARGV.first == '-'
$stdout
else
File.open( ARGV.shift, 'w' )
end << resume.to_html
__END__
--- %YAML:1.0 # DATA
details:
name: Jordan Running
email: [email protected]
phone: (925) 567-3267
location: Iowa City, Iowa
tagline: Web application developer specializing in Ruby on Rails
and JavaScript
experience:
- company: Independent Contractor
position: Web Application Developer
dates: [ Oct 2010, Present ]
bullet points:
- Architected and implemented a complex registration wizard for merchant
services customers for a client of [Tag Creative Studio][1]. As the sole
back-end developer, built the Ruby on Rails- and MySQL-backed five-step
workflow with more than 70 fields and strict, interdependent validations
for each.
- Implemented from precise specification a Node.js application for
initializing, managing and communicating with instances of other Node.js
applications as requested by remote clients. The application is modular,
allowing new types of application instances to be supported while
maintaining strict separation between components.
- Developed a web frontend and Node.js backend for a Redis-backed
English-Spanish translation database for [Componica, LLC][2].
- Designed and prototyped a social networking and live chat system in Ruby
on Rails, backed by MySQL and Redis. The product users to be "paired"
according to several attributes, for which Redis' fast set operations were
an excellent match.
links:
1: http://tagcreativestudio.com/
2: http://componica.com/
- company: Cramer Development
url: http://cramerdev.com/
position: Web Application Developer
dates: [ Jul 2009, Sept 2010 ]
bullet points:
- Developed and maintained large, public-facing web applications and
e-commerce sites in Ruby on Rails and object-oriented PHP.
- Designed and implemented a Ruby client for a complex third-party API which
gathered search engine data for [DIYSEO.com][1].
- Profiled and optimized complex queries on databases with tens of millions
of records.
- Worked directly with clients for whom an hour's downtime equaled
thousands of dollars in lost revenue.
links:
1: http://diyseo.com/
- company: Digital Artefacts
url: http://digitalartefacts.com/
position: Software Developer
dates: [ Oct 2008, Jul 2009 ]
bullet points:
- Designed and implemented a system for uploading and manipulating
(cropping, rotating) images, initially in Flash with a PHP backend, then
again in JavaScript and ASP.NET/C#.
other experience:
- company: Busy Coworking
url: http://busycoworking.com/
position: Cofounder
dates: [ Apr 2012, Present ]
bullet points:
- Opened Iowa City's first and only coworking space, now flourishing at
218 E. Washington St. downtown.
- company: Tucows
url: http://tucows.com/
position: Tutorial Writer, Screencaster
dates: [ Feb 2007, Sept 2008 ]
bullet points:
- Wrote, recorded, and produced 26 short form how-to screencasts (ex. [1],
[2], [3], [4]) for Tucows' [Butterscotch.com][5] in one month on
accomplishing common and time-saving tasks on Windows and the web.
- Wrote dozens of [instructional articles][6] on using software and
understanding computing concepts, from backing up browser settings
to making time-lapse movies.
links:
1: http://butterscotch.com/tutorial/How-To-Manage-The-Windows-Vista-Firewall
2: http://butterscotch.com/tutorial/How-To-Defrag-Your-Hard-Drive-In-Windows-Vista
3: http://butterscotch.com/tutorial/How-To-Download-And-Install-Mozilla-Firefox
4: http://butterscotch.com/tutorial/Using-Windows-Defender-To-Get-Rid-Of-Spyware
5: http://butterscotch.com/
6: http://www.tucows.com/articles/author/jrunning
- company: Weblogs, Inc. / AOL
url: http://weblogsinc.com/
position: Lead Blogger
dates: [ Mar 2005, Feb 2007 ]
bullet points:
- Managed the [Download Squad][1] blog, building and
supervising a team of more than a dozen bloggers and growing traffic
from zero to more than 1.5 million monthly pageviews
- Wrote and published [thousands of blog posts][2] on all topics relating to
software and web applications
- Contributed extensively to internal documentation and technical
discussions
links:
1: http://downloadsquad.com/
2: http://downloadsquad.com/bloggers/jordan-running
education:
- institution: Cornell College
url: http://cornellcollege.edu/
location: Mt. Vernon, Iowa
years: [ 2000, 2005 ]
degree: BA in Computer Science, Art
details:
Coursework including software design, systems software, data management
systems, and progamming language concepts (including functional
programming, virtual machines, and declarative languages)
web:
- title: jrunning on GitHub
url: http://github.com/jrunning
- title: LinkedIn
url: http://linkedin.com/in/jordanrunning
- title: Stack Overflow
url: http://careers.stackoverflow.com/jordan
interests: [ mobile computing, web standards (current and emerging) and
microformats, typography and design, web curation, blogs and new
media, nontraditional modes of working, open source, Vim,
photography, art, baking
]
TEMPLATE: |- # TODO Add hResume microformat: http://microformats.org/wiki/hresume
<!DOCTYPE html>
<html>
<head>
<title><%= details['name'] %> — <%= details['email'] %> — Resume</title>
<% unless env == 'pdf' %>
<link rel="stylesheet"
href="http://fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,900italic">
<% end %>
<% unless env == 'production' || env == 'pdf' %>
<link rel="stylesheet" href="css/lib/reset.css">
<link rel="stylesheet" href="css/lib/ribbon.css">
<% end %>
<link rel="stylesheet" href="css/resume.css">
<link rel="profile" href="http://microformats.org/profile/hcard">
<link rel="me" type="text/html"
href="http://www.google.com/profiles/jrunning">
</head>
<body class="vcard">
<section id="top" class="clearfix adr">
<header>
<h1 class="fn"><%= details['name'] %></h1>
<h2><%= details['tagline'] %></h2>
</header>
<p><a href="mailto:<%= details['email'] %>" class="email">
<%= details['email'] %>
</a>
<a class="tel" href="tel:+1<%= details['phone'].gsub /[^0-9]/, '' %>"><%= details['phone'] %></a>
</p>
</section>
<% [ 'experience', 'other experience' ].each do |experience| %>
<section id="<%= experience.gsub ' ', '-' %>">
<h2><%= experience.capitalize %></h2>
<ul>
<% send( experience ).each do |job| %>
<li>
<header>
<% if job['dates'] %>
<p class="dates"><%= format_dates('%B %Y', job['dates']) %></p>
<% end %>
<h3><% if job['url'] %>
<a href="<%= job['url'] %>" target="_blank">
<%= job['company'] %></a>
<% else %>
<%= job['company'] %>
<% end %>
<% if job['location'] %>
<span><%= job['location'] %></span>
<% end %>
</h3>
<p><%= job['position'] %></p>
</header>
<% if job['bullet points'] %>
<ul class="bullet-points">
<% job['bullet points'].each do |point| %>
<li><%= l(point, job['links']) %></li>
<% end %>
</ul>
<% end %>
</li>
<% end %>
</ul>
</section>
<% end %>
<section id="education">
<h2>Education</h2>
<ul>
<% education.each do |school| %>
<li>
<header>
<p><span class="dates"><%= school['years'].join ' – ' %></p>
<h3><a href="<%= school['url'] %>" target="_blank">
<%= school['institution'] %></a>
<span><%= school['location'] %></span>
</h3>
<p><%= school['degree'] %></p>
</header>
<ul class="bullet-points"><li><%= school['details'] %></li></ul>
</li>
<% end %>
</ul>
</section>
<section id="web">
<h2>On the web</h2>
<ul class="clearfix">
<% web.each do |site| %>
<li><a href="<%= site['url'] %>" class="url" rel="me">
<%= site['title'] %>
</a></li>
<% end %>
</ul>
</section>
<section id="interests">
<h2>Interests</h2>
<p><%= interests.join(', ').capitalize + '.' %></p>
</section>
<section id="bottom" class="clearfix adr">
<a class="email" href="mailto:<%= details['email'] %>"><%= details['email'] %></a>
<a class="phone" href="tel:+1<%= details['phone'].gsub /[^0-9]/, '' %>"><%= details['phone'] %></a>
<span class="locality"><%= details['location'] %></span>
</section>
<% if @env == 'pdf' %>
<footer>Cheerfully generated by <cite>resume.rb</cite>:
<a href="http://github.com/jrunning/Resume">http://github.com/jrunning/Resume</a>
</footer>
<% else %>
<a id="myribbon" href="http://github.com/jrunning/Resume"
class="gray ribbon right top" target="_blank">
<span class="text">Fork me on GitHub</span>
</a>
<% end %>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23720675-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// Shenanigans
var els, numEls, incr, ribbon, ribbonColor, i = 0
, currentColor = [ 22, 4, 18 ], endColor = [ 0, 24, 10 ]
;
if( document.querySelectorAll ) {
if( ribbon = document.querySelector( '.ribbon' ) ) {
ribbonColor = ribbon.style.color;
}
els = document.querySelectorAll( '*:not(.ribbon)' );
if( els.length ) {
el = els[i];
while( el.tagName != 'BODY' ) { el = els[ ++i ]; }
numEls = els.length - i;
incr = [ ( endColor[0] - currentColor[0] ) / numEls
, ( endColor[1] - currentColor[1] ) / numEls
, ( endColor[2] - currentColor[2] ) / numEls
];
for(; i < els.length; i++ ) {
els[i].style.color = "rgb(" +
( currentColor[0] += incr[0] ) + "%," +
( currentColor[1] += incr[1] ) + "%," +
( currentColor[2] += incr[2] ) + "%)"
;
}
// kludge
if( ribbon ) {
document.querySelector( "#myribbon *" ).style.color = ribbonColor;
}
}
}
</script>
</body>
</html>