Skip to content

Instantly share code, notes, and snippets.

View dakra's full-sized avatar

Daniel Kraus dakra

  • Freelancer
  • Karlsruhe, Germany
View GitHub Profile
<template>
<div class="workspace models" :class="[layout, details]">
<sidebar namespace="models"></sidebar>
<div class="list">
<div class="top-bar filters">
<search-field :placeholder="i18n['Search']"
v-model="searchTerm"
@create="createModel"/>
</div>
<div class="pane">

Keybase proof

I hereby claim:

  • I am dakra on github.
  • I am dakra (https://keybase.io/dakra) on keybase.
  • I have a public key whose fingerprint is 710E 779A 3A9A 648A 06B1 B2C7 C1C8 D63F 884E F9C9

To claim this, I am signing this object:

#!/bin/env python
# make sure to be logged in with `gcloud init`
# Add to /etc/hosts:
# python create_gcloud_hosts_entries.py | sudo tee -a /etc/hosts
from oauth2client.client import GoogleCredentials
from googleapiclient import discovery
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey
from sqlalchemy.orm import Session, relationship, subqueryload, joinedload
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
e = create_engine("mysql+mysqlconnector://scott:tiger@localhost/test", echo=True)
class Address(Base):
@dakra
dakra / pshellintellij.py
Last active March 28, 2022 11:21
Pyramid pshell in IntelliJ python console.Copy this snippet in 'Project Settings'->'Console'->'Python Console'->'Starting script'.If you then run 'Tools'->'Run Python Console' you will have all your pyramid variable set-uplike you would when running `pshell`.(Most of this snippet is copy&paste from `pyramid.scripts.pshell.py`)
import sys
import logging
from pyramid.compat import configparser
from pyramid.util import DottedNameResolver
from pyramid.paster import bootstrap
# pshellintellij uses first two arguments as ports to connect shell
if len(sys.argv) > 3:
config_file = sys.argv[3]
else: