Skip to content

Instantly share code, notes, and snippets.

View markbeaton's full-sized avatar

Mark Beaton markbeaton

View GitHub Profile
diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index f00a597..cc826b3 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -167,6 +167,13 @@ typedef enum libvlc_teletext_key_t {
*/
typedef struct libvlc_equalizer_t libvlc_equalizer_t;
+/**
+ * Opaque compressor handle.
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
src/dec/alpha.c \
src/dec/buffer.c \
src/dec/frame.c \
src/dec/idec.c \
src/dec/io.c \
src/dec/layer.c \
@markbeaton
markbeaton / gist:3032615
Created July 2, 2012 10:43
Most ridiculous code ever.
// Rules...
// All game is allowed to be hunted from 30 minutes before the sunrise to 30 minutes after
// sunset in the respective time zone when in season.
// EXCEPT DUCKS!
// Hunting hours for ducks:
// a. Opening times for the first day of the season is different for the time zones. East
// of longitude 146 30’ east, the season will open at 7:10 am, between 146 30’ east and
// 142 30’ east, the season will open at 7:20 am, lastly west of longitude 142 30’, the
// season will open at 7:30 am.
// b. For the rest of the season, duck hunting is allowed 30 minutes before the respective
@markbeaton
markbeaton / dynamic-tweets.cs
Created January 16, 2012 06:14
Twitter user timeline parsing in c# using dynamic...
string json = new WebClient().DownloadString("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=WeMakeApps");
dynamic tweets = new JavaScriptSerializer().DeserializeObject(json);
foreach (dynamic tweet in tweets)
{
Console.WriteLine(tweet["text"]);
Console.WriteLine(tweet["user"]["screen_name"]);
}