Skip to content

Instantly share code, notes, and snippets.

View aggsol's full-sized avatar
Mehr Kuchen, mehr C++

aggsol

Mehr Kuchen, mehr C++
View GitHub Profile
@aggsol
aggsol / template.tex
Last active January 27, 2024 13:17 — forked from michaelt/latex.template
My Pandoc LaTeX template with comments and example settings
%!TEX TS-program = xelatex
% Based on: https://gist.github.com/michaelt/1017790
% \documentclass[12pt]{scrbook}
\documentclass[
$if(fontsize)$
$fontsize$,
$endif$
$if(lang)$
$babel-lang$,
$endif$
@aggsol
aggsol / uncrustify.cfg
Created March 17, 2020 08:53
Uncrustify config for Vala
tok_split_gte=false
utf8_byte=false
utf8_force=false
indent_cmt_with_tabs=false
indent_align_string=false
indent_braces=false
indent_braces_no_func=false
indent_braces_no_class=false
indent_braces_no_struct=false
indent_brace_parent=false
@aggsol
aggsol / main.vala
Created March 5, 2020 10:04 — forked from JMoerman/main.vala
port of https://blog.gtk.org/2017/04/23/drag-and-drop-in-lists/ with scrolling and more advanced drag and drop
using Gtk;
class DragListBox : ListBox {
private ListBoxRow? hover_row;
private ListBoxRow? drag_row;
private bool top = false;
private int hover_top;
private int hover_bottom;
private bool should_scroll = false;
private bool scrolling = false;
@aggsol
aggsol / SettingsListBox.vala
Created March 5, 2020 09:55 — forked from SkyzohKey/SettingsListBox.vala
A simple ListBox to display Settings in a proper way.
public class SettingsListBox: Gtk.Box {
public Gtk.Box scrolled_box;
public Gtk.ListBox listbox;
public SettingsListBox () {
this.set_orientation (Gtk.Orientation.HORIZONTAL);
Gtk.ScrolledWindow scroll = new Gtk.ScrolledWindow (null, null);
scroll.set_size_request (400, 1);