Skip to content

Instantly share code, notes, and snippets.

View rohit-lakhanpal's full-sized avatar

Rohit Lakhanpal rohit-lakhanpal

  • Melbourne, VIC, Australia
  • 11:24 (UTC +10:00)
View GitHub Profile
@rohit-lakhanpal
rohit-lakhanpal / fy-prerequisites-for-planning.md
Last active August 3, 2023 06:01
A guide to prepare for our FY24 strategic planning session, including pre-requisites and a detailed agenda

Pre-Requisites for FY24 Planning Session

Before we delve into our detailed planning session, it's important that everyone comes prepared. The following points should be thoroughly considered by each team member. These are not only necessary for our conversation but will also enable us to strategize more effectively.

  1. Competitive Landscape

    • Assess our current competitive position. Who are our direct and indirect competitors?
    • What are the strengths and weaknesses of our competitors?
    • What strategic moves have they made recently?
  2. Market Trends

@rohit-lakhanpal
rohit-lakhanpal / launch.json
Created April 29, 2023 03:06
Create React App Debugging
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
@rohit-lakhanpal
rohit-lakhanpal / roprahs-favourite-links.md
Last active February 21, 2023 21:55
Running a successful hackathon
@rohit-lakhanpal
rohit-lakhanpal / asdk-local-createDb.sql
Created August 13, 2022 06:50
Script to create local databases for the Azure SaaS Dev Kit.
USE master;
GO
IF DB_ID ( N'AsdkTenancyDb' ) IS NOT NULL
DROP DATABASE AsdkTenancyDb;
GO
CREATE DATABASE AsdkTenancyDb;
GO
USE master;
GO
@rohit-lakhanpal
rohit-lakhanpal / Program.cs
Created June 3, 2022 09:20
Read the properties and relationships of an acronym object using Microsoft Graph (beta).
// using Azure.Identity;
// using Microsoft.Graph.Beta;
// Create an Azure App Registration with the following API permissions:
// - https://graph.microsoft.com/SearchConfiguration.Read.All
// - https://graph.microsoft.com/SearchConfiguration.ReadWrite.All
string clientId = "";
string clientSecret = "";
string tenantId = "";
@rohit-lakhanpal
rohit-lakhanpal / Embed-ADX-In-App.html
Created December 16, 2021 06:48
Use this to embed Azure Data Explorer's Web UI within your application. Learn more at https://docs.microsoft.com/en-us/azure/data-explorer/kusto/api/monaco/host-web-ux-in-iframe.
<iframe
width="1000"
height="800"
src="https://dataexplorer.azure.com/clusters/my-app.eastus/databases?ibizaPortal=true"
title="Analytics"
frameborder="0"
allowfullscreen>
</iframe>
<script>
@rohit-lakhanpal
rohit-lakhanpal / AcquireTokenForClientFromAD.cs
Created December 16, 2021 06:37
Use the Microsoft.Identity.Client to acquire a token from AD for your daemon or service (using client credentials).
namespace GetToken.Console
{
using Microsoft.Extensions.Configuration;
using Microsoft.Identity.Client;
using Microsoft.Identity.Web;
using System;
using System.Globalization;
public class Program
@rohit-lakhanpal
rohit-lakhanpal / panviva-document.css
Created February 3, 2021 03:43
Sample CSS to style your panviva documents.
/* -- Only for Print Media, NOT change to LESS-- */
/* Heading */
div.documents {
font-family: 'Raleway', sans-serif;
padding: 0px 50px;
}
.documents h1 {
font-size: 1.2em;
@rohit-lakhanpal
rohit-lakhanpal / sample-panviva-document.css
Created November 30, 2020 06:18
Sample style sheets for panviva documents.
/* Heading */
div.documents {
font-family: 'Raleway', sans-serif;
padding: 0px 50px;
}
.documents h1 {
font-size: 1.2em;
line-height: 1.4em;
font-weight: normal;
@rohit-lakhanpal
rohit-lakhanpal / CreateReactAppWithMaterialUiTypescript.md
Created October 2, 2020 09:58
Create-React-App with material-ui for typescript

Create React App example with TypeScript

How to use

Download the example or clone the repo:

curl https://codeload.github.com/mui-org/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/create-react-app-with-typescript
cd create-react-app-with-typescript