Skip to content

Instantly share code, notes, and snippets.

Avatar
Mehr Kuchen, mehr C++

aggsol

Mehr Kuchen, mehr C++
View GitHub Profile
@aggsol
aggsol / SettingsListBox.vala
Created Mar 5, 2020 — forked from SkyzohKey/SettingsListBox.vala
A simple ListBox to display Settings in a proper way.
View SettingsListBox.vala
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);
@aggsol
aggsol / main.vala
Created Mar 5, 2020 — 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
View main.vala
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 / uncrustify.cfg
Created Mar 17, 2020
Uncrustify config for Vala
View uncrustify.cfg
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 / template.tex
Last active Jul 9, 2020 — forked from michaelt/latex.template
My Pandoc LaTeX template with comments and example settings
View template.tex
%!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$
You can’t perform that action at this time.