This file contains hidden or 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 hidden or 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 32 hrs 35 mins ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣀⣀⣀⣀ 76,07 % | |
| SVELTE 7 hrs 45 mins ⣿⣿⣿⣿⣦⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 18,04 % | |
| METAL 2 hrs 16 mins ⣿⣤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 05,29 % | |
| RUST 12 mins ⣄⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀ 00,51 % |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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