Skip to content

Instantly share code, notes, and snippets.

View lexicalunit's full-sized avatar
🏳️‍🌈
Keeper of balance

Amy Troschinetz lexicalunit

🏳️‍🌈
Keeper of balance
View GitHub Profile
@lexicalunit
lexicalunit / GIF-Screencast-OSX.md
Created January 20, 2016 16:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@lexicalunit
lexicalunit / schema_validate.cpp
Created March 24, 2015 19:02
Use libvariant to validate JSON schema against JSON data
// c++ -I/usr/local/include -L/usr/local/lib -lVariant schema_validate.cpp
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <iterator>
#include <memory>
# .bashrc
################################################################################
# python environment control
################################################################################
export PYTHON_ENV=""
function entervirtualenv
{
if type virtualenvwrapper.sh >/dev/null 2>&1; then