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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], | |
[0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0], | |
[1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], | |
[0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0], | |
[0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], | |
[1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], |
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 asyncio | |
import json | |
from functools import partial | |
from typing import Any, Dict, List, Optional, Type, TypeVar, Union | |
import httpx | |
from pydantic import BaseModel, Field | |
T = TypeVar("T", bound=BaseModel) |
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 uuid import uuid4 | |
from collections import defaultdict | |
import uuid | |
from pydantic import BaseModel, Field | |
from pydantic.types import UUID4 | |
from sqlalchemy import Column, MetaData, Table, create_engine, text, ForeignKey | |
from sqlalchemy.sql import select | |
from sqlalchemy.dialects import postgresql | |
DATABASE_NAME = "sqlalchemy_test" |
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
version: '3.8' | |
services: | |
pms-docker: | |
container_name: plex | |
network_mode: host | |
hostname: plex | |
# runtime: nvidia | |
environment: | |
- TZ=America/Sao_Paulo | |
- PLEX_UID=1000 |
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
const timer = ms => new Promise(res => setTimeout(res, ms)) | |
async function search(content) { | |
// // adjust the zoom level | |
// get list of jobs | |
let has_jobs = true | |
while (has_jobs) { | |
let scrolling = 0 | |
const pg_button = document.getElementsByClassName("artdeco-pagination__indicator selected") | |
const next = pg_button[0].nextElementSibling | |
const jobs = document.getElementsByClassName("job-card-list__entity-lockup") |
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
repos: | |
- repo: https://github.com/jumanjihouse/pre-commit-hooks | |
rev: master | |
hooks: | |
- id: forbid-space-in-indent | |
types: [python] |
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
#!/usr/bin/env bash | |
curl -m 1 https://economia.awesomeapi.com.br/last/USD-BRL | jq -r '.USDBRL.bid' | awk '{print "BRL "$0}' |
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 | |
echo $(pip install --upgrade youtube-dl) | |
echo $(youtube-dl -f 251 https://www.youtube.com/watch?v=mjjkHg5FOhk -o - | ffplay -nodisp -autoexit -i -) |
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 | |
echo $(pip install --upgrade youtube-dl) | |
args=("$@") | |
echo $args | |
echo $(youtube-dl -f 251 ${args[0]} -o - | ffplay -nodisp -autoexit -i -) |
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 | |
default_db="heroku config:get DATABASE_URL --app " | |
args=("$@") | |
DATABASE_URL=$($default_db ${args[0]}) | |
PG_WEB="pgweb --url" | |
echo $(xdg-open http://localhost:8081/) | |
echo $($PG_WEB $DATABASE_URL) |
NewerOlder