Skip to content

Instantly share code, notes, and snippets.

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
GestureDetector mGestureDetector;
private OnItemClickListener mListener;
@Iktwo
Iktwo / overlay.scm
Created November 1, 2016 05:23
Gimp script to "colorize" image
(define (overlay filename filename2)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename
filename)))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-brightness-contrast drawable 0 -127)
(gimp-brightness-contrast drawable 0 127)
(plug-in-colorify RUN-NONINTERACTIVE image drawable "#3498db")
(gimp-image-convert-indexed image 0 0 255 0 0 "")
@Iktwo
Iktwo / ExpandableListView.qml
Last active February 12, 2022 06:30
ExpandableListView
import QtQuick 2.0
// Use Item as root element to control what properties are exposed, without this the delegate could be overwritten and the list would not work as expected
Item {
id: root
// Expose ListView properties
property alias model: listView.model
property alias clip: listView.clip