Skip to content

Instantly share code, notes, and snippets.

@zclancy
zclancy / keybase.md
Created September 23, 2014 20:41
keybase.md

Keybase proof

I hereby claim:

  • I am zclancy on github.
  • I am clancy (https://keybase.io/clancy) on keybase.
  • I have a public key whose fingerprint is BF99 126C C714 8605 81F2 8FB3 BF22 BCEF 3205 AAE2

To claim this, I am signing this object:

@zclancy
zclancy / Common.cs
Created July 17, 2012 15:08
A simple console application for testing Lync Group Chat SDK. Command line parameters build the message, and specify the chat room. NDesk.Options is used for command line argument parsing.
using System;
using System.Configuration;
using System.Net;
using Microsoft.Rtc.Collaboration;
using Microsoft.Rtc.Collaboration.GroupChat;
using Microsoft.Rtc.Signaling;
namespace GroupChat
{
public static class Common
@zclancy
zclancy / gist:1781761
Created February 9, 2012 18:18
Updated sametime_invoke using jQuery/AJAX/callback functions
var Instant = {};
Instant.launchSametimeConversation = function (stid) {
var time = new Date();
var getUrl = 'http://localhost:59449/stwebapi/chat?userId=' + stid + '&time=' + time.getTime() + '&jsonp=Instant.handleResponse';
// Use jQuery to request the Sametime servlet URL. If a request makes it to the URL successfully, the servlet will return a code 200 and open the Sametime client chat with the user.
// We use the Instant.handleResponse() function as a callback to process the JSONP data object that the servlet hands back.
$.ajax({
type: 'GET',
@zclancy
zclancy / gist:1551834
Created January 2, 2012 19:39
Sametime presence utilities
var Instant = {};
// Function to detect Sametime Connect client presence
Instant.detectClient = function () {
if ( self.getstatus ) {
return true;
} else {
return false;
}
};