Skip to content

Instantly share code, notes, and snippets.

View Eduardoveras's full-sized avatar
:shipit:
codey stuff

Eduardo Veras Eduardoveras

:shipit:
codey stuff
View GitHub Profile
@Eduardoveras
Eduardoveras / testClinicManager.py
Last active July 11, 2017 16:21
This was just for testing selenium in general
import time
from selenium import webdriver
# Register Chrome web driver
driver = webdriver.Chrome() # Optional argument
driver.get('http://clinic-manager.herokuapp.com/');
time.sleep(3) # Let the user actually see something!
#Login with selenium
email = driver.find_element_by_name('email')
@Eduardoveras
Eduardoveras / MainWindow.java
Created July 7, 2017 01:49
Java image to binary matrix
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
/**
* Created by eduardo on 02/07/17.
@Eduardoveras
Eduardoveras / install_hadoop.sh
Created June 5, 2017 03:14
Hadoop install script with yarn, hdfs, etc. Hadoop file is downloaded automatically but if you have it you can comment that line and place the file in the same folder as the script
#!/bin/bash
sudo add-apt-repository ppa:openjdk-r/ppa -y
sudo apt-get update
sudo apt-get install openjdk-7-jdk -y
sudo update-alternatives --config java
#wget http://www-us.apache.org/dist/hadoop/common/hadoop-2.8.0/hadoop-2.8.0.tar.gz
#cd $HOME
mkdir $HOME/hadoop
tar xfz hadoop-2.8.0.tar.gz