jsonresume-theme-engineering-leader 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  "<node_internals>/**"
13
13
  ],
14
14
  "runtimeExecutable": "npm",
15
- "runtimeArgs": ["run", "export"],
15
+ "runtimeArgs": ["run", "export-html"],
16
16
  "console": "integratedTerminal"
17
17
  }
18
18
  ]
package/README.md CHANGED
@@ -6,7 +6,7 @@ This is the engineering theme for [JSON Resume](http://jsonresume.org/), based o
6
6
 
7
7
  <p align="center">
8
8
  <kbd>
9
- <img src="https://github.com/sjw7444/jsonresume-theme-engineering-leader/blob/main/example/resume.png?raw=true" alt="Richard Hendriks Resume"/>
9
+ <img src="https://github.com/sjw7444/jsonresume-theme-engineering-leader/blob/main/example-resume.png?raw=true" alt="Richard Hendriks Resume"/>
10
10
  </kbd>
11
11
  </p>
12
12
 
@@ -48,7 +48,7 @@ npm run export
48
48
  If you want to see or modify and example, this project is configured to export a resume from the `example` folder just by running vscode f5.
49
49
 
50
50
  ```bash
51
- resume export --resume example/resume-example.json --theme . example/resume-example.html
51
+ resume export --resume example-resume.json --theme . example-resume.html
52
52
  ```
53
53
 
54
54
  ## License
@@ -58,3 +58,10 @@ Available under [the MIT license](http://mths.be/mit).
58
58
  ## About & Contributing
59
59
 
60
60
  This is a very small personal project but feel free to contribute and I will do my best to merge fixes and contributions.
61
+
62
+ ### Notes
63
+
64
+ To make the example png, follow the steps below:
65
+
66
+ 1. Install `brew install poppler`
67
+ 2. Run `pdftoppm -png example-resume.pdf example-resume`
@@ -8,8 +8,136 @@
8
8
 
9
9
  <title>Richard Hendriks</title>
10
10
 
11
- <link rel="stylesheet" href="style.css" />
12
-
11
+ <style>body {
12
+ font-family: Arial, Helvetica, sans-serif;
13
+ font-size: 11px;
14
+ margin: 24px 48px;
15
+ line-height: 1.5;
16
+ }
17
+
18
+ h1 {
19
+ font-size: 26px;
20
+ text-align: center;
21
+ margin: 0;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ h2 {
26
+ border-width: 1px;
27
+ border-style: none none solid none;
28
+ margin: 10px 0 2.5px 0;
29
+ line-height: 2em;
30
+ }
31
+
32
+ h3 {
33
+ display: inline;
34
+ }
35
+
36
+ section {
37
+ margin: 3px 0;
38
+ }
39
+
40
+ ul {
41
+ margin: 0;
42
+ padding-left: 20px;
43
+ }
44
+
45
+ a {
46
+ text-decoration: none;
47
+ color: black;
48
+ }
49
+
50
+ .item {
51
+ margin-top: 8px;
52
+ }
53
+
54
+ .item>.item-header {
55
+ float: left;
56
+ display: block;
57
+ }
58
+
59
+ .item>.item-header>.item-header-title {
60
+ font-weight: bold;
61
+ white-space: nowrap;
62
+ }
63
+
64
+ .item>.item-header>.item-header-subtitle {
65
+ font-weight: bold;
66
+ white-space: nowrap;
67
+ }
68
+
69
+ .item>.item-header>.item-header-title>.location {
70
+ font-weight: normal;
71
+ white-space: nowrap;
72
+ }
73
+
74
+ .item>.item-details {
75
+ float: right;
76
+ text-align: right;
77
+ }
78
+
79
+ .item>.item-details>.item-details-title {
80
+ font-weight: bold;
81
+ }
82
+
83
+ .item>.item-details>.date {
84
+ font-weight: bold;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ .item>.item-header>.item-header-subtitle>.degree {
89
+ font-weight: normal;
90
+ }
91
+
92
+ .clearfix {
93
+ clear: both;
94
+ }
95
+
96
+ .centered {
97
+ text-align: center;
98
+ }
99
+
100
+ /* Section specific */
101
+ /* basics */
102
+ .vertical-separator {
103
+ text-align: center;
104
+ padding: 0 10px;
105
+ }
106
+
107
+ /*
108
+ .vertical-separator:not(:first-child) {
109
+ border-left: 1px solid #000;
110
+ text-align: center;
111
+ }
112
+ */
113
+
114
+ /* Set some print settings. */
115
+ @media print {
116
+ @page {
117
+ size: portrait;
118
+ margin: 10mm 25mm;
119
+ }
120
+
121
+ .resume {
122
+ max-width: 100%;
123
+ border: 0px;
124
+ background: #fff;
125
+ box-shadow: none;
126
+ -webkit-box-shadow: none;
127
+ }
128
+
129
+ body,
130
+ html,
131
+ .resume {
132
+ margin: 0px;
133
+ padding: 0px;
134
+ }
135
+
136
+ .controls {
137
+ display: none;
138
+ }
139
+ }</style>
140
+
13
141
  </head>
14
142
 
15
143
  <body>
@@ -20,8 +148,8 @@
20
148
  <h1>Richard Hendriks</h1>
21
149
 
22
150
  <div class="contact centered">
23
- Newell Road Palo Alto, CA
24
- 94303 US
151
+ Palo Alto, CA
152
+ US
25
153
  </div>
26
154
 
27
155
  <div class="contact centered">
@@ -41,14 +169,16 @@
41
169
  <h3 class="item-header-title">
42
170
  Pied Piper,
43
171
 
44
- </h3>
172
+ <span class="location">
173
+ Palo Alto, CA
174
+ </span> </h3>
45
175
  <div class="item-header-subtitle">
46
176
  CEO/President
47
177
  </div>
48
178
  </div>
49
179
  <div class="item-details">
50
180
  <div class="date">
51
- 2014-04-13 -
181
+ 04/2014 - Current
52
182
  </div>
53
183
  </div>
54
184
  <div class="clearfix"></div>
@@ -57,8 +187,12 @@
57
187
 
58
188
  <ul class="highlights">
59
189
  <li>Build an algorithm for artist to detect if their music was violating copy right infringement laws</li>
60
- <li>Successfully won &lt;a href&#x3D;&#x27;https://techcrunch.com/event-type/disrupt/&#x27;&gt;Techcrunch Disrupt&lt;/a&gt;</li>
190
+ <li>Successfully won Techcrunch Disrupt</li>
61
191
  <li>Optimized an algorithm that holds the current world record for Weisman Scores</li>
192
+ <ul>
193
+ <li>Definitely, did not hack the entire internet</li>
194
+ <li>Successfully demod on Techcrunch stage</li>
195
+ </ul>
62
196
  </ul>
63
197
  </div>
64
198
 
@@ -67,14 +201,16 @@
67
201
  <h3 class="item-header-title">
68
202
  Hooli,
69
203
 
70
- </h3>
204
+ <span class="location">
205
+ Palo Alto, CA
206
+ </span> </h3>
71
207
  <div class="item-header-subtitle">
72
208
  Senior Software Engineer
73
209
  </div>
74
210
  </div>
75
211
  <div class="item-details">
76
212
  <div class="date">
77
- 2014-01-01 - 2014-04-06
213
+ 01/2014 - 04/2014
78
214
  </div>
79
215
  </div>
80
216
  <div class="clearfix"></div>
@@ -82,7 +218,7 @@
82
218
  <p></p>
83
219
 
84
220
  <ul class="highlights">
85
- <li>Worked on optimizing the backend algorithms for &lt;a href&#x3D;&#x27;http://www.hooli.xyz/&#x27;&gt;Hooli&lt;/a&gt;</li>
221
+ <li>Worked on optimizing the backend algorithms for Hooli</li>
86
222
  </ul>
87
223
  </div>
88
224
 
@@ -91,14 +227,16 @@
91
227
  <h3 class="item-header-title">
92
228
  Hooli,
93
229
 
94
- </h3>
230
+ <span class="location">
231
+ Palo Alto, CA
232
+ </span> </h3>
95
233
  <div class="item-header-subtitle">
96
234
  Software Engineer
97
235
  </div>
98
236
  </div>
99
237
  <div class="item-details">
100
238
  <div class="date">
101
- 2013-01-01 - 2014-01-01
239
+ 01/2013 - 01/2014
102
240
  </div>
103
241
  </div>
104
242
  <div class="clearfix"></div>
@@ -106,7 +244,7 @@
106
244
  <p></p>
107
245
 
108
246
  <ul class="highlights">
109
- <li>Contributed bugfixes and smaller features for &lt;a href&#x3D;&#x27;http://www.hooli.xyz/&#x27;&gt;Hooli&lt;/a&gt;</li>
247
+ <li>Contributed bugfixes and smaller features for Hooli</li>
110
248
  </ul>
111
249
  </div>
112
250
  </section>
@@ -120,7 +258,7 @@
120
258
  Stanford
121
259
 
122
260
  <span class="location">
123
- ,
261
+ Palo Alto, CA US
124
262
  </span> </div>
125
263
  <div class="item-header-subtitle">
126
264
  <span class="degree">B.S, Computer Science</span>
@@ -5,11 +5,9 @@
5
5
  "picture": "http://www.piedpiper.com/app/themes/pied-piper/dist/images/richard.png",
6
6
  "email": "richard.hendriks@piedpiper.com",
7
7
  "phone": "(912) 555-4321",
8
- "website": "http://piedpiper.com",
9
- "summary": "Richard hails from <strong>Tulsa</strong>. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for <a href='http://www.hooli.xyz/'>Hooli</a> as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a <em>“length-limited”</em> conversation!",
8
+ "url": "http://piedpiper.com",
9
+ "summary": "Richard hails from Tulsa. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for <a href='http://www.hooli.xyz/'>Hooli</a> as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a <em>“length-limited”</em> conversation!",
10
10
  "location": {
11
- "address": "Newell Road",
12
- "postalCode": "94303",
13
11
  "city": "Palo Alto",
14
12
  "countryCode": "US",
15
13
  "region": "CA"
@@ -36,34 +34,54 @@
36
34
  {
37
35
  "company": "Pied Piper",
38
36
  "position": "CEO/President",
39
- "website": "http://piedpiper.com",
40
- "startDate": "2014-04-13",
37
+ "url": "http://piedpiper.com",
38
+ "startDate": "04/2014",
39
+ "endDate": "Current",
41
40
  "summary": "Pied Piper is a multi-platform technology based on a proprietary universal compression algorithm that has consistently fielded high Weisman Scores™ that are not merely competitive, but approach the theoretical limit of lossless compression.",
42
41
  "highlights": [
43
42
  "Build an algorithm for artist to detect if their music was violating copy right infringement laws",
44
- "Successfully won <a href='https://techcrunch.com/event-type/disrupt/'>Techcrunch Disrupt</a>",
45
- "Optimized an algorithm that holds the current world record for Weisman Scores"
46
- ]
43
+ "Successfully won Techcrunch Disrupt",
44
+ "Optimized an algorithm that holds the current world record for Weisman Scores",
45
+ [
46
+ "Definitely, did not hack the entire internet",
47
+ "Successfully demod on Techcrunch stage"
48
+ ]
49
+ ],
50
+ "location": {
51
+ "city": "Palo Alto",
52
+ "countryCode": "US",
53
+ "region": "CA"
54
+ }
47
55
  },
48
56
  {
49
57
  "company": "Hooli",
50
58
  "position": "Senior Software Engineer",
51
59
  "website": "http://www.hooli.xyz/",
52
- "startDate": "2014-01-01",
53
- "endDate": "2014-04-06",
60
+ "startDate": "01/2014",
61
+ "endDate": "04/2014",
54
62
  "highlights": [
55
- "Worked on optimizing the backend algorithms for <a href='http://www.hooli.xyz/'>Hooli</a>"
56
- ]
63
+ "Worked on optimizing the backend algorithms for Hooli"
64
+ ],
65
+ "location": {
66
+ "city": "Palo Alto",
67
+ "countryCode": "US",
68
+ "region": "CA"
69
+ }
57
70
  },
58
71
  {
59
72
  "company": "Hooli",
60
73
  "position": "Software Engineer",
61
74
  "website": "http://www.hooli.xyz/",
62
- "startDate": "2013-01-01",
63
- "endDate": "2014-01-01",
75
+ "startDate": "01/2013",
76
+ "endDate": "01/2014",
64
77
  "highlights": [
65
- "Contributed bugfixes and smaller features for <a href='http://www.hooli.xyz/'>Hooli</a>"
66
- ]
78
+ "Contributed bugfixes and smaller features for Hooli"
79
+ ],
80
+ "location": {
81
+ "city": "Palo Alto",
82
+ "countryCode": "US",
83
+ "region": "CA"
84
+ }
67
85
  }
68
86
  ],
69
87
  "volunteer": [
@@ -71,8 +89,8 @@
71
89
  "organization": "CoderDojo",
72
90
  "position": "Teacher",
73
91
  "website": "http://coderdojo.com/",
74
- "startDate": "2012-01-01",
75
- "endDate": "2013-01-01",
92
+ "startDate": "01/2012",
93
+ "endDate": "01/2013",
76
94
  "summary": "Global movement of free coding clubs for young people.",
77
95
  "highlights": [
78
96
  "Awarded 'Teacher of the Month'"
@@ -84,15 +102,19 @@
84
102
  "institution": "Stanford",
85
103
  "area": "Computer Science",
86
104
  "studyType": "B.S",
87
- "location": "Palo Alto, CA",
88
105
  "specialization": "Machine Learning",
89
- "startDate": "2011-06-01",
90
- "endDate": "2014-01-01",
106
+ "startDate": "06/2011",
107
+ "endDate": "01/2014",
91
108
  "gpa": "GPA 4.0",
92
109
  "courses": [
93
110
  "<strong>DB1101</strong> - Basic SQL",
94
111
  "<strong>CS2011</strong> - Java Introduction"
95
- ]
112
+ ],
113
+ "location": {
114
+ "city": "Palo Alto",
115
+ "countryCode": "US",
116
+ "region": "CA"
117
+ }
96
118
  }
97
119
  ],
