This file contains hidden or 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
#!/usr/bin/env python | |
from collections import Counter | |
def decompose_sum(s): | |
return [(a,s-a) for a in range(1,int(s/2+1))] | |
def isprime(n): | |
'''check if integer n is a prime''' |
This file contains hidden or 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
''' | |
Title : Pandas Row Shuffler | |
Author : Arkadeep | |
''' | |
import numpy as np | |
import pandas as pd | |
import sys | |
arguments = sys.argv[1] | |
args = arguments.strip('.csv'); |
This file contains hidden or 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
from html.entities import name2codepoint | |
from html.parser import HTMLParser | |
class SlackifyHTML(HTMLParser): | |
def __init__(self, html, *args, **kwargs): | |
super().__init__(*args, **kwargs) |