-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (93 loc) · 20.7 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
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><link rel="preload" href="/component---src-layouts-index-tsx-e4ce13453f3d99aaf35d.js" as="script"/><link rel="preload" href="/component---src-pages-index-tsx-eea98b07b7c73648fd3c.js" as="script"/><link rel="preload" href="/path---index-929013ded32a1a0ba14a.js" as="script"/><link rel="preload" href="/app-a73c820fa388184a3084.js" as="script"/><link rel="preload" href="/commons-e8ba142de36a99798fa1.js" as="script"/><style data-styled="eQDUlF eZMClE ftLppl gcWijQ dEQjuT dIQqqn dLTSNx bVMWVy eqLBjy cCQxnx niVcu fCQAfD ldANAy ffaTEG jUUdTu bxxfjM chRtMh eNtQGD cmGiRa" data-styled-version="4.1.3">
/* sc-component-id: sc-bdVaJa */
.eNtQGD{text-align:center;margin:8rem 0 2.5rem 0;font-size:1.4em;} @media (max-width:800px){.eNtQGD{font-size:1.2em;}}
/* sc-component-id: sc-bwzfXH */
.cmGiRa{color:#3ea7bb;}
/* sc-component-id: sc-global-2987173193 */
html{height:100%;font-size:10px;font-family:Montserrat,-apple-system,BlinkMacSystemFont,'Segoe UI', Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol';} body{min-height:100%;color:hsla(0,0%,0%,0.9);} *{margin:0;padding:0;box-sizing:border-box;} a{-webkit-text-decoration:none;text-decoration:none;color:inherit;}
/* sc-component-id: sc-htpNat */
.eQDUlF{display:grid;min-height:100vh;grid-template-rows:auto 1fr auto;}
/* sc-component-id: sc-bxivhb */
.ftLppl{background-color:#fff;color:#352f4a;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-transition:height 0.1s ease-out;transition:height 0.1s ease-out;height:30vh;position:normal;box-shadow:none;z-index:99;padding:0;} @media (max-width:800px){.ftLppl{height:40vh;}}
/* sc-component-id: sc-ifAKCX */
.gcWijQ{max-width:700px;width:100%;height:100%;}
/* sc-component-id: sc-EHOje */
.dEQjuT{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%;text-align:center;} @media (max-width:800px){.dEQjuT{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}}
/* sc-component-id: sc-bZQynM */
.dIQqqn{font-size:4.5rem;font-weight:400;line-height:3rem;-webkit-letter-spacing:0.7px;-moz-letter-spacing:0.7px;-ms-letter-spacing:0.7px;letter-spacing:0.7px;-webkit-transition:font-size 1s ease;transition:font-size 1s ease;} @media (max-width:800px){.dIQqqn{font-size:4rem;}}
/* sc-component-id: sc-gzVnrw */
.dLTSNx{font-size:0.8em;color:#3ea7bb;margin:0 .6rem 0 .5rem;}
/* sc-component-id: sc-htoDjs */
.bVMWVy{font-size:1.35rem;color:#35304ab0;line-height:1.6;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-weight:normal;-webkit-transition:font-size 0.5s ease;transition:font-size 0.5s ease;margin-top:1rem;} @media (max-width:800px){.bVMWVy{font-size:1.2rem;margin-top:0.7rem;}}
/* sc-component-id: sc-fjdhpX */
.ffaTEG{color:#35304ab0;font-size:1.35rem;white-space:break-spaces;display:block;} @media (max-width:550px){}
/* sc-component-id: sc-jzJRlG */
.jUUdTu{margin:0 0.8rem;font-weight:bold;}
/* sc-component-id: sc-cSHVUG */
.bxxfjM{margin-right:1rem;}
/* sc-component-id: sc-kkGfuU */
.cCQxnx{margin:0 -2rem;}
/* sc-component-id: sc-iAyFgw */
.niVcu{padding:2rem;} .niVcu:not(:last-child){margin-bottom:2rem;} .niVcu:hover{background-color:#ececec;}
/* sc-component-id: sc-hSdWYo */
.fCQAfD{display:block;} .fCQAfD > *:not(:last-child){margin-bottom:0.8rem;}
/* sc-component-id: sc-eHgmQL */
.ldANAy{grid-area:title;color:#352f4a;font-weight:bold;font-size:3.2em;font-size:2em;line-height:3rem;} @media (max-width:550px){.ldANAy{font-size:2.8em;}} @media (max-width:800px){.ldANAy{font-size:2em;line-height:3rem;}}
/* sc-component-id: sc-cvbbAY */
.chRtMh{font-size:1.5rem;grid-area:excerpt;line-height:2.5rem;opacity:.8;} @media (max-width:800px){.chRtMh{font-size:1.4rem;}}
/* sc-component-id: sc-jWBwVP */
.eZMClE{max-width:700px;margin:0 auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2rem;}
/* sc-component-id: sc-brqgnP */
@media (max-width:800px){.eqLBjy{padding:0;}}</style><style type="text/css">
.anchor {
float: left;
padding-right: 4px;
margin-left: -20px;
}
h1 .anchor svg,
h2 .anchor svg,
h3 .anchor svg,
h4 .anchor svg,
h5 .anchor svg,
h6 .anchor svg {
visibility: hidden;
}
h1:hover .anchor svg,
h2:hover .anchor svg,
h3:hover .anchor svg,
h4:hover .anchor svg,
h5:hover .anchor svg,
h6:hover .anchor svg,
h1 .anchor:focus svg,
h2 .anchor:focus svg,
h3 .anchor:focus svg,
h4 .anchor:focus svg,
h5 .anchor:focus svg,
h6 .anchor:focus svg {
visibility: visible;
}
</style><script>
document.addEventListener("DOMContentLoaded", function(event) {
var hash = window.decodeURI(location.hash.replace('#', ''))
if (hash !== '') {
var element = document.getElementById(hash)
if (element) {
var offset = element.offsetTop
// Wait for the browser to finish rendering before scrolling.
setTimeout((function() {
window.scrollTo(0, offset - 0)
}), 0)
}
}
})
</script><title data-react-helmet="true">code & such</title><link data-react-helmet="true" rel="icon" type="image/png" sizes="16x16" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF0WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlL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4a"/><style id="gatsby-inlined-css">pre{color:#1b1b1b;background-color:#f8f8f8}.token.cdata,.token.doctype,.token.prolog{color:#3ea7bb}.token.punctuation{color:#5f6364}.token.block-comment,.token.comment{color:#b3b9bb}.token.atrule,.token.attr-value,.token.boolean,.token.constant,.token.deleted,.token.function-name,.token.keyword,.token.number,.token.property,.token.symbol,.token.tag{color:#f05f40}.token.attr-name,.token.builtin,.token.char,.token.class-name,.token.function,.token.inserted,.token.selector,.token.string{color:#3ea7bb}.token.entity,.token.important,.token.operator,.token.regex,.token.url,.token.variable{color:#9756e1}.language-css .token.string,.style .token.string{color:#3ea7bb}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.namespace{opacity:.7}.token.cr:before,.token.lf:before,.token.tab:not(:empty):before{color:#e0d7d1}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:100;src:local("Montserrat Thin "),local("Montserrat-Thin"),url(/static/montserrat-latin-100.191cc9f5.woff2) format("woff2"),url(/static/montserrat-latin-100.37031846.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:100;src:local("Montserrat Thin italic"),local("Montserrat-Thinitalic"),url(/static/montserrat-latin-100italic.bdeaeb79.woff2) format("woff2"),url(/static/montserrat-latin-100italic.ecf7d493.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:200;src:local("Montserrat Extra Light "),local("Montserrat-Extra Light"),url(/static/montserrat-latin-200.85d5ef9d.woff2) format("woff2"),url(/static/montserrat-latin-200.1fc98e12.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:200;src:local("Montserrat Extra Light italic"),local("Montserrat-Extra Lightitalic"),url(/static/montserrat-latin-200italic.49095760.woff2) format("woff2"),url(/static/montserrat-latin-200italic.fe46cf8b.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:300;src:local("Montserrat Light "),local("Montserrat-Light"),url(/static/montserrat-latin-300.7c3daf12.woff2) format("woff2"),url(/static/montserrat-latin-300.8dc95fab.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:300;src:local("Montserrat Light italic"),local("Montserrat-Lightitalic"),url(/static/montserrat-latin-300italic.f20b178c.woff2) format("woff2"),url(/static/montserrat-latin-300italic.3fe16939.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:400;src:local("Montserrat Regular "),local("Montserrat-Regular"),url(/static/montserrat-latin-400.bc3aa95d.woff2) format("woff2"),url(/static/montserrat-latin-400.8102c483.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:400;src:local("Montserrat Regular italic"),local("Montserrat-Regularitalic"),url(/static/montserrat-latin-400italic.5cad6504.woff2) format("woff2"),url(/static/montserrat-latin-400italic.d191f22a.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:500;src:local("Montserrat Medium "),local("Montserrat-Medium"),url(/static/montserrat-latin-500.92d16e45.woff2) format("woff2"),url(/static/montserrat-latin-500.8b763220.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:500;src:local("Montserrat Medium italic"),local("Montserrat-Mediumitalic"),url(/static/montserrat-latin-500italic.47bfcca6.woff2) format("woff2"),url(/static/montserrat-latin-500italic.72c01f75.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:600;src:local("Montserrat SemiBold "),local("Montserrat-SemiBold"),url(/static/montserrat-latin-600.6fb1b562.woff2) format("woff2"),url(/static/montserrat-latin-600.7c839d15.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:600;src:local("Montserrat SemiBold italic"),local("Montserrat-SemiBolditalic"),url(/static/montserrat-latin-600italic.60789af1.woff2) format("woff2"),url(/static/montserrat-latin-600italic.f3d4de8d.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:700;src:local("Montserrat Bold "),local("Montserrat-Bold"),url(/static/montserrat-latin-700.39d93cf6.woff2) format("woff2"),url(/static/montserrat-latin-700.80f10bd3.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:700;src:local("Montserrat Bold italic"),local("Montserrat-Bolditalic"),url(/static/montserrat-latin-700italic.ba136d97.woff2) format("woff2"),url(/static/montserrat-latin-700italic.8c98142b.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:800;src:local("Montserrat ExtraBold "),local("Montserrat-ExtraBold"),url(/static/montserrat-latin-800.b7018be9.woff2) format("woff2"),url(/static/montserrat-latin-800.9a9befcf.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:800;src:local("Montserrat ExtraBold italic"),local("Montserrat-ExtraBolditalic"),url(/static/montserrat-latin-800italic.540ffdd2.woff2) format("woff2"),url(/static/montserrat-latin-800italic.897086f9.woff) format("woff")}@font-face{font-family:Montserrat;font-style:normal;font-display:swap;font-weight:900;src:local("Montserrat Black "),local("Montserrat-Black"),url(/static/montserrat-latin-900.58cd7897.woff2) format("woff2"),url(/static/montserrat-latin-900.26d42c94.woff) format("woff")}@font-face{font-family:Montserrat;font-style:italic;font-display:swap;font-weight:900;src:local("Montserrat Black italic"),local("Montserrat-Blackitalic"),url(/static/montserrat-latin-900italic.451157bc.woff2) format("woff2"),url(/static/montserrat-latin-900italic.a8ec4957.woff) format("woff")}</style></head><body><div id="___gatsby"><div class="sc-htpNat eQDUlF"><main class="sc-jWBwVP eZMClE"><a class="sc-bxivhb ftLppl" href="/"><header class="sc-ifAKCX gcWijQ"><div class="sc-EHOje dEQjuT"><h1 class="sc-bZQynM dIQqqn">code<span class="sc-gzVnrw dLTSNx">&</span>such</h1><h4 class="sc-htoDjs bVMWVy">A blog about code, and such.</h4></div></header></a><div class="sc-brqgnP eqLBjy"><div class="sc-kkGfuU cCQxnx"><article class="sc-iAyFgw niVcu"><a class="sc-hSdWYo fCQAfD" href="/simplify-backticks"><h1 class="sc-kGXeez sc-eHgmQL ldANAy">Simplify backticks in macOS on a Scandinavian keyboard layout</h1><small class="sc-fjdhpX ffaTEG"><a>Kalle Bornemark</a><span class="sc-jzJRlG jUUdTu">•</span>2019-04-22<span class="sc-jzJRlG jUUdTu">•</span><span class="sc-cSHVUG bxxfjM">☕</span>3 min read</small><p class="sc-cvbbAY chRtMh">As a developer, I use backticks ( ) frequently to highlight code in Markdown files. Once you get into the habit of using them, you start to realize that they’re available in a lot of places. Websites closely related to code, such as…</p></a></article><article class="sc-iAyFgw niVcu"><a class="sc-hSdWYo fCQAfD" href="/container-security"><h1 class="sc-kGXeez sc-eHgmQL ldANAy">Container security</h1><small class="sc-fjdhpX ffaTEG"><a>Daniel Löfquist</a><span class="sc-jzJRlG jUUdTu">•</span>2019-01-25<span class="sc-jzJRlG jUUdTu">•</span><span class="sc-cSHVUG bxxfjM">☕</span>5 min read</small><p class="sc-cvbbAY chRtMh">These days it seems everybody is either using container technology or looking to use it soon. In every technology trend, there is something that is too often forgotten about in the frenzy of eagerness to use the new and exiting tools…</p></a></article><article class="sc-iAyFgw niVcu"><a class="sc-hSdWYo fCQAfD" href="/extensions-sept-18"><h1 class="sc-kGXeez sc-eHgmQL ldANAy">My essential VS Code extensions as of September 2018</h1><small class="sc-fjdhpX ffaTEG"><a>Kalle Bornemark</a><span class="sc-jzJRlG jUUdTu">•</span>2018-09-23<span class="sc-jzJRlG jUUdTu">•</span><span class="sc-cSHVUG bxxfjM">☕</span>4 min read</small><p class="sc-cvbbAY chRtMh">One of the things I enjoy most as a developer is to continuously find new ways to improve my workflow and work environment. I’m thus always on the lookout for new helpful tweaks and extensions. Here’s a list of my must-have VS Code…</p></a></article><article class="sc-iAyFgw niVcu"><a class="sc-hSdWYo fCQAfD" href="/conditional-array-object-literals"><h1 class="sc-kGXeez sc-eHgmQL ldANAy">Conditionally adding entries to array and object literals in JavaScript</h1><small class="sc-fjdhpX ffaTEG"><a>Kalle Bornemark</a><span class="sc-jzJRlG jUUdTu">•</span>2018-08-31<span class="sc-jzJRlG jUUdTu">•</span><span class="sc-cSHVUG bxxfjM">☕</span>3 min read</small><p class="sc-cvbbAY chRtMh">The problem A common way to define an array in JavaScript is to use an array literal. However, it’s sometimes desirable to populate the array conditionally based on the value of some variable. Perhaps you’ve attempted to accomplish…</p></a></article><article class="sc-iAyFgw niVcu"><a class="sc-hSdWYo fCQAfD" href="/webpack-aliases-typescript"><h1 class="sc-kGXeez sc-eHgmQL ldANAy">Using Webpack aliases with Typescript and Jest</h1><small class="sc-fjdhpX ffaTEG"><a>Kalle Bornemark</a><span class="sc-jzJRlG jUUdTu">•</span>2018-08-14<span class="sc-jzJRlG jUUdTu">•</span><span class="sc-cSHVUG bxxfjM">☕</span>2 min read</small><p class="sc-cvbbAY chRtMh">This small tutorial will show you how to set up Webpack aliases for your Typescript and Jest project. The problem Importing files with relative paths is fine in small projects, but once the project starts growing it can become a…</p></a></article></div></div></main><footer class="sc-bdVaJa eNtQGD">MIT Ⓒ <a href="https://kallebornemark.github.io/" class="sc-bwzfXH cmGiRa">Kalle Bornemark</a></footer></div></div><script id="webpack-manifest">/*<![CDATA[*/window.webpackManifest={"231608221292675":"app-a73c820fa388184a3084.js","99219681209289":"component---node-modules-gatsby-plugin-offline-app-shell-js-5c4c5a0f7af9dc69d6d7.js","30862416422887":"component---src-templates-post-tsx-4438bf9303670ff1cc16.js","178469467687848":"component---src-pages-404-tsx-9e0a50f5039fbf8c8c03.js","221374088121123":"component---src-pages-index-tsx-eea98b07b7c73648fd3c.js","60335399758886":"path----557518bd178906f8d58a.js","210333531512890":"path---offline-plugin-app-shell-fallback-a0e39f21c11f6a62c5ab.js","228344554384884":"path---extensions-sept-18-c0ce872e02e0348c4fb3.js","109763708754463":"path---webpack-aliases-typescript-dac3aa2cce8355edc53a.js","266549308373791":"path---container-security-71692cababaae6b4ed78.js","204281452866430":"path---simplify-backticks-3c377fce8fb844cf0f34.js","195004302411781":"path---conditional-array-object-literals-b5ddb1cedf229ae12468.js","254022195166212":"path---404-a0e39f21c11f6a62c5ab.js","142629428675168":"path---index-929013ded32a1a0ba14a.js","178698757827068":"path---404-html-a0e39f21c11f6a62c5ab.js","22676092666560":"component---src-layouts-index-tsx-e4ce13453f3d99aaf35d.js"}/*]]>*/</script><script>
if(true) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
}
if (typeof ga === "function") {
ga('create', 'UA-41576939-5', 'auto');
}
</script><script>/*<![CDATA[*/["/commons-e8ba142de36a99798fa1.js","/app-a73c820fa388184a3084.js","/path---index-929013ded32a1a0ba14a.js","/component---src-pages-index-tsx-eea98b07b7c73648fd3c.js","/component---src-layouts-index-tsx-e4ce13453f3d99aaf35d.js"].forEach(function(s){document.write('<script src="'+s+'" defer></'+'script>')})/*]]>*/</script></body></html>