Sublime Text > Preferences > Settings – User
{
"always_show_minimap_viewport": true,
"auto_complete_triggers":
[
{
"characters": ".",
# Change default audio port and test alsa | |
% amixer cset numid=3 1 | |
% speaker-test -t sine | |
# Install dependencies | |
% apt-get install libao-dev libssl-dev avahi-utils libwww-perl libcrypt-openssl-rsa-perl libio-socket-inet6-perl libmodule-build-perl | |
# Install Perl Net-SDP (more information: https://github.com/njh/perl-net-sdp) | |
% git clone https://github.com/njh/perl-net-sdp.git | |
% cd ./perl-net-sdp/ |
# Install dependencies | |
% apt-get install cifs-utils | |
# Create mount point folder | |
% mkdir /mnt/capsule | |
# Create credentials file | |
% touch /root/.cifs/capsule | |
% cat /root/.cifs/capsule | |
username=username |
Complexity of Python Operations | |
In this lecture we will learn the complexity classes of various operations on | |
Python data types. Then we wil learn how to combine these complexity classes to | |
compute the complexity class of all the code in a function, and therefore the | |
complexity class of the function. This is called "static" analysis, because we | |
do not need to run any code to perform it. | |
------------------------------------------------------------------------------ |
import enum | |
import uuid | |
import arrow | |
import msgpack | |
@enum.unique | |
class Code(enum.IntEnum): | |
DATETIME_ISO8601 = 0 |
image: themattrix/tox-base:latest | |
stages: | |
- test | |
py36-isort: | |
stage: test | |
script: | |
- tox -e py36-isort | |
tags: |
definitions: | |
caches: | |
poetry-path: /root/.poetry | |
poetry-venv: /root/.cache/pypoetry/virtualenvs | |
pipelines: | |
default: | |
- step: | |
name: deps-3.7 | |
image: python:3.7 |
definitions: | |
caches: | |
poetry-path: /root/.poetry | |
poetry-venv: /root/.cache/pypoetry/virtualenvs | |
steps: | |
- step: &step-37 | |
image: python:3.7 | |
caches: | |
- poetry-path |
local | |
volume_cached_poetry_path = 'cached-poetry', | |
volume_cached_poetry_deps = 'cached-deps', | |
command_install = 'poetry install -vv', | |
command_test = 'poetry run pytest .', | |
step(name, commands, version='3.8') = { | |
name: '%s-%s' % [name, version], | |
image: 'python:%s' % version, |
strategy: | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- runs: pip install -U -r requirements.txt |