Skip to content

Instantly share code, notes, and snippets.

View F1ashhimself's full-sized avatar
💻
coding

Max Biloborodko F1ashhimself

💻
coding
  • Solarisbank
  • Kyiv
View GitHub Profile
@F1ashhimself
F1ashhimself / facebook_numbers.py
Created April 2, 2014 23:06
Facebook numbers
def get_square(side_length):
"""
Calculates square.
Arguments:
- side_length: int, length of square side.
Returns:
- List with values for square.
@F1ashhimself
F1ashhimself / pre-commit
Last active June 2, 2020 08:05
Flake8 pre-commit hook
#!/usr/bin/env python
from __future__ import with_statement
import os
import re
import shutil
import subprocess
import sys
import tempfile
from shutil import copyfile