Skip to content

Instantly share code, notes, and snippets.

View devigned's full-sized avatar

David Justice devigned

View GitHub Profile
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);
document.observe('click', (function(event){
var target = event.findElement('a[rel^=transition]') || event.findElement('area[rel^=transition]');
...
}
<a class="nav" rel="transition" href="page2.html">Page 2</a>;
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.
{
"swagger": "2.0",
"info": {
"title": "VSO Git API",
"description": "Interact with a Git repository hosted in VSO",
"version": "1.0-preview.1"
},
"schemes": [
"https"
],
@devigned
devigned / github.ps1
Created October 3, 2015 07:06
A little PowerShell script to jump to a github repo given the remote name
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"
@devigned
devigned / powershell-and-versions.ps1
Created October 5, 2015 06:52
PowerShell and System.Version Examples.
# 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
@devigned
devigned / get-started-azps-1-0-pre-rm.ps1
Last active October 10, 2015 00:31
Getting started with Azure PowerShell 1.0 Preview RM
Set-ExecutionPolicy RemoteSigned
Install-Module AzureRM
Install-AzureRM
Login-AzureRmAccount
@devigned
devigned / uninstall-azps-1-0-pre.ps1
Last active February 7, 2018 08:07
Uninstall Azure PowerShell 1.0
# 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
@devigned
devigned / get-started-azps-1-0-pre-rm.ps1
Last active October 12, 2015 16:46
Getting started with Azure 1.0 Preview Resource Manager
# 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