This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Elias Omega code in Python | |
http://en.wikipedia.org/wiki/Elias_omega_coding | |
Peter Elias, "Universal codeword sets and representations of the integers", IEEE Trans. Information Theory 21(2):194-203, Mar 1975. | |
Also known as the log* (or "logstar") code in Rohan Baxter's 1996 PhD thesis. | |
Type 'python EliasOmega.py' to run the tests. | |
""" |
![mathjax_bug.png](https://gist.github.com/mpacer/2b627ffe8f10cde53926/raw/209251e3dcfb9d21f1fd9b82f66c7c74f5f6b1a2/mathjax_bug.png)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import os.path | |
import datetime | |
import csv | |
import pandas as pd | |
from difflib import SequenceMatcher | |
def map_feat_to_vals(features,vals,f,words,contents): | |
return {f:v for f,v in zip(features,vals)} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site "http*://mail.google.com/*"{ | |
unmap x | |
unmap k | |
unmap j | |
unmap o | |
unmap O | |
unmap N | |
unmap g | |
unmap t | |
unmap c |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer