Skip to content

Instantly share code, notes, and snippets.

View ranjanmanish's full-sized avatar
🎯
Focusing

Manish ranjanmanish

🎯
Focusing
  • Tile, Moz, University Of Georgia
  • Bay Area, Seattle, Athens, Georgia , US
View GitHub Profile
def my_function(name):
print name
@ranjanmanish
ranjanmanish / .vimrc
Created April 6, 2017 19:48
vimrc file
let b:did_ftplugin = 1
set term=ansi
" Use color syntax highlighting.
syntax on
" Color specifications. Change them as you would like.
hi Comment term=none ctermfg=gray guifg=Gray
hi Constant term=underline ctermfg=cyan guifg=Cyan
@ranjanmanish
ranjanmanish / tfidf.py
Created February 27, 2016 03:17 — forked from sloria/tfidf.py
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):