Skip to content

Instantly share code, notes, and snippets.

View pinei's full-sized avatar
🏠
Working from home

Pìnei pinei

🏠
Working from home
  • Petrobras
  • Rio de Janeiro, Brazil
View GitHub Profile
@pinei
pinei / README.md
Last active September 1, 2025 23:09
A Carousel component for Quartz v4.5

Description

What is a Carousel Component?

A carousel (also known as a slider or image gallery) is a UI component that displays a series of content items (in this case, images) in a rotating fashion. Users can navigate through the content using:

  • Navigation arrows (previous/next buttons)
  • Dot indicators (click to jump to specific slides)
  • Keyboard navigation (arrow keys)
  • Touch/swipe gestures (on mobile devices)
@pinei
pinei / README.md
Created January 11, 2024 00:04
Bluesky Firehose
@pinei
pinei / anbima-demo.py
Created January 11, 2024 00:02
ANBIMA REST API
import requests
import json
import base64
# Unusable codes
CLIENT_ID = 'EbYD8dKZ17w0'
AUT_ASCII = "EbYD8dKZ17w0:b1awDkIkqhqg"
URL_OAUTH = "https://api.anbima.com.br/oauth/access-token"
URL = "https://api.anbima.com.br"
@pinei
pinei / README.md
Created December 4, 2023 23:37
Bluesky Firehose Python

Bluesky Firehose

Usa o websocket do Bluesky para captura de posts em realtime

Cada post pode ser texto puro, resposta a outro post, pode conter imagens, link externo, etc.

Ref.: https://atproto.com/specs/event-stream

Tipos atribuidos a variável 'record':

  • atproto.xrpc_client.models.app.bsky.feed.post.Main
@pinei
pinei / bluesky_tools.md
Last active February 16, 2024 19:41
Bluesky tools

Active

  • SkyFeed - Web client with custom feed builder
  • Bluesky Feeds - Powerful custom feed builder (by @anianimals.moe)
  • Bluesky Feed Creator - Define your feeds using simple hashtag, emoji or word searches.
  • bsky.jazco.dev - Atlas - Engagement and interation social graph
  • t.ly/p5mYp - Atlas 3D alternative published at Code Pen (fetch from s3.jazco.io)
  • Bluesky Statistics - Top lists and stats
  • Twexit.nl - Experimental web app for the Bluesky social media platform (lot of features)
  • wolfgang.raios.xyz - Interactions, charts, and top lists (portuguese)
@pinei
pinei / promise_tests.js
Created January 19, 2023 03:50
Promise with Javascript
const work = async (id) => new Promise((resolve, reject) => {
setTimeout(() => {
console.log(`${(new Date()).toISOString()}: ${id}`)
resolve()
}, 1000)
});
async function test1() {
// parallel
@pinei
pinei / custom.css
Last active November 22, 2022 01:47
Obsidian Simple Custom CSS
/* Headers - Color */
.cm-header-1, .markdown-source-view h1
{
color: #FFFF00;
}
.cm-header-2, .markdown-source-view h2
{
color: #FFEA00;
@pinei
pinei / databricks-programming-guide.md
Last active July 27, 2022 13:12 — forked from ravila4/databricks-programming-guide.md
Databricks Programming Guidance

Databricks Programming Guidance

This document contains lessons learned with regard to Databricks programming, but also contains some best practices

Mapping to a Azure Data Lake Generation 2

blobname = "miraw"  
storageaccount = "rdmidlgen2"  
mountname = "/rdmi"

configs = {"fs.azure.account.auth.type": "OAuth",

@pinei
pinei / 0. README.md
Last active June 24, 2022 23:23
Databricks PySpark Utilities

Methods for DataFrames manipulation