Skip to content

Instantly share code, notes, and snippets.

View sandeeptalabathula's full-sized avatar
🚀

Sandeep Talabathula sandeeptalabathula

🚀
View GitHub Profile
@sandeeptalabathula
sandeeptalabathula / YammerJSInt
Created March 15, 2012 03:33
Used Yammer javascript api in this html file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="https://assets.yammer.com/platform/yam.js"></script>
<script type="text/javascript">
yam.config({appId: "VZmQdjQDS5j60WqapRlyBA"});
<script type="text/javascript" data-app-id="YOUR-APP-ID" src="https://assets.yammer.com/platform/yam.js"></script>
<script>
yam.getLoginStatus(function(response) {
if (response.authResponse)
{
//GET THE TOKENS FOR ALL MY NETWORKS
yam.request({
url: "https://www.yammer.com/api/v1/oauth/tokens.json",
method: "GET",
success: function(msg) {
var fs = require('fs');
var require = patchRequire(require);
require('../../Common/utility');
require('../../Common/common');
require('../../Common/authentication');
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var time = currentTime.getHours() + '-' + currentTime.getMinutes() + '-' + currentTime.getSeconds();
@sandeeptalabathula
sandeeptalabathula / Program.cs
Last active October 14, 2022 15:06
Determine Whether Two Date Ranges Overlap Tests
namespace ConsoleApplication
{
using System;
class Program
{
/// <param name="args"></param>
static void Main(string[] args)
{
bool isoverlap;