Skip to content

Instantly share code, notes, and snippets.

View hereismari's full-sized avatar
🎸
Focusing

Marianne Monteiro hereismari

🎸
Focusing
View GitHub Profile
@hereismari
hereismari / catalogo_de_livros.cpp
Last active September 8, 2015 19:40
Catálogo de Livros - URI
#include <bits/stdc++.h>
#define MAX 100
#define INF -1
#define ll long long int
using namespace std;
vector<ll> livros[MAX];
vector<ll> answer;
bool comp(int a, int b) { return a > b; }
@hereismari
hereismari / local.conf
Created December 17, 2016 17:35
loca.conf with Sahara, Manila and Heat
[[local|localrc]]
ADMIN_PASSWORD=nova
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=nova
# Enable Swift
enable_service s-proxy s-object s-container s-account
@hereismari
hereismari / union-find.py
Created January 8, 2017 15:21
Union Find em python + descrição em PT-BR
# n : numero de nos
# q : numero de operacoes
# operacoes:
# 1, u, v : conecta conjuntos de u e v
# 2, u : impreme tamanho do conjunto de u
# 3, u : imprime par de u
#
n, q = map(int, raw_input().split())
# -------------------- UNION FIND --------------------------
@hereismari
hereismari / min-char-rnn.py
Last active June 11, 2017 18:50 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
Original code from: Andrej Karpathy (@karpathy)
Modified by: Marianne Linhares (@mari-linhares)
"""
import numpy as np
@hereismari
hereismari / min-char-rnn-tensorflow.py
Created June 11, 2017 19:05 — forked from vinhkhuc/min-char-rnn-tensorflow.py
Vanilla Char-RNN using TensorFlow
"""
Vanilla Char-RNN using TensorFlow by Vinh Khuc (@knvinh).
Adapted from Karpathy's min-char-rnn.py
https://gist.github.com/karpathy/d4dee566867f8291f086
Requires tensorflow>=1.0
BSD License
"""
import random
import numpy as np
import tensorflow as tf
@hereismari
hereismari / My Favorites.md
Last active February 9, 2021 10:38 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

My favorites

Help

:help - main help portal (with links to more help pages)
:viusage - show a huge cheat sheet listing every command

Edit

0 - (zero) start of line

@hereismari
hereismari / check_scoreboard.py
Last active December 20, 2017 00:37
GO UFCG 2017!
import Tkinter as tk
import tkMessageBox
import requests
import pandas as pd
import numpy as np
import time
url = "http://www.bombonera.org/score2017f2/score/#"
# bibliotecas
library('dplyr');
library('ggplot2');
library('caret');
# importando os dados
dados <- read.csv('~/Documents/eda.csv')
# renomear as colunas
colnames(dados) <- c("matricula", "id_reclamacao", "insatisfacao");
import tensorflow as tf
# Cria-se uma model function para implementar nosso modelo
def model_fn():
pass
# Cria-se uma input function que deve ser passada para o Estimator na maior parte
# de suas operacoes
# input function de treino
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
# MNIST
from tensorflow.examples.tutorials.mnist import input_data