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
| export NVM_DIR="$HOME/.nvm" | |
| # Timing functionality provided by this Unix Stack Exchange answer: | |
| # https://unix.stackexchange.com/questions/52313/how-to-get-execution-time-of-a-script-effectively/52347#52347 | |
| function load_nvm() { | |
| start=`date +%s` | |
| echo 'Loading nvm...' | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" |
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
| from collections import defaultdict | |
| from graphlib import TopologicalSorter | |
| from heapq import heappush, heappop, heapify | |
| def topo_lex(pairs): | |
| deps = defaultdict(set) # node -> set(dependencies) | |
| for a, b in pairs: | |
| deps.setdefault(a, set()) | |
| deps[b].add(a) |
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
| #!/bin/bash | |
| set +o xtrace | |
| PS4='${LINENO}: ' | |
| # Provisiona o Keycloak | |
| output_keycloak="$(docker run --name my-keycloak -p PORTA_HOST_KEYCLOAK:PORTA_CONTAINER_KEYCLOAK -e "kc_bootstrap_admin_username={insira seu nome de administrador aqui}" -e "KC_BOOTSTRAP_ADMIN_PASSWORD={insira sua senha aqui}" -d quay.io/keycloak/keycloak:26.1.4 start-dev --features authorization,organization 2>&1> /dev/null)" | |
| if [ $? -ne 0 ]; then | |
| output_keycloak="$(docker ps --all | grep -i -c my-keycloak)" | |
| if [ $output_keycloak -eq 0 ]; then |
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 pytest | |
| import funcoes.equacoes_estado_gases as eeg | |
| case1 = ( | |
| 1.1832, | |
| 4.0968e-05, | |
| 2850016, | |
| 1e-05, | |
| 450, | |
| 10000, |
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
| # Os dados estão presentes no repositório big query da base dos dados | |
| SELECT id_municipio, | |
| count(*) as quantidade_nivel_superior, | |
| ( select count(*) | |
| from `basedosdados.br_me_rais.microdados_vinculos` vinc_sub | |
| where vinc_sub.id_municipio = vinc.id_municipio and | |
| ano = 2023 and | |
| vinculo_ativo_3112 ="1" and | |
| natureza_juridica = "1244") as total_servidores_municipio, #1244= município |
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
| // Get all computed styles of a page | |
| class Stack { | |
| constructor() { | |
| this.stack = []; | |
| } | |
| push(element) { | |
| this.stack.push(element); | |
| } |
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
| public void AddRating(string productId, int rating) | |
| { | |
| var products = GetProducts(); | |
| var query = products.First(x => x.Id == productId); | |
| if(query.Ratings == null) | |
| { | |
| query.Ratings = new int[] { rating }; | |
| } | |
| else |
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
| 0-mail.com | |
| 007addict.com | |
| 020.co.uk | |
| 027168.com | |
| 0815.ru | |
| 0815.su | |
| 0clickemail.com | |
| 0sg.net | |
| 0wnd.net | |
| 0wnd.org |
NewerOlder