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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import string | |
import webbrowser | |
import re | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
# pip install requests | |
# pip install beautifulsoup4 |
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
#! -*- coding: utf-8 -*- | |
def factor(number): | |
""" | |
Используем разложение на простые множители | |
""" | |
factors = [1] | |
start = 2 |
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
#! -*- coding: utf-8 -*- | |
def repack(old_list): | |
new_list = [] | |
first = 0 | |
last = len(old_list) - 1 | |
while len(new_list) < len(old_list): | |
last_el = old_list[last] |
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
#! -*- coding: utf-8 -*- | |
def divide(n, m): | |
# Выходной список интервалов | |
intervals = [] | |
# Количество элементов в каждой части | |
el_count = n / m | |
# Количество элементов вектора, не попадающих в части | |
rest_part = n % m |
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
#! -*- coding: utf-8 -*- | |
import sys | |
# param_name: required | |
PARAMS = { | |
'--integer': True, | |
'--boolean': True, | |
'--string': False, | |
} |
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
[{"code": "Paula-Top", "description": "Paula Top by Related Apparel.\u00a0This classic cut tee has a boxy fit and comes in a beautiful black and grey wool blend filigree style patterned fabric. Wear over jeans or pair with the matching Margaux Skirt.", "gbp_price": "62.50", "sale_discount": 50.0, "gender": "F", "stock_status": {"UK6": 1, "UK10": 1, "UK14": 1, "UK12": 1, "UK8": 3}, "designer": "Related", "link": "http://www.oxygenboutique.com/Paula-Top.aspx", "raw_color": "black", "images": ["http://oxygenboutique.com/GetImage/cT0xMDAmdz04MDAmaD02MDAmUEltZz1hYTUzNTAyZS05YjA2LTRhZmMtOWQzZi0wZGQ4OGJlYjBjZGYuanBn0.jpg"], "type": "A", "name": "Related Paula Top"}, | |
{"code": "Selena-Gown", "description": "Selena Gown by Related. This elegant show piece has a slim silhouette with a fitted bodice to enhance your waist. Cut from pale grey floral jacquard it has a subtle shimmer that's just right for your evening soirees.", "gbp_price": "125.00", "sale_discount": 50.0, "gender": "F", "stock_status": {"UK6": 1, "UK10": 1 |
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
[tool.poetry] | |
name = "packagename" | |
version = "0.1.0" | |
description = "" | |
authors = ["Valentin Ignatev <valentignatev@gmail.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
[tool.poetry.dev-dependencies] |
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
Q: Artix s6 wiki? | |
A: https://wiki.artixlinux.org/Main/S6 | |
Q: How to get s6 service for a program? | |
A: instal program-s6 package | |
Q: Does the service get enabled after reboot? | |
A: No | |
Q: How to enable it then? |
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
#!/path/to/jai-linux | |
#import "Basic"; | |
#import "Compiler"; | |
#run { | |
set_build_options_dc({.do_output = false}); | |
print("Hello!\n"); | |
} |
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
;; Meow experiments. Unfortunately didn't quite worked out for me for now, | |
;; so go back to trusty evil | |
(use-package meow | |
:init | |
(define-key input-decode-map (kbd "C-[") [control-bracketleft]) | |
(global-set-key [control-bracketleft] 'ignore) | |
(global-set-key [control-bracketleft] 'meow-insert-exit) | |
(setq meow-expand-hint-counts | |
'((word . 0) | |
(line . 0) |
OlderNewer