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
evansde77 / mock_requests.py
Last active Oct 5, 2019
Example of mocking requests calls
View mock_requests.py
#!/usr/bin/env python
"""
mocking requests calls
"""
import mock
import unittest
import requests
from requests.exceptions import HTTPError
@gavinwhyte
gavinwhyte / rocksvsmines.py
Last active Oct 20, 2015
Rocks vs mines Machine Learning Classification
View rocksvsmines.py
__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
ian-weisser / ncurses_clock.py
Created Apr 6, 2014
Python class that adds an easy, independent clock to a Curses window
View ncurses_clock.py
#!/usr/bin/python3
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.