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
// Visit: https://www.linkedin.com/in/edupsousa/details/skills/ (change edupsousa by your username) | |
// Open the Chrome DevTools console and use the code below | |
let els = [...document.querySelectorAll('a[data-field="skill_page_skill_topic"]')]; | |
let skills = [...new Set(els.flatMap(el => el.href.split('?')[1].split('&').map(v => v.split('=')).filter(v => v[0] === 'keywords').flat()).filter(v => v !== 'keywords').map(decodeURIComponent).map(v => v.replaceAll('+',' ')))].sort(); | |
console.log(JSON.stringify(skills)) |
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
#! /bin/bash | |
set -eu | |
# find path to liblzma used by sshd | |
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')" | |
# does it even exist? | |
if [ "$path" == "" ] | |
then |
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
type HeapNodeCompareFn<T> = (a: T, b: T) => number; | |
class Heap<T> { | |
private nodes: T[]; | |
private compare: HeapNodeCompareFn<T>; | |
constructor(compareFn: HeapNodeCompareFn<T>, nodes: T[] = []) { | |
this.compare = compareFn; | |
this.nodes = nodes; |
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
wmctrl -r :ACTIVE: -e 0,-1,-1,1920,1080 |
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
.titulo { | |
font-weight: bold; | |
font-size: 2em; | |
} |
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
module.exports = { | |
env: { | |
browser: true, | |
es2021: true, | |
}, | |
parserOptions: { | |
sourceType: "module", | |
}, | |
rules: { | |
"no-console": "warn", |
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
package aula3; | |
import java.util.Random; | |
class Exemplos { | |
public static void main(String[] args) { | |
int[] valores; | |
boolean encontrado; |
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
const vogais = ["a", "e", "i", "o", "u"]; | |
function Lista() { | |
return ( | |
<ul> | |
{vogais.map((letra) => ( | |
<li>{letra}</li> | |
))} | |
</ul> | |
); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<link | |
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" | |
rel="stylesheet" | |
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" |
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
Aluno | Semestre | Disciplina | Nota | |
---|---|---|---|---|
Ana | 1 | Matemática | 1 | |
Ana | 1 | Português | 6 | |
Ana | 2 | Física | 8 | |
Ana | 2 | História | 8 | |
Beatriz | 1 | Matemática | 7 | |
Beatriz | 1 | Português | 5 | |
Beatriz | 2 | Física | 4 | |
Beatriz | 2 | História | 8 | |
Carlos | 1 | Matemática | 4 |
NewerOlder