Skip to content

Instantly share code, notes, and snippets.

View MadinaB's full-sized avatar
we all shine in different ways

Madina MadinaB

we all shine in different ways
View GitHub Profile
@gojimmypi
gojimmypi / git-tip.txt
Last active February 14, 2019 16:56
git problems and resolutions
fatal: unable to connect to git.qemu-project.org:
git.qemu-project.org[0: (my ip address)]: errno=Connection refused
firewall may be blocking outbound git:// protocol
override with a variety of scopes:
git config --global url."https://".insteadOf git://
git config --global url.https://github.com/.insteadOf git://github.com/
git config --global url.https://git.qemu.org/git/.insteadOf git://git.qemu-project.org/
git config --global url.https://anongit.freedesktop.org/git/.insteadOf git://anongit.freedesktop.org/
import math
from text.blob import TextBlob as tb
def tf(word, blob):
return blob.words.count(word) / len(blob.words)
def n_containing(word, bloblist):
return sum(1 for blob in bloblist if word in blob)
def idf(word, bloblist):