Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Sandeep Talabathula sandeeptalabathula

🚀
View GitHub Profile
@sandeeptalabathula
sandeeptalabathula / Program.cs
Last active Nov 30, 2021
Determine Whether Two Date Ranges Overlap Tests
View Program.cs
namespace ConsoleApplication
{
using System;
class Program
{
/// <param name="args"></param>
static void Main(string[] args)
{
bool isoverlap;
View gist:3acf224c0aed9301ad6124c7bc3e2fac
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();
View gist:4741049
<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) {
@sandeeptalabathula
sandeeptalabathula / YammerJSInt
Created Mar 15, 2012
Used Yammer javascript api in this html file.
View YammerJSInt
<!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"});