Skip to content

Instantly share code, notes, and snippets.

View Install Azure AD Preview
Install-Module AzureADPreview
-- connect to Azure Active Directory
-- puts up a log in dialog for your Azure subscription
Connect-AzureAD
View Install Azure Active Directroy v2 PowerShell
Install-Module AzureAD
-- for preview version
-- Install-Module AzureADPreview
-- connect to Azure Active Directory
-- puts up a log in dialog for your Azure subscription
Connect-AzureAD
View Install Azure Active Directory v1 Powershell
Install-Module MSOnline
-- connect to Azure Active Directory
-- puts up a log in dialog for your Azure subscription
Connect-AzureAD
@nextechu
nextechu / install-azure-rm.ps
Last active May 15, 2017
Install Azure Resource Manager Powershell
View install-azure-rm.ps
-- check to see if you have PowerShellGet
Get-Module PowerShellGet -list | Select-Object Name,Version,Path
Install-Module AzureRM -AllowClobber
-- once everything is installed, you need to load the module into your PowerShell session
Import-Module AzureRM
View jquery-test-exist
if ($(“div”).length) {
//do something.
}
View jquery-lots-of-selectors
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div>
<div id="div1">My div with id attribute of div1</div>
View jquery-selector-by-class
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p id="hellothere" class="hello">Hello</p>
<p class="hello">World</p>
<script src="Scripts/jquery-2.1.0.js"></script>
<script>
View jquery-jquery-hello-by-id
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p id="hellothere" class="hello">Hello</p>
<p class="hello">World</p>
<script src="Scripts/jquery-2.1.0.js"></script>
<script>