Skip to content

Instantly share code, notes, and snippets.

Bruno Gola bgola

Block or report user

Report or block bgola

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bgola
bgola / markov.py
Created Oct 2, 2019
creative coding jam
View markov.py
#!/usr/bin/python
import random, sys
from numpy.random import choice
bible = open("bible.txt").read()
com = open("com.txt").read()
di = None
d = {}
bible_words = bible.split()
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View noisemandalas.pde
float f;
float step_i = 0.05;
float step_j = 0.05;
boolean savegif;
int nd = 6;
void setup() {
//size(851, 315);
size(1200, 800);
colorMode(HSB);
View gliders.pde
int CELL_SIZE = 2;
ArrayList tolive;
ArrayList todie;
boolean[][] grid;
int f(int v) {
return (int)v*CELL_SIZE;
}
View juliabw.pde
class Complex {
double real;
double img;
public Complex(double real, double img) {
this.real = real;
this.img = img;
}
public Complex multi(Complex b) {
View julia.pde
class Complex {
double real;
double img;
public Complex(double real, double img) {
this.real = real;
this.img = img;
}
public Complex multi(Complex b) {
View disorder.pde
import java.util.Map;
PImage img;
int sf=0;
float frame = 0;
void setup() {
size(851, 315);
img = loadImage("path");
img.resize(width, height);
View order.pde
import java.util.Map;
PImage img;
float line_size = 30;
float space = 20;
int sf=0;
float frame = 0;
void setup() {
size(700, 700);
img = loadImage("/home/bgola/fotos/me/mequadrado2.jpg");
View gameoflife_term.py
import os, random, time, fcntl, termios, struct
# SETUP
BACKGROUND=" "
FILL="."
BUFFER = []
FRAMERATE = 20
# To get terminal number of lines and columns
def ioctl_GWINSZ(fd):
View midkov.py
#!/usr/bin/python2
# coding: utf-8
import re, datetime, random, mido, sys, time
data = {}
def split(seq):
for i in range(len(seq) - 2):
yield tuple(seq[i:i+3])
You can’t perform that action at this time.