Skip to content

Instantly share code, notes, and snippets.

View kjaanson's full-sized avatar

Kaur Jaanson kjaanson

  • Estonia
View GitHub Profile
@kjaanson
kjaanson / getter_and_setter.py
Created January 20, 2018 21:47 — forked from luhn/getter_and_setter.py
Using getters and setters with SQLAlchemy
class Table(Base):
id = Column(Integer, primary_key=True)
_name = Column('name', String(24))
@property
def name(self):
return self._name;
@name.setter
def name(self, value):
@kjaanson
kjaanson / flask skeleton folder tree
Created January 8, 2018 08:51 — forked from efazati/Py Flask Skeleton
flask folders and files structure
.
├── deploy.py
├── project
│   ├── application.py
│   ├── apps
│   │   ├── articles
│   │   │   ├── forms.py
│   │   │   ├── __init__.py
│   │   │   ├── models.py
│   │   │   └── views.py
@kjaanson
kjaanson / Git push deployment in 7 easy steps.md
Created October 22, 2017 18:17 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@kjaanson
kjaanson / mnist.py
Last active February 4, 2019 15:20 — forked from akesling/mnist.py
import os
import struct
import numpy as np
"""
Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
which is GPL licensed.
"""
def read(dataset = "training", path = "."):
@kjaanson
kjaanson / tmux-cheatsheet.markdown
Created November 14, 2016 12:58 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname