Skip to content

Instantly share code, notes, and snippets.

@Schwusch
Schwusch / tiltable_stack.dart
Last active October 29, 2022 12:58
A tiltable stack, an idea originated from 2dimensions
import 'package:flutter/material.dart';
class TiltableStack extends StatefulWidget {
final List<Widget> children;
final Alignment alignment;
const TiltableStack({
Key key,
this.children,
this.alignment = Alignment.center,
import 'package:flutter/material.dart';
class BreathingWidget extends StatefulWidget {
final Widget child;
const BreathingWidget({Key key, @required this.child}) : super(key: key);
@override
_BreathingWidgetState createState() => _BreathingWidgetState();
}
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
@Schwusch
Schwusch / pdf_diff.py
Last active September 4, 2017 08:38
Compare pdfs with different versions in bulk
# Dependencies: Python 3+, ImageMagick
from os import listdir, system, makedirs
from os.path import isfile, join, splitext
from multiprocessing import Pool
import errno
import argparse
def make_sure_path_exists(path):
try: