Skip to content

Instantly share code, notes, and snippets.

View squiter's full-sized avatar

Brunno dos Santos squiter

View GitHub Profile

Keybase proof

I hereby claim:

  • I am squiter on github.
  • I am squiter (https://keybase.io/squiter) on keybase.
  • I have a public key ASDgxPVHnRyB_vm4cU9MOyUgzytWD4tNcvMBCYaLhqgezQo

To claim this, I am signing this object:

@squiter
squiter / gpg.org
Created October 19, 2017 20:28
GPG Personal Guide

GPG - Personal Guide

[2017-10-17 Tue 17:50]

I have some issues to cache my passphrase in Ubuntu. To fix it I change my default gpg binary to gpg2

Verifying my Blockstack ID is secured with the address 1GAX1DS5Fv3Y4wJUri8aKe3rzY18my473H https://explorer.blockstack.org/address/1GAX1DS5Fv3Y4wJUri8aKe3rzY18my473H
@squiter
squiter / with_or_pipe.ex
Created April 7, 2025 14:36
With vs Pipes
defmodule ArticleBuilder do
def generate_content(topic) do
initial_messages = [
%{role: :system, content: "You are an expert at crafting SEO friendly blog articles"}
]
with {:outline, {:ok, _outline, outline_messages}} <-
{:outline, create_outline(initial_messages, topic)},
{:article, {:ok, article, _article_messages}} <-
{:article, create_article(outline_messages)},
@squiter
squiter / dice_roller.js
Last active April 17, 2025 22:42
🎲 Dice Roller Script for Google Spreadsheets
function handleD20Roll(mode) {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
const cell = sheet.getActiveCell();
const cellValue = cell.getValue();
const cellStr = String(cellValue).toLowerCase().replace(/\s+/g, "");
const ui = SpreadsheetApp.getUi();
let total = 0;
let formulaLog = "";
let rolls = [];