- Raise exceptions near to the source of the error.
- Raise custom exceptions that are a subclass of a custom parent exception.
- Catch the custom parent exception near the top level of your application.
- Return
True
if an otherwise impure/side-effect driven operation succeeded. - Send (and document) standardized error messages (e.g.
NOUN_STATE
==INPUT_INVALID
) - Send appropriate response status codes so callers can handle errors without parsing response structure.
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 poetry.console.application import Application | |
from poetry.semver import parse_constraint, VersionUnion | |
def export_requirements(tag=False): | |
app = Application() | |
installed_repo = app.poetry.locker.locked_repository(True) | |
output = [] |
We are seeking a self-motivated and enthusiastic senior software engineer to join the Doofinder team. The Doofinder team develops since 2011 the top search engine for webs and ecommerce, that helps retailers online to increase their sales.
Python developers are responsible for developing and updating the solution. You will use a wide variety of technologies, such as Python, Django, Elixir, AWS, Machine Learning and other web technologies to improve and implement new Doofinder´s features.
We are looking for smart, innovative, and driven developers. We will consider applicants with, at least, 3-4 years experienced in the technologies listed below, however you must have strong Python skills.
Key Responsibilities:
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
include karax / prelude | |
import strutils | |
type | |
Model = object | |
counter*: int | |
Dispatch = proc(model: Model): void | |
proc init(): Model = | |
result = Model(counter: 0) |
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
""" | |
nim_magic.py | |
Jupyter cell magic for your favorite programming language. | |
This is now also available as a proper repo: | |
https://github.com/apahl/nim_magic | |
All further changes will be tracked there. | |
Requirements: Nim (https://nim-lang.org), nimpy (`nimble install nimpy`, thanks to @yglukhov for this great library!) |
Moved to Shopify/graphql-design-tutorial
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 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 datetime import datetime, timedelta | |
import functools | |
def timed_cache(**timedelta_kwargs): | |
def _wrapper(f): | |
update_delta = timedelta(**timedelta_kwargs) | |
next_update = datetime.utcnow() + update_delta | |
# Apply @lru_cache to f with no cache size limit |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx git circus make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils python-setuptools
sudo adduser app