Skip to content

Instantly share code, notes, and snippets.

View pLabarta's full-sized avatar

pablito テ pLabarta

  • Buenos Aires, Argentina
  • 02:55 (UTC -03:00)
View GitHub Profile
@pLabarta
pLabarta / dcrcomic-labitconf.md
Last active December 16, 2019 23:51
dcrcomic-labitconf

DCR Comic prints

We made 100 A4 full-color prints for the event. This included Spanish and English versions of the first five DCR Comics (Politeia, PoW, DEX, PoS and Privacy).

We had no booth, so we just handed them to whoever we talked to till we ran out of comics.

Interactions

  • Choose your own conversation:
  • Having five different DCR Comics allowed us to briefly present how diverse Decred is. After skimming through the comics, people usually asked about a particular topic and what Decred is doing.
@pLabarta
pLabarta / gist:cc38d9aa18dbdf6877a2790aeb960e7e
Created December 29, 2019 23:12
CLiC FoxDot Troop 20191229
## we should run FoxDot.start in our SuperColliders
p1 >> dbass(PRand([0,2,0,4, 5, 7]), dur=[1/3], amp=[0.25],pan = [-1, 0, 1], vib = 3, vibdepth = 0.02, chop = 6, lpf=Psine(), lpr=0.2)
p1.stop()
# TOTALLY AWESOME FELLOWS !!!! :D \O/
print(SynthDefs)
# this is great dude <3
## excelente
Scale.default='minorPentatonic'
x1 >> blip(PWalk(5)[:8],dur=PDur([2,3,[4,1],4],[8,8,4]), drive=0.1,
lpf=linvar([600,333],16), sus=x1.dur*1.5, oct=4) + var([(0,2),(2,4)],8)
x2.stop(0)
p2.stop()
@pLabarta
pLabarta / dcrsounds.py
Created January 26, 2020 14:55
Decred Sounds (dcrdata + FoxDot experiment)
# The DCR blockchain music project is back!
# Powered by dcrdata.org API, FoxDot and Supercollider
Scale.default='minorPentatonic'; Root.default=0
#Drums
d4.stop()
d1 >> play('X ', dur=var([1/2, 1/8],[6,2]))
d2 >> play(' * ')
Root.default = -3
Scale.default = 'lydian'
Clock.bpm=117
def changemode(root,scale):
Root.default.set(root)
Scale.default.set(scale)
### PLAYERS ###
c1 >> feel([3,3,4,5])
c2 >> glass([2,3,4],dur=4)
c3 >> star([8,7,8,5],dur=0.5,vol=0.3)
c4 >> play('=',dur=2,sus=1,[2,3,4])
#### PANEL 1
Scale.default = "minor"
Root.default.set("B")
Clock.bpm=80
m2 >> gong(var([p2.pitch],4), dur=1/4, pan=linvar([-1,1],4), amp=linvar([0,2],8)).sometimes("stutter", 4)
d2 >> play('w' ,dur=PSum([1,6],4), rate=1/4)

Decred Trivia Game

20 questions is a good target, we could pick all or just the best ones

  1. Decred's consensus is based on:

    1. Proof-of-Work

    2. Proof-of-Stake

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)
@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