Skip to content

Instantly share code, notes, and snippets.

View revan's full-sized avatar
🤠
git push -f

Revan Sopher revan

🤠
git push -f
View GitHub Profile
@revan
revan / fourier.py
Last active August 29, 2015 14:10
Python fourier analysis
def fourier(nums):
"""
Fourier analysis. For a given list, returns fouriest element.
"""
return max([(sum([1 for c in str(num) if c == '4']), num) for num in nums])[1]
@revan
revan / Procfile
Last active December 28, 2015 07:09
A simple Flask server to create a memorable URL for the files shared in your Dropbox Public folder.
web: gunicorn app:app