Skip to content

Instantly share code, notes, and snippets.

View chaoflow's full-sized avatar

Florian Friesdorf chaoflow

View GitHub Profile
inputs = {
# emacs.url = github:nix-community/emacs-overlay;
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable;
nixos-hardware.url = github:NixOS/nixos-hardware;
# home-manager.url = github:nix-community/home-manager;
outputs = {
chaoflow /
Created November 6, 2017 21:34
Dump database of MARV 16.10 in order to restore in 17.11
#!/usr/bin/env python2
from __future__ import print_function
from datetime import datetime
import json
import os
import sys
chaoflow / dataset-template.yaml
Created July 14, 2017 13:48 dataset description
title: Proper name of dataset used as title
# keep this short but descriptive, used as tag, no spaces
shortname: short-name
# plain text description, no markup
description: >
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua.
chaoflow /
Created April 20, 2017 10:26
sqlite WITHOUT ROWID with (flask-)sqlalchemy
import flask_sqlalchemy
from sqlalchemy import schema
from sqlalchemy.ext.compiler import compiles
db = flask_sqlalchemy.SQLAlchemy()
class Tag(db.Model):
__table_args__ = {'info': {'without_rowid': True}}
text = db.Column(db.String, primary_key=True)