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 pandas as pd | |
import operator as op | |
from functools import partial | |
from datetime import datetime | |
def eval(node, df): | |
if not isinstance(node, tuple | str): | |
return node | |
if isinstance(node, str): |
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 re | |
import json | |
import contextlib | |
from itertools import chain | |
from urllib.request import urlopen | |
from urllib.parse import urlparse | |
from datetime import datetime | |
import pandas | |
import matplotlib.pyplot as plt |
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
from __future__ import annotations | |
from dataclasses import dataclass, replace | |
from typing import Callable, Generic, Literal, Optional, TypeVar, Union, cast | |
Player = Union[Literal['X'], Literal['O']] | |
Piece = Union[Player, Literal[' ']] | |
@dataclass |
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
diff -u --recursive --text xinput-1.6.3.orig/src/list.c xinput-1.6.3/src/list.c | |
--- xinput-1.6.3.orig/src/list.c 2021-02-03 11:40:47.405550058 -0300 | |
+++ xinput-1.6.3/src/list.c 2021-02-03 13:05:48.896505807 -0300 | |
@@ -374,13 +374,16 @@ | |
#if HAVE_XI2 | |
if (xinput_version(display) == XI_2_Major) | |
{ | |
- XIDeviceInfo *info = xi2_find_device_info(display, argv[arg_dev]); | |
+ int ndevs; | |
+ XIDeviceInfo **infos = xi2_find_all_devices_info(display, argv[arg_dev], &ndevs); |
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
["~\n`","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{w:2},"Backspace",{x:0.25},"Home","End"], | |
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\",{x:0.25},"Insert","PgUp"], | |
[{w:1.75},"Esc/Ctrl","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{w:2.25},"Enter",{x:0.25},"Delete","PgDn"], | |
[{w:2.25},"Shift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{w:2.75},"Shift"], | |
[{y:-0.75,x:15.25},"↑"], | |
[{y:-0.25,w:1.25},"Fn1",{w:1.25},"Fn2",{w:1.25},"Alt",{w:1.25},"Super",{a:7,w:6.25},"",{a:4,w:1.25},"Win",{w:1.25},"Menu"], | |
[{y:-0.75,x:14.25},"←","↓","→"] |
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
/** | |
* Recursive object key sort for predictable JSON serialization | |
*/ | |
function sortObject(obj) { | |
if (!obj || typeof obj !== "object") return obj; | |
if (Array.isArray(obj)) return obj.map(item => sortObject(item)); | |
return Object.keys(obj).sort().reduce((o, x) => (o[x] = sortObject(obj[x]), o), {}); | |
} | |
/** |
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
codigo | codcvm | cnpj | site | instituicao | |
---|---|---|---|---|---|
PATI3 | 94 | 92.693.019/0001-89 | www.panatlantica.com.br | ITAU CORRETORA ACOES | |
PATI4 | 94 | 92.693.019/0001-89 | www.panatlantica.com.br | ITAU CORRETORA ACOES | |
BAHI3 | 701 | 45.987.245/0001-92 | www.bahema.com.br | ITAUBANCO - ACOES | |
BBDC3 | 906 | 60.746.948/0001-12 | www.bradesco.com.br | BRADESCO | |
BBDC4 | 906 | 60.746.948/0001-12 | www.bradesco.com.br | BRADESCO | |
BAZA3 | 922 | 04.902.979/0001-44 | www.bancoamazonia.com.br | BRADESCO | |
BBAS11 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL | |
BBAS12 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL | |
BBAS3 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL |
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
Oh, [0;31mHi[0m! :D |
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 vtk | |
import vtkmodules.qt | |
vtkmodules.qt.PyQtImpl = 'PySide2' | |
from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor | |
from PySide2.QtWidgets import QApplication | |
app = QApplication([]) | |
renderer = vtk.vtkRenderer() | |
axes = vtk.vtkCubeAxesActor() |
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 | |
color=31 | |
for name in "$@"; do | |
yarn run "$name" | while IFS= read -r line; do | |
printf "\033[%dm$name:\033[0m %s\n" $color "$line" | |
done & | |
(( color++ )) | |
done | |
wait |
NewerOlder