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
/** | |
* Simple CSS only flyout menu | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
font-family: Arial; | |
} |
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
nav { | |
width: 100%; | |
float: left; | |
} | |
nav ul { | |
list-style: none; | |
padding: 0px; | |
margin: 0px; | |
} | |
nav li { |
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
nav { | |
width: 100%; | |
float: left; | |
} | |
nav ul { | |
list-style: none; | |
padding: 0px; | |
margin: 0px; | |
} | |
nav li { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Intranet | |
{ | |
public class GlobalContainer | |
{ | |
public static SmgIntranetContainer Instance |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Intranet | |
{ | |
public static class MenuExtensions | |
{ | |
public static IMenu NextSibling(this IMenu menu) |
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
param([Parameter(Mandatory)]$Id) | |
$response = Invoke-WebRequest https://api.github.com/gists/$Id | |
$gist = $response.Content | ConvertFrom-Json | |
$gist.files | gm -MemberType NoteProperty | select -First 1 | % { | |
$file = $gist.files."$($_.Name)" | |
$file.content | |
Write-Verbose "filename: $($file.filename)" |
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
param ([string]$ComputerName = '*') | |
begin { | |
filter Check-Online { | |
trap { continue } | |
. { | |
$timeout = 1000 | |
$obj = New-Object system.Net.NetworkInformation.Ping | |
$result = $obj.Send($_, $timeout) | |
if ($result.status -eq 'Success') { $_ } |
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
static class EnumerableExtensions | |
{ | |
public static IEnumerable<T> Distinct<T, TProperty>( | |
this IEnumerable<T> source, | |
Expression<Func<T, TProperty>> propertyExpression) | |
{ | |
return source.Distinct( | |
new PropertyExpressionComparer<T, TProperty>(propertyExpression)); | |
} |
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
<# | |
.SYNOPSIS | |
Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager | |
.DESCRIPTION | |
Adapted from: http://stackoverflow.com/questions/7162604/get-cached-credentials-in-powershell-from-windows-7-credential-manager | |
.PARAMETER TargetName | |
The name of the target login informations in the Windows Credential Manager |
NewerOlder