View txt
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
I'm an Engineer (Electronics and Computer Networks), that's how my mind works. | |
I disassemble everything: physically, visually... this is why my Bio is presented as a "list" :) | |
- I'm very blunt, I find it to be very effective and easier to understand. | |
- I'm All-In for sport (Running, Basketball, Soccer, Crossfit, Spartan, Table tennis, Pool), Electronics and DIY projects. (any time, any day) | |
- I'm a proud owner of a 2"x"4 Router CNC, 3D printer and a Laser CNC. | |
- It's very hard for me to say "NO". | |
- You won't find me talking about sport, politics or geography. | |
- I've lived most of my life in Israel. I speak Hebrew, English, ~Spanish and I can ~understand Arabic. | |
- My amazing wife is Jewish/Russian/American, so I get to practice some Russian too :) |
View gist:5315789e418ed81c3b3310ef42e34e10
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
from eve.auth import TokenAuth | |
from flask import Response, abort, request, current_app | |
class MyTokenAuth(TokenAuth): | |
def check_auth(self, token, allowed_roles, resource, method): | |
"""For the purpose of this example the implementation is as simple as | |
possible. A 'real' token should probably contain a hash of the | |
username/password combo, which should then validated against the account | |
data stored on the DB. |
View gist:1ee55730b3ee36642e440a027495b8cf
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
SERVER_NAME = None | |
DEBUG = True | |
ENV = 'development' | |
URL_PREFIX = 'api' | |
API_VERSION = 'v1' | |
SORTING = True | |
# PAGINATION_DEFAULT = 25 |
View gist:7b097e9919d8e8dfbd1b5ea117a57beb
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
from eve import Eve | |
from eve.auth import BasicAuth | |
from myApp.auth import * #this is the auth.py | |
from myApp.rate_limit import * | |
from myApp.callbacks import inject_signature, log_every_get | |
from myApp.middleware import Loggermiddleware | |
from myApp.blueprints import simple_page, page_group_by |