Skip to content

Instantly share code, notes, and snippets.

View BernardoGO's full-sized avatar

Bernardo Augusto Godinho de Oliveira BernardoGO

  • Pontifical Catholic University of Minas Gerais
  • Belo Horizonte - Brazil
View GitHub Profile
.config/spotify/windows_pre
@BernardoGO
BernardoGO / monTemp.sh
Created June 29, 2016 20:59
Temperature monitor
while true
do
reset
nvidia-smi -q -d temperature
sensors
sleep 5
done
@BernardoGO
BernardoGO / steam not opening
Created July 9, 2016 03:18
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 / steam not opening
Created July 9, 2016 03:18
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 / steam not opening
Created July 9, 2016 03:18
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
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
@BernardoGO
BernardoGO / fixtrec.py
Created October 1, 2016 19:41
Fix trec file for eval
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
@BernardoGO
BernardoGO / onAdLoad.java
Last active November 2, 2016 15:23
AdMob Ad visible onLoad
//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 / grafos.cc
Created June 11, 2017 03:29
PUC Minas - Grafos 2014/1
//=====================================================================
// BIBLIOTECAS
//=====================================================================
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <unistd.h>
#include <vector>
#include<stdio.h>
#include<stdlib.h>
#include <sys/time.h>
#include <math.h>
#include<time.h>
#include <chrono>
#include <iostream>
#define BOOL(x) (!(!(x)))