Skip to content

Instantly share code, notes, and snippets.

Tiklu Ganguly tikluganguly

Block or report user

Report or block tikluganguly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tikluganguly
tikluganguly / Vector+Test.ipynb
Created Oct 9, 2017
A simple test file to test the performance of vector function execution in any infrastructure
View Vector+Test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tikluganguly
tikluganguly / AsyncHelper.cs
Created May 23, 2017
Async Helper to run async method in synchronizied context of c#
View AsyncHelper.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Utils
{
public static class AsyncHelper
View azurecan.py
import can
import iothub_client
from iothub_client import *
from can.interfaces.interface import Bus
#global vars
message_timeout = 10000
protocol = IoTHubTransportProvider.AMQP
connection_string = "[add your connection string here]"
View Startup-VM.ps1
<#
.SYNOPSIS
Provides an option to startup selected VMs
.DESCRIPTION
This runbook can be used for starting up a set of Azure RM VMs mentioned in the parameter
.PARAMETER connectionName
String value for Azure Runbook Connection Name. The default value of this should be AzureRunAsConnection
View Shutdown-VM.ps1
<#
.SYNOPSIS
Provides an option to shutdown selected VMs
.DESCRIPTION
This runbook can be used for shutting down a set of Azure RM VMs mentioned in the parameter
.PARAMETER connectionName
String value for Azure Runbook Connection Name. The default value of this should be AzureRunAsConnection
View jsbin.ivumuz.html
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="http://documentcloud.github.io/underscore/underscore-min.js"></script>
<script src="http://documentcloud.github.io/backbone/backbone-min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-controller="Controller1">
@tikluganguly
tikluganguly / fizzbuzz.py
Created Mar 30, 2012
FizzBuzz in Pythong
View fizzbuzz.py
for x in range(100): print x%3/2*'Fizz'+x%5/4*'Buzz' or x+1
View FizzBuzz.cs
Enumerable.Range(1, 100).ToList().ForEach(i => Console.WriteLine((i % 3 == 0 && i % 5 == 0) ? "FizzBuzz" : (i % 5 == 0) ? "Buzz" : (i % 3 == 0) ? "Fizz" : i.ToString()));
You can’t perform that action at this time.