This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (77 loc) · 3.27 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="title" content="Andres Monge | Technical Lead / Solution Architect"/>
<meta name="description"
content="
A trained **technical lead** and engineer **manager** who is passionate about the new wave for AI development. Looking to enter into the field of **neural network engineering**, using my previous skills in web (JavaScript/DevOps/Ruby) and new ones which are recently acquired.
I provide value by translating KPI's or any business requirements into meaningful and **planned chunks of technical tasks**. Furthermore, I take ownership of the **architecture and spike** research, allowing my team to stay focused. I unblock the team by kick staring projects and proof of concepts, and dive deep into complex solutions.
I constantly try to take the extra effort to make my solutions follow a **functional declarative and O.O. paradigm**, since I found that saves times eventually.
"
/>
<title> Andres Monge | Technical Lead / Solution Architect </title>
<script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.6.347/build/pdf.min.js" ></script>
</head>
<style>
body {
background:#303030;
}
#render {
cursor: pointer;
max-width: 1024px;
display: block;
margin: 0 auto;
border: 3px solid #005e86;
border-bottom: 0;
}
#render > div:last-child canvas {
border-bottom: 3px solid #005e86;
}
</style>
<body>
<div id="render">
</body>
<script type="text/javascript">
function renderPDF(url, canvasContainer) {
function renderPage(page) {
let viewport = page.getViewport({scale: .5})
const DPI = 72;
const PRINT_OUTPUT_SCALE = DPI/72;
const scale = canvasContainer.clientWidth / viewport.width;
const canvas = document.createElement('canvas')
const ctx = canvas.getContext('2d')
viewport = page.getViewport({scale})
canvas.width = Math.floor(viewport.width * PRINT_OUTPUT_SCALE);
canvas.height = Math.floor(viewport.height * PRINT_OUTPUT_SCALE);
canvas.style.width = '100%';
canvas.style.transform = 'scale(1,1)';
canvas.style.transformOrigin = '0% 0%';
const canvasWrapper = document.createElement('div');
canvasWrapper.style.width = '100%';
canvasWrapper.style.height = '100%';
canvasWrapper.appendChild(canvas);
const renderContext = {
canvasContext: ctx,
viewport,
}
canvasContainer.appendChild(canvasWrapper)
page.render(renderContext)
}
function renderPages(pdfDoc) {
for (let num = 1; num <= pdfDoc.numPages; num += 1)
pdfDoc.getPage(num).then(renderPage)
}
pdfjsLib.disableWorker = true
pdfjsLib.getDocument(url).promise.then(renderPages)
}
renderPDF("Tech Lead - Solution Architect - Andres Monge - Resume.pdf", document.querySelector('#render')) //div element
document.querySelector('#render').addEventListener('click', () => {
let link=document.createElement('a');
document.body.appendChild(link);
link.target="_blank"
link.href="Tech Lead - Solution Architect - Andres Monge - Resume.pdf" ;
link.click();
});
</script>
</html>