Skip to content

Instantly share code, notes, and snippets.

View yozhsh's full-sized avatar

Petro Shur yozhsh

  • Ukraine, Kharkiv
View GitHub Profile
def parse_params(http_parameters: dict, client_identicator):
error = {"status": 400}
actions = {
'current': Sale.current_abones(client_identicator),
'previous': Sale.previous_abones(client_identicator),
'all': Sale.all_abones(client_identicator)
}
try:
abones_info = http_parameters['abones_info']
@yozhsh
yozhsh / python.code-workspace.json
Last active October 10, 2020 17:49
My VScode basic workspace config
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.exclude": {
"**/.git": true,
"**/.svn": true,
@yozhsh
yozhsh / config.yml
Created February 17, 2021 23:56 — forked from kenberkeley/config.yml
The simplest CircleCI 2.1 config example for Node / JS projects
## References:
# https://git.io/Jf3l9
# https://circleci.com/docs/2.0/yarn/
# https://circleci.com/docs/2.0/caching/#yarn-node
# https://circleci.com/orbs/registry/orb/circleci/node
# https://discuss.circleci.com/t/circleci-2-1-config-overview/26057
version: 2.1
orbs:
node: circleci/[email protected]
@yozhsh
yozhsh / .emacs.lisp
Last active December 28, 2023 04:00
.emacs config file
;; System-type definition
(defun system-is-linux()
(string-equal system-type "gnu-linux"))
;; Start Emacs as server
(when (system-is-linux)
(require 'server)
(unless (server-running-p)
(server-start)))