Skip to content

Instantly share code, notes, and snippets.

View Gr1N's full-sized avatar
🚴‍♂️

Nikita Grishko Gr1N

🚴‍♂️
View GitHub Profile
@Gr1N
Gr1N / complexitypython.txt
Created January 30, 2016 11:03
Complexity of Python Operations
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.
------------------------------------------------------------------------------
@Gr1N
Gr1N / gist:3515209795b91ff862a4
Last active July 18, 2017 14:09
Setting up Sublime Text for development

Preferences

Sublime Text > Preferences > Settings – User

{
    "always_show_minimap_viewport": true,
    "auto_complete_triggers":
    [
        {

"characters": ".",

@Gr1N
Gr1N / Mount TimeCapsule on RaspberryPi
Created May 13, 2014 13:41
Mount TimeCapsule on RaspberryPi
# 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
@Gr1N
Gr1N / Airplay on RaspberryPi
Last active August 29, 2015 14:01
Airplay on RaspberryPi
# 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/