Skip to content

Instantly share code, notes, and snippets.

View nazgee's full-sized avatar

Michal Stawinski nazgee

  • Poland, Wroclaw
View GitHub Profile
@amanahuja
amanahuja / plotting_categorical_variables.py
Created May 16, 2014 22:20
Plotting a Categorical Variable in matplotlib with pandas
"""
Plotting a categorical variable
----------------------------------
`df` is a pandas dataframe with a timeseries index.
`df` has a column `categorical` of dtype object, strings and nans, which is a categorical variable representing events
----------------------------------
>>> print df[:5]
categorical
@dvdhrm
dvdhrm / kmstest.c
Created November 14, 2011 20:11
DRM KMS Test
#define EGL_EGLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <errno.h>
#include <gbm.h>
#include <GL/gl.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <stdlib.h>