Skip to content

Instantly share code, notes, and snippets.

View sm4rk0's full-sized avatar
💭
Set your status

Marko Stanković sm4rk0

💭
Set your status
  • Levi9
  • Zrenjanin, Serbia
View GitHub Profile
@craigcabrey
craigcabrey / 0001-Don-t-restrict-movement-gestures-to-touchscreens.patch
Created July 8, 2016 17:17
Patch to re-enable kinetic scrolling on non-touchscreen input sources in GTK+ 3.20.
From c76461960d05b3d64185d1a67096461ce6854009 Mon Sep 17 00:00:00 2001
From: Craig Cabrey <craigcabrey@gmail.com>
Date: Fri, 8 Jul 2016 13:07:26 -0400
Subject: [PATCH] Don't restrict movement gestures to touchscreens
---
gtk/gtkscrolledwindow.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
@gnarf
gnarf / ..git-pr.md
Last active October 17, 2024 18:48
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@bowsersenior
bowsersenior / stooge_loader.rb
Created May 18, 2011 23:18
A demo of YAML anchors, references and nested values
require 'rubygems'
require 'yaml'
# A demonstration of YAML anchors, references and handling of nested values
# For more info, see:
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
stooges = YAML::load( File.read('stooges.yml') )
# => {
# "default" => {