Install python (pyenv or asdf)
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
asdf info
asdf plugin-add python
Install python (pyenv or asdf)
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
asdf info
asdf plugin-add python
from django.db.models import Q | |
from leases.models import BerthLease | |
from payments.enums import OrderStatus | |
from resources.enums import BerthMooringType | |
from resources.models import Berth | |
berths = Berth.objects.filter( | |
Q( | |
Q(berth_type__mooring_type__in=(BerthMooringType.DINGHY_PLACE, BerthMooringType.TRAWLER_PLACE)) |
from payments.enums import OrderStatus | |
from payments.models import Order | |
from resources.enums import BerthMooringType | |
orders = Order.objects.filter( | |
status=OrderStatus.ERROR, | |
comment__contains="Asiakkaan sähköpostiosoite puuttuu" | |
) | |
for order in orders: | |
if order.lease.berth.berth_type.mooring_type not in (BerthMooringType.DINGHY_PLACE, BerthMooringType.TRAWLER_PLACE): |
import re | |
from payments.enums import OrderStatus | |
from payments.models import Order | |
from resources.models import WinterStorageArea | |
orders = Order.objects.filter( | |
_lease_object_id=None, status=OrderStatus.PAID, comment__icontains="Paikka:" | |
) |
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
bool is_palindrome(long int); | |
int digits(long int); | |
int main(int argc, char ** argv) { | |
long int n = stol(argv[1]); |
import numpy as np | |
np.random.seed(14) | |
def sigmoid(x, deriv=False): | |
if deriv: | |
return x * (1 - x) | |
return 1 / (1 + np.exp(-x)) |
[user] | |
name = | |
email = | |
[core] | |
editor = vim | |
[log] | |
decorate = true | |
abbrevCommit = true | |
[color "branch"] | |
current = yellow bold |
set nocompatible " be iMproved, required | |
filetype off " required | |
"execute pathogen#infect() | |
call plug#begin('~/.vim/plugged') | |
" vim-plug plugins | |
" Solarized colors | |
Plug 'altercation/vim-colors-solarized' | |
" Monokai |
" ====================================== | |
" Plugin setup | |
" ====================================== | |
" Load the plugins | |
call plug#begin('~/.vim/plugged') | |
" Themes | |
Plug 'kristijanhusak/vim-hybrid-material' | |
Plug 'mhartington/oceanic-next' | |
Plug 'NLKNguyen/papercolor-theme' |
I hereby claim:
To claim this, I am signing this object: