Skip to content

Instantly share code, notes, and snippets.

@kench
kench / build-linux.sh
Created June 17, 2011 18:58
DepthJS NPAPI Plugin Compilation errors on Linux
#!/bin/sh
echo "Assuming homebrew install of libusb and libfreenect"
mkdir -p depthjs.plugin/Contents/MacOS
cp -f Info.plist depthjs.plugin/Contents
g++ -Wno-write-strings -lresolv \
-I/usr/local/include \
-I/usr/local/include/libusb-1.0 -I/usr/local/include/libfreenect \
`pkg-config --cflags libusb-1.0` \
`pkg-config --cflags opencv` \
-lz \
@orip
orip / JdkBasedTimeZoneProvider.java
Last active January 14, 2017 03:20
A Joda time zone provider based on the JVM's TimeZone implementation, instead of Joda's Olson database. This can reduce Joda's initialization time (during class loading) by several seconds on Android. Inspired by http://stackoverflow.com/a/6298241/37020, but implemented from scratch. Requires Guava, for ImmutableSet.
/*
* Copyright (C) 2013 Onavo Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software