Skip to content

Instantly share code, notes, and snippets.

View edgabaldi's full-sized avatar

Edgar Gabaldi edgabaldi

View GitHub Profile
@edgabaldi
edgabaldi / implement-jira-task-v2-diagram.md
Created July 7, 2026 20:56
implement-jira-task-v2 — workflow design diagram

implement-jira-task-v2

Hipótese: sessão contínua com skills carregadas no momento de uso substitui 9 nós de planejamento fragmentado e 7 nós de review fragmentado. 29 nós (v1) → 12 nós (v2).


Fluxo

@edgabaldi
edgabaldi / implement-jira-task-v7.md
Last active July 3, 2026 14:37
implement-jira-task-v8 — opus planning · plan-draft-validation · implement assembler

implement-jira-task-v7 — workflow diagram

v7 — plan-roadmap (sonnet) · plan-sections (um arquivo por seção) · 3 check nodes (sonnet) · task-manager haiku · implement-v2 LoopNode

flowchart TD
    A([start]) --> PF

    PF[pre-flight\nbash · stash + dirty + CodeArtifact]
@edgabaldi
edgabaldi / review-and-fix-my-pr-flow.md
Last active June 22, 2026 22:21
review-and-fix-my-pr workflow diagram

review-and-fix-my-pr — workflow diagram

flowchart TD
    A([start]) --> B

    B[checkout-pr-branch] --> C & D & RC

    subgraph ctx["Phase 1 — Context  (haiku · parallel)"]
        C[discovery-codebase\nwrite codebase-context.md]
const clean_pcp = (value) => {
new_value = value.replace('%', '').replace(',','.').replace('+','');
return parseFloat(new_value);
}
const circle_icon_green = $('<span class="text-success"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-circle-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="8"/></svg></span>');
const circle_icon_red = $('<span class="text-danger"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-circle-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="8"/></svg></span>');
$('.pid-8839-pcp').on('DOMSubtreeModified', function(){
const $this = $(this);
.row{ margin: 10px; }
.col{ padding: 5px; }
.card{
border-radius: 4px;
background: #fff;
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
transition: 0.1s transform cubic-bezier(0.155, 1.105, 0.295, 1.12), 0.1s box-shadow, 0.1s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
padding: 10px 80px 10px 10px;
cursor: pointer;
@edgabaldi
edgabaldi / deploy-keys.md
Created April 15, 2019 14:54 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem
def almost_equal(self, checked, correct, significant_digits=1):
"""
Função Quase Igual
"""
precision = 0.1 ** significant_digits
return abs(checked - correct) < precision
class PolygonAlmostEqualTestCase(TestCase):
"""
Testa a função "quase igual"
def point_in_polygon(point, polygon):
inside=False
j=len(polygon)-1
for i in range(len(polygon)):
if ((polygon[i][1]>point[1])!=(polygon[j][1]>point[1]) and (point[0]<(polygon[j][0]-polygon[i][0])*(point[1]-polygon[i][1])/( polygon[j][1] - polygon[i][1] ) + polygon[i][0])):
inside =not inside
j=i
return inside
@edgabaldi
edgabaldi / speed.js
Last active April 3, 2019 11:44
change video speed
class VideoSpeed {
constructor(){
this.video = document.getElementsByTagName("video").video
}
speed = () => {
return this.video.playbackRate
}
#!/bin/bash
for FILE in $(ls *.bin); do
LINHA=$(cat urls_to_download.txt | grep $FILE)
NEW_NAME=$(echo "$LINHA" | cut -d ";" -f 2)
mv -v $FILE $NEW_NAME
done