Skip to content

Instantly share code, notes, and snippets.

View pLabarta's full-sized avatar

pablito テ pLabarta

  • Buenos Aires, Argentina
  • 14:28 (UTC -03:00)
View GitHub Profile

Instalar NDI y OBS-NDI en Linux

Descargar NDI-SDK

https://ndi.video/sdk/

Te va a descargar un .sh horrible que te tira las librerias en una carpeta llamada "NDI SDK for Linux". Tocando Q pasas por los T&C y escribis Y para aceptar.

Instalar el plugin OBS-NDI

@pLabarta
pLabarta / schotter.rs
Created December 10, 2021 11:57
Schotter en Rust
use nannou::prelude::*;
const ROWS: u32 = 22;
const COLS: u32 = 12;
const SIZE: u32 = 30;
const MARGIN: u32 = 35;
const WIDTH: u32 = COLS * SIZE + 2 * MARGIN;
const HEIGHT: u32 = ROWS * SIZE + 2 * MARGIN;
const LINE_WIDTH: f32 = 0.06;
@pLabarta
pLabarta / gist:6d64c7857b926319d360ca01f3838920
Last active November 9, 2021 19:01
flowFieldConCirculitos.js
const scl = 20;
let cols, rows;
const inc = 0.1;
let fr;
let zoff = 0;
let particles = [];
let flowfield;
let maxspeed = 5;
let forcePower = 2;
@pLabarta
pLabarta / actividadclase3.pde
Created April 18, 2021 15:29
Actividad clase 3
float grow = 0.1;
float angle = (0.3 * 90) * (3.1415 / 180);
color treeColor = color(140, 170, 50);
float branchLength;
void setup () {
size(1000, 1000);
frameRate(40);
}
float clock = 0;
int moonCount = 20;
Moon [] moonList = new Moon[moonCount];
void setup() {
size(1600,900);
background(0);
frameRate(60);
for (int i = 0; i < moonCount; i++) {
moonList[i] = new Moon(random(1000), random(1)*4);
@pLabarta
pLabarta / leparc.pde
Created March 20, 2021 11:37
Actividades Processing Clase 1
void setup() {
//background(225, 210, 70);
size(900,900);
frameRate(24);
}
float[] pos_x = {-12,-8.0,0,8.0,12,8.0,0,-8.0};
float[] pos_y = {0,-8.0,-12,-8.0,0,8.0,12,8.0};
int red = 0;
d2 >> play("-",dur=PRand([0.25,0.5,0.25,0.5,1])).stop()
d1.reset() >> play("X ",dur=0.125,sample=2)
d1.stop()
d7 >> play(" *",sample=3).stop()
b1.reset() >> star(PWalk(1), dur=PSum([6,8],4),amp=0.6,oct=5, drive=0.06,
formant=notalways([0,2]),chop=0)

Decred Hackathons and LATAM Initial Chapter

What

This proposal seeks to fund 6 months of work towards developing online hackathon organization playbook and tools. This playbook goal is to help efficiently organize this kind of online events independently from third party event organizers/companies.

This playbook goal is to help streamline the process and avoid common pitfalls, mainly: avoid third party organization of the event, avoid sponsorship costs, avoid time consuming meetings and problems related to particular participants. We have already organized one hackathon in LATAM and we plan to continue to test this new playbook in the region.

It has 3 core projects:

@pLabarta
pLabarta / blockchain.md
Created November 13, 2020 19:51
Introducción a Blockchain con dcrdata

Introducción a Blockchain con dcrdata

  1. Qué es una Blockchain

    1. Bloque
    2. Cadena
    3. El consenso y los datos
  2. Qué es un explorador de bloques

    1. Acceso a los datos
    2. Visualizaciones
import requests
from datetime import datetime, timedelta
# Historical series by days
ticket_data = requests.get("https://explorer.dcrdata.org/api/chart/ticket-price?axis=time&bin=window").json()
# Current Stake/Ticket Info
current_ticket_data = requests.get("https://explorer.dcrdata.org/api/stake/diff").json()
print(current_ticket_data)