Skip to content

Instantly share code, notes, and snippets.

imrek imrek

  • Hungary
Block or report user

Report or block imrek

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
evansde77 /
Last active Oct 5, 2019
Example of mocking requests calls
#!/usr/bin/env python
mocking requests calls
import mock
import unittest
import requests
from requests.exceptions import HTTPError
gavinwhyte /
Last active Oct 20, 2015
Rocks vs mines Machine Learning Classification
__author__ = 'gavinwhyte'
import urllib2
import numpy
import random
from sklearn import datasets, linear_model
from sklearn.metrics import roc_curve, auc
import pylab as pl
def confusionMatrix(predicted, actual, threshold):
if len(predicted) != len(actual): return -1
ian-weisser /
Created Apr 6, 2014
Python class that adds an easy, independent clock to a Curses window
import curses
import time
import threading
class Clock(threading.Thread):
""" Clock curses string class. Updates every second. Easy to install """
You can’t perform that action at this time.