This file contains 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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "VSO Git API", | |
"description": "Interact with a Git repository hosted in VSO", | |
"version": "1.0-preview.1" | |
}, | |
"schemes": [ | |
"https" | |
], |
This file contains 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
var PageTransitioner = Class.create(); | |
PageTransitioner.prototype = { | |
initialize: function() { | |
this.trackLinks(); | |
}, | |
trackLinks: function() { | |
document.observe('click', (function(event){ | |
var target = event.findElement('a[rel^=transition]') || event.findElement('area[rel^=transition]'); | |
if (target) { | |
if (typeof(target) != 'object') target = $(target); |
This file contains 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
document.observe('click', (function(event){ | |
var target = event.findElement('a[rel^=transition]') || event.findElement('area[rel^=transition]'); | |
... | |
} |
This file contains 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
<a class="nav" rel="transition" href="page2.html">Page 2</a>; |
This file contains 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
function GitHub { | |
Param | |
( | |
[CmdletBinding()] | |
[parameter(Mandatory=$true)] | |
[String] | |
$remote | |
) | |
$loc = (git remote show $remote | Select-String -Pattern "Fetch URL: (.+?)github.com[:|/](?<fork>.*)\.git" | select -expand Matches | foreach { $_.groups["fork"].value }) | |
Start "http://github.com/$loc" |
This file contains 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
# Import all of the AzureRM.* modules within the known semantic version range | |
Import-AzureRM | |
# Import a single AzureRM module | |
Import-Module AzureRM.Compute | |
# Import Azure Service Management | |
Import-Module Azure |
This file contains 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
# Install the Azure Resource Manager modules from PowerShell Gallery | |
Install-Module AzureRM | |
Install-AzureRM | |
# Install the Azure Service Management module from PowerShell Gallery | |
Install-Module Azure |
This file contains 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
# Import the Azure Service Management module | |
Import-Module Azure | |
# To login to Azure Service Management | |
Add-AzureAccount | |
# To list the your virtual machines | |
Get-AzureVM |
This file contains 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
Set-ExecutionPolicy RemoteSigned | |
Install-Module AzureRM | |
Install-AzureRM | |
Login-AzureRmAccount |
This file contains 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
# To login to Azure Resource Manager | |
Login-AzureRmAccount | |
# To view all subscriptions for your account | |
Get-AzureRmSubscription | |
# To select a default subscription for your current session | |
Get-AzureRmSubscription –SubscriptionName “your sub” | Select-AzureRmSubscription | |
# To select the default storage context for your current session |
OlderNewer