This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| .big{font-size:120%;} | |
| </style> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html lang="en"> | |
| <head> | |
| <title>Hello</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!-- <link rel="stylesheet" href="/css/tachyons.css"> --> | |
| <style> | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM | |
| REM Fill in your DLL directory on the cd line | |
| REM Fill in your DLL name on the two RegAsm lines | |
| REM | |
| echo "Registering (thing)..." | |
| cd "%programfiles(x86)%\Location\OfMy\Library" | |
| echo "Changed directory. Trying 32 bit..." | |
| %WINDIR%\Microsoft.Net\Framework\v4.0.30319\RegAsm.exe MyLibrary.dll /tlb /codebase | |
| if ERRORLEVEL 100 ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Originally from http://www.maxtblog.com/2014/03/find-your-windows-azure-powershell-cmdlets-version | |
| function Get-WindowsAzurePowerShellVersion | |
| { | |
| [CmdletBinding()] | |
| Param () | |
| ## - Section to query local system for Windows Azure PowerShell version already installed: | |
| Write-Host "Windows Azure PowerShell Installed version: " | |
| (Get-Module -ListAvailable | Where-Object{ $_.Name -eq 'Azure' }) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PowerShell script to recurse thru github.com/azure/azure-quickstart-templates, | |
| # pulling out every azuredeploy.json file and listing the Resource.Types they use | |
| # Initialise an empty list of $types and an optional $limit for how many files to process | |
| $types = @() | |
| $limit = 100 | |
| # Set up your cloned repo directory here | |
| $directory = 'C:\Projects\Ste\azure-quickstart-templates' | |
| cd $directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Microsoft.ApiManagement/service | |
| Microsoft.ApiManagement/service/providers/diagnosticSettings | |
| Microsoft.Authorization/roleAssignments | |
| Microsoft.Automation/automationAccounts | |
| Microsoft.Automation/automationAccounts/modules | |
| Microsoft.Automation/automationAccounts/runbooks | |
| Microsoft.Backup/BackupVault | |
| Microsoft.Backup/BackupVault/registeredContainers/protectedItems | |
| Microsoft.Batch/batchAccounts | |
| Microsoft.Cache/Redis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <button type="button" | |
| submit-item | |
| data-url="/Controller/Action" | |
| data-item-code="ABC123">Submit ABC123</button> | |
| <script> | |
| //Helper to get data-items without jQuery | |
| Object.prototype.data = function(x) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>Big Edit</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| body | |
| { | |
| font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'VBA | |
| ' Results: | |
| ' 1 is truthy but not equal to True | |
| ' -1 is truthy and == True | |
| ' 0 is falsy and == False | |
| ' "True" is truthy and == True | |
| ' "False" is falsy and == False | |
| Public Sub Test() | |
| If "True" Then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Add column to table | |
| if not exists ( | |
| select * | |
| from sys.columns | |
| where object_id = OBJECT_ID('MyTable') | |
| and name = 'MyNewColumn' | |
| ) | |
| begin | |
| alter table MyTable | |
| add MyNewColumn nvarchar(20) null |