Skip to content

Instantly share code, notes, and snippets.

View dplanella's full-sized avatar

David Planella dplanella

View GitHub Profile
@dplanella
dplanella / snapcraft.yaml
Last active July 12, 2016 17:52
First shot at Quassel snap
name: quassel-client
version: "0.1"
summary: Modern, cross-platform IRC client
description: |
This is a modern, cross-platform, distributed IRC client. One
(or multiple) client(s) can attach to and detach from a central core. It's
much like the popular combination of screen and a text-based IRC client such
as WeeChat, but graphical.
confinement: devmode
@dplanella
dplanella / displayName.c
Created June 20, 2013 11:23
Unity Scope C template
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mrss.h>
#include <unity.h>
#include <glib.h>
#include <gio/gio.h>
#include "config.h"
#include "openclipart-rss.h"
@dplanella
dplanella / gist:5563018
Last active September 13, 2017 08:19
A snippet to create thumbnails from video files, using GStreamer and Python. Original author: [daf](http://stackoverflow.com/users/32082/daf) via http://stackoverflow.com/a/16478342/1049318
# Video thumbnailer, non-PyGI version, working as expected
import os
import sys
import gst
def get_frame(path, offset=5, caps=gst.Caps('image/png')):
pipeline = gst.parse_launch('playbin2')
pipeline.props.uri = 'file://' + os.path.abspath(path)