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
Pod::Spec.new do |s| | |
s.name = "GoogleAnalytics-iOS-SDK" | |
s.version = "2.0beta4" | |
s.summary = "GoogleAnalytics for iOS SDK." | |
s.description = <<-DESC | |
The Google Analytics SDK for iOS makes it easy for native iOS developers to collect user engagement data form their applications. Developers can then use the Google Analytics reports to measure: | |
* The number of active users are using their applications. | |
* From where in the world the application is being used. | |
* Adoption and usage of specific features. |
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
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
# Not all of these things are the like the others... | |
# The last version of this usage will leave you in sadness if you don't catch it. | |
New-Object System.Version("0.1.1") | |
# Major Minor Build Revision | |
# ----- ----- ----- -------- | |
# 0 1 1 -1 | |
New-Object System.Version(0, 1, 1) | |
# Major Minor Build Revision |
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
# Uninstall the AzureRM component modules | |
Uninstall-AzureRM | |
# Uninstall AzureRM module | |
Uninstall-Module AzureRM | |
# Uninstall the Azure module | |
Uninstall-Module Azure | |
# Or, you can nuke all Azure* modules |
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