Skip to content

Instantly share code, notes, and snippets.

@ng-the-engineer
ng-the-engineer / data.ts
Created January 19, 2021 21:24
Code snipper: data.ts
export const fetch = async () => {
const result = '';
return result;
};
@ng-the-engineer
ng-the-engineer / data.ts
Created January 19, 2021 21:43
Code snipper: replace data.ts
import axios from "axios";
export const fetch = async () =>
await axios.get("https://api.spacexdata.com/v4/launches/latest");
@ng-the-engineer
ng-the-engineer / data.spec.ts
Created January 24, 2021 04:42
Code snippet - mocked response
const mockedResponse: AxiosResponse = {
data: {
name: "Henry",
},
status: 200,
statusText: "OK",
headers: {},
config: {},
};
.grid-container {
display: grid;
padding: 0 0;
}
.container-column-2 {
grid-template-columns: 50% 50%;
}
@ng-the-engineer
ng-the-engineer / header.css
Created April 22, 2021 07:23
Code snippet for CV
.cv-name {
color: #40739e;
font-family: "Tinos", serif;
font-size: 35px;
}
@ng-the-engineer
ng-the-engineer / index.html
Created April 22, 2021 07:24
Code snippet of CV
<link rel="stylesheet" type="text/css" href="css/grid.css" />
<link rel="stylesheet" type="text/css" href="css/header.css" />
@ng-the-engineer
ng-the-engineer / index.html
Created April 22, 2021 07:27
Code snippet of CV
<link href="https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"/>
@ng-the-engineer
ng-the-engineer / index.html
Created April 22, 2021 07:28
Code snippet of CV
<div class="grid-container container-column-2">
<div>
<div class="cv-name">John Doe</div>
</div>
<div>
<ul>
<li>john.doe@gmail.com</li>
<li>linkedlin url</li>
<li>+44 7890 123456</li>
</ul>
@ng-the-engineer
ng-the-engineer / header.css
Created April 22, 2021 07:33
Code snippet of CV
.contacts {
list-style: none;
float: right;
margin: 0 0;
font-size: 10px;
}
.contact-item {
font-size: 8px;
font-family: "Saira Extra Condensed", sans-serif;
@ng-the-engineer
ng-the-engineer / index.html
Created April 22, 2021 07:35
Code snippet of CV
<ul class="contacts">
<li><span class="contact-item">john.doe@gmail.com</span></li>
<li><span class="contact-item">linkedlin url</span></li>
<li><span class="contact-item">+44 7890 123456</span></li>
</ul>