98
120
  "awards": [
@@ -153,4 +175,4 @@
153
175
  "reference": "It is my pleasure to recommend Richard. That is all."
154
176
  }
155
177
  ]
156
- }
178
+ }
Binary file
Binary file
package/index.js CHANGED
@@ -15,14 +15,13 @@ handlebars.registerHelper({
15
15
  function render(resume) {
16
16
  let dir = __dirname,
17
17
  css = fs.readFileSync(dir + '/style.css', 'utf-8'),
18
- resumeTemplate = fs.readFileSync(dir + '/resume.hbs', 'utf-8');
18
+ template = fs.readFileSync(dir + '/resume.hbs', 'utf-8');
19
19
 
20
20
  let Handlebars = handlebarsWax(handlebars);
21
21
 
22
- return Handlebars.compile(resumeTemplate)({
23
- css: css,
24
- resume: resume
25
- });
22
+ // inline the CSS to avoid path related issues while developing
23
+ const compiled = Handlebars.compile(template);
24
+ return compiled({ resume: resume, style: `<style>${css}</style>` });
26
25
  }
27
26
 
28
27
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-engineering-leader",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "JSON Resume theme for Engineering leaders",
5
5
  "keywords": [
6
6
  "jsonresume",
@@ -18,7 +18,8 @@
18
18
  "license": "MIT",
19
19
  "scripts": {
20
20
  "start": "resume serve --theme .",
21
- "export": "resume export --resume example/resume-example.json --theme . example/resume-example.html"
21
+ "export-html": "resume export --resume example-resume.json --theme ./ example-resume.html",
22
+ "export-pdf": "resume export --resume example-resume.json --theme ./ example-resume.pdf"
22
23
  },
23
24
  "dependencies": {
24
25
  "address-format": "0.0.3",
package/resume.hbs CHANGED
@@ -8,8 +8,8 @@
8
8
 
9
9
  <title>{{ resume.basics.name }}</title>
10
10
 
11
- <link rel="stylesheet" href="style.css" />
12
-
11
+ {{{ style }}}
12
+
13
13
  </head>
14
14
 
15
15
  <body>
Binary file