Skip to content

Instantly share code, notes, and snippets.

Fibinse Xavier` fx86

Block or report user

Report or block fx86

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

Keybase proof

I hereby claim:

  • I am fx86 on github.
  • I am fx86 ( on keybase.
  • I have a public key ASDjLtqbNyRGe4aQSX1J3EL5RPA-qRaIj1XL3UkO-Zt6vAo

To claim this, I am signing this object:

fx86 /
Last active May 9, 2019
A bash script to make MacBook ready for data science
# install brew
ruby -e "$(curl -fsSL"
brew doctor
# install zsh
brew install zsh
# install wget using brew
brew install wget
fx86 /
Last active Jul 27, 2018
Takes a Redash query ID and returns cached-data in a Pandas dataframe
# save your redash API key in a text file as below
api_key = open('api_key.config', 'r').readlines()[0]
def api_to_df(query_id, api_key=api_key):
Takes a Redash query ID and returns cached-results
in a Pandas dataframe
fx86 /
Last active Jun 24, 2018
Boilerplate code for scrapers - has query-caching, geocoding, refreshing proxies & enabling detailed logging
from glob import glob
from hashlib import md5
from fake_useragent import UserAgent as ua
from splinter import Browser
from splinter.exceptions import *
from selenium.common.exceptions import *
from random import randint
from time import sleep
import requests
import time
fx86 /
Created May 28, 2016
A much more effective algorithm for string similarity found on Stack Overflow
import wikipedia
def get_bigrams(string):
Takes a string and returns a list of bigrams
s = string.lower()
return [s[i:i+2] for i in xrange(len(s) - 1)]
def string_similarity(str1, str2):
You can’t perform that action at this time.