This is a common case in django ORM.
from django.db import models
class Author(models.Model):| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': False, | |
| 'formatters': { | |
| 'verbose': { | |
| 'format': "%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]" | |
| }, | |
| }, | |
| 'handlers': { | |
| 'fluentinfo':{ |
Here are my attempts to script an IntelliJ-based IDE using javax.script.* API (ex-JSR-223).
The list of available scripting languages and engines:
<app>/lib/groovy-jsr223-xxx.jar<app>/jbr/... (deprecated and will be removed soon)| function password_encode(password) | |
| local bcrypt = require 'bcrypt' | |
| return bcrypt.digest(password, 12) | |
| end | |
| function check_password(password, encoded_password) | |
| local bcrypt = require 'bcrypt' | |
| return bcrypt.verify(password, encoded_password) | |
| end |
| #!/usr/bin/env python | |
| """ | |
| mocking requests calls | |
| """ | |
| import mock | |
| import unittest | |
| import requests | |
| from requests.exceptions import HTTPError |
| " Мой актуальный конфиг тут: https://github.com/alexey-goloburdin/dotfiles |
| admin > connections > + | |
| conn_type = s3 | |
| conn_name = local_minio | |
| Extra: a JSON object with the following properties: | |
| { | |
| "aws_access_key_id":"your_minio_access_key", | |
| "aws_secret_access_key": "your_minio_secret_key", | |
| "host": "http://127.0.0.1:9000" |