Skip to content

Instantly share code, notes, and snippets.

@draganmarjanovic
draganmarjanovic / videoconv.py
Last active November 24, 2015 12:58
Convert any supported video file type to MP4.
#!/usr/bin/python
import os
from os import listdir
from os.path import isfile, join
# Preferences
supported_formats = ["mkv", "mp4", "wmv", "flv", "m4v"]
output_format = "mp4"
CoinEx API
# All timestamps are in UTC
# All currency amounts and exchange rates are multiplied by 10^8 to get rid of floating point numbers
# All API requests should contain HTTP header 'Content-type: application/json'
# Private API methods should have API-Key and API-Sign headers
# API-Key header should contain your API access key which can be generated
# at your account settings page
# API-Sign header should contain request's POST data signed by your account's
@wrburgess
wrburgess / gist:2086949
Created March 19, 2012 00:20
Setting up New Relic for Sinatra on Heroku #newrelic #sinatra #heroku
@martinkunev
martinkunev / heap.c
Created November 14, 2011 22:52
Binary heap (C implementation)
// WARNING: Requires C99 compatible compiler
#include <unistd.h>
#include <stdlib.h>
#include "heap.h"
#define CMP(a, b) ((a) >= (b))
static const unsigned int base_size = 4;