This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Fros": "www.fros.dev", | |
"Raunt": "www.raunt.app", | |
"Crafta": "www.crafta.studio" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SWIFT 17 hrs 15 mins ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣀⣀⣀⣀⣀⣀ 73.70 % | |
METAL 7 hrs 45 mins ⣿⣿⣿⣿⣿⣷⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 23.59 % | |
PROTO 54 mins ⣤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 01.24 % | |
SVELTE 14 mins ⣄⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 00.75 % | |
RUST 12 mins ⣄⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 00.65 % | |
Other 1 min ⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 00.07 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
axios.get('https://api.github.com/users/ericviana') | |
.then (response => axios.get(response.data.repos_url)) | |
.then (repos => console.log(repos.data)) | |
.catch (error => console.log(error)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
async function fetchRepos () { | |
try { | |
const user = await axios.get('https://api.github.com/users/ericviana') | |
const repos = await axios.get(user.data.repos_url) | |
console.log(repos) | |
} catch (e) { | |
console.log(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-size: 40px 40px; | |
background-image: | |
linear-gradient(to right, grey 1px, transparent 1px), | |
linear-gradient(to bottom, grey 1px, transparent 1px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.main { | |
width: 100vw; | |
min-height: 100vh; | |
position: fixed; | |
display: flex; | |
justify-content: center; | |
padding: 120px 24px 160px 24px; | |
pointer-events: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.layoutControl.enabled": false, | |
"workbench.editor.tabSizing": "shrink", | |
"workbench.editor.limit.perEditorGroup": true, | |
"window.commandCenter": true, | |
"breadcrumbs.enabled": false, | |
"workbench.editor.showTabs": false, | |
"editor.minimap.autohide": true, | |
"workbench.activityBar.visible": false, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dijkstra(graph, startNode) { | |
const distances = {}; | |
const visited = {}; | |
const queue = []; | |
distances[startNode] = 0; | |
queue.push({ node: startNode, distance: 0 }); | |
while (queue.length > 0) { | |
queue.sort((a, b) => a.distance - b.distance); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function binarySearch(arr, target) { | |
let left = 0; | |
let right = arr.length - 1; | |
while (left <= right) { | |
let mid = Math.floor((left + right) / 2); | |
if (arr[mid] === target) { | |
return mid; | |
} else if (arr[mid] < target) { |
OlderNewer