Skip to content

Instantly share code, notes, and snippets.

View ccd97's full-sized avatar

Cyprien Dcunha ccd97

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ccd97
ccd97 / hackerrank_leaderboard.py
Created August 20, 2018 17:16
Get leader-board as CSV file from hosted Hackerrank contest
import csv
import getpass
import sys
import requests
def print_get_contest(email, password):
contestsr = requests.get(
"https://www.hackerrank.com/rest/administration/contests",
@ccd97
ccd97 / glossay.py
Created October 3, 2017 16:34
Get glossary from text
import requests
# pip install numpy
import numpy as np
# pip install pandas
import pandas as pd
# pip install scikit-learn
from sklearn.feature_extraction.text import TfidfVectorizer
# ################# Edit this parameters ###################
@ccd97
ccd97 / .bumblebee-status.conf
Last active February 18, 2019 09:04
My Configuration files
[module-parameters]
github.token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
github.interval=60
pacman.sum=True
nic.format={ip}
traffic.showname=False
@ccd97
ccd97 / Main.java
Created November 26, 2016 11:17
Testing TensorflowServer API
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.mime.HttpMultipartMode;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;