Skip to content

Instantly share code, notes, and snippets.

Bernardo Augusto Godinho de Oliveira BernardoGO

Block or report user

Report or block BernardoGO

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
View gist:58d207bf230216496cfa0814f259bed5
pi@raspberrypi:~/cellular_automata $ make
g++ main.c -O0 -o main -std=c++11
./main
Regra: 30
Iteracoes: 100000
Celulas: 64
Total: 1128036912ns
pi@raspberrypi:~/cellular_automata $ make
g++ main.c -O0 -o main -std=c++11
./main
View gist:497a2697f4a8311a53a7bb3e13a461bc
#include<stdio.h>
#include<stdlib.h>
#include <sys/time.h>
#include <math.h>
#include<time.h>
#include <chrono>
#include <iostream>
#define BOOL(x) (!(!(x)))
@BernardoGO
BernardoGO / grafos.cc
Created Jun 11, 2017
PUC Minas - Grafos 2014/1
View grafos.cc
//=====================================================================
// BIBLIOTECAS
//=====================================================================
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <unistd.h>
#include <vector>
@BernardoGO
BernardoGO / onAdLoad.java
Last active Nov 2, 2016
AdMob Ad visible onLoad
View onAdLoad.java
//Add the following imports to the activity code
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
@BernardoGO
BernardoGO / fixtrec.py
Created Oct 1, 2016
Fix trec file for eval
View fixtrec.py
fixed = ""
with open('trec10.res') as f:
previous = ""
for line in f:
print(line)
if line.split()[2] == previous:
continue
previous = line.split("\t")[2]
fixed += line
View label.py
import tensorflow as tf
import sys
import cv2
from PIL import Image
import tensorflow as tf
import numpy as np
from random import randint
import os
import PIL
View steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
View steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
View steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
@BernardoGO
BernardoGO / monTemp.sh
Created Jun 29, 2016
Temperature monitor
View monTemp.sh
while true
do
reset
nvidia-smi -q -d temperature
sensors
sleep 5
done
You can’t perform that action at this time.