Skip to content

Instantly share code, notes, and snippets.

@rorcraft
rorcraft / Base File.sublime-settings
Last active September 27, 2015 18:38 — forked from jaredatron/Base File.sublime-settings
Default (OSX).sublime-keymap
{
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
"detect_indentation": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Menlo",
"font_size": 11.0,
"ignored_packages":
[
"Vintage"
],
@rorcraft
rorcraft / ankoder_sample.cs
Created November 16, 2009 07:16 — forked from goodwill/ankoder_sample.cs
c# .NET authentication to Ankoder API
/*
Sample Code for Ankoder API called via .NET C#
Written by William Yeung @ Gearbox Software (http://www.gearboxsoft.com)
*/
const string PrivateKey = "YOUR_ANKODER_KEY";
var ascii = Encoding.ASCII;
var date = DateTime.Now.ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss") + " GMT";
var action_url = "video.xml";
string token=string.Format("-{0}-GET-/{1}-", date, action_url);
require "rubygems"
require "hmac-sha1"
require "base64"
ankoder_access_key = ANKODER_ACCESS_KEY
private_key = ANKODER_PRIVATE_KEY
ankoder_date = Time.now.strftime("%a, %d %b %Y %X GMT")
ankoder_action = "GET"
ankoder_path = "/video.xml"
string = "-#{ankoder_date}-#{ankoder_action}-#{ankoder_path}-"
require "rubygems"
require "hmac-sha1"
require "base64"
ankoder_access_key = ANKODER_ACCESS_KEY
private_key = ANKODER_PRIVATE_KEY
ankoder_date = Time.now.strftime("%a, %d %b %Y %X GMT")
ankoder_action = "GET"
ankoder_path = "/video.xml"
string = "-#{ankoder_date}-#{ankoder_action}-#{ankoder_path}-"
require "rubygems"
require "hmac-sha1"
require "base64"
ankoder_access_key = ANKODER_ACCESS_KEY
private_key = ANKODER_PRIVATE_KEY
ankoder_date = Time.now.strftime("%a, %d %b %Y %X GMT")
ankoder_action = "GET"
ankoder_path = "/video.xml"
string = "-#{ankoder_date}-#{ankoder_action}-#{ankoder_path}-"