Skip to content

Instantly share code, notes, and snippets.

git clone <PRIVATE REPO>
cd sdk
git fetch --all
git pull --all
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
git branch --track "${branch##*/}" "$branch"
done
git fetch --all
git pull --all
cd ..
@seaders
seaders / pycharm_sqlalchemy.py
Created March 1, 2018 12:59
Pycharm Pro SQLAlchemy fragility
import weakref
from sqlalchemy import \
Column, Integer, String, MetaData, ForeignKey
from sqlalchemy.ext.declarative import \
declarative_base, DeclarativeMeta, declared_attr
from sqlalchemy.orm import \
relationship
# noinspection PyProtectedMember
from sqlalchemy.ext.declarative.api import \
_declarative_constructor