Skip to content

Instantly share code, notes, and snippets.

Carlos Aguayo carlos-aguayo

Block or report user

Report or block carlos-aguayo

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
@carlos-aguayo
carlos-aguayo / .block
Created Feb 23, 2019 — forked from mbostock/.block
Heatmap (2D Histogram, CSV)
View .block
license: gpl-3.0
View pg1497.txt
This file has been truncated, but you can view the full file.
The Project Gutenberg EBook of The Republic, by Plato
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org
Title: The Republic
View 3 - Fine Tuning CNN.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2 - Using pre-trained VGG16.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 1 - Basic Convolutional Neural Network.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:5402e0a59117b70227ecdfa3bebeb4c9
__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
==================================================================================================
input_1 (InputLayer) (None, None, None, 3 0
__________________________________________________________________________________________________
conv2d_1 (Conv2D) (None, None, None, 3 864 input_1[0][0]
__________________________________________________________________________________________________
batch_normalization_1 (BatchNor (None, None, None, 3 96 conv2d_1[0][0]
__________________________________________________________________________________________________
activation_1 (Activation) (None, None, None, 3 0 batch_normalization_1[0][0]
@carlos-aguayo
carlos-aguayo / screenshot.py
Created Feb 19, 2018
Given a filename, find all http links and take a screenshot of them.
View screenshot.py
from selenium import webdriver
from BeautifulSoup import BeautifulSoup
import requests
options = webdriver.ChromeOptions()
options.add_argument('headless')
driver = webdriver.Chrome(chrome_options=options)
driver.set_window_size(1280, 1600)
filename = 'NOTICE.html'
@carlos-aguayo
carlos-aguayo / jira.py
Last active Jul 26, 2017
Get an Excel report on the number of comments in JIRA tickets
View jira.py
from jira import JIRA
from dateutil.parser import parse
import pandas as pd
# For any ticket that was externally reported or labeled a hotfix in the last 90 days, compute:
# 1. Number of comments
# 2. How long it took for it to be labeled hotfix
# 3. Number of transitions across squads
username = 'carlos.aguayo'
@carlos-aguayo
carlos-aguayo / voicegender.py
Created Jul 19, 2017
Comparison for XGBoost, LightGBM and a Neural Network
View voicegender.py
import pandas as pd
from xgboost import XGBClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.preprocessing import LabelEncoder
dataset = pd.read_csv('https://github.com/primaryobjects/voice-gender/raw/master/voice.csv', header=0).values
x = dataset[:, :-1]
y = dataset[:, -1]
@carlos-aguayo
carlos-aguayo / CartPole-v0.py
Last active Sep 18, 2019
OpenAI Gym CartPole-v0
View CartPole-v0.py
import gym
import pandas as pd
import numpy as np
import random
# https://gym.openai.com/envs/CartPole-v0
# Carlos Aguayo - carlos.aguayo@gmail.com
class QLearner(object):
You can’t perform that action at this time.