I hereby claim:
- I am xcud on github.
- I am xcud (https://keybase.io/xcud) on keybase.
- I have a public key whose fingerprint is 7BA8 6448 F6D1 3723 C179 A1E8 B6D3 B627 C518 10F7
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am xcud on github. | |
* I am xcud (https://keybase.io/xcud) on keybase. | |
* I have a public key whose fingerprint is 3639 68AF 7B4C 85CA 8188 6F73 AFAE A77A 020D FE73 | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
Lessons Learned – The Hard Way Eric Schmidt, E&VC Final Class Transcribed by Abheek Anand
About Management Culture:
public static bool IsImage(string path) | |
{ | |
Dictionary<string, string[]> knownImageHeaders = new Dictionary<string, string[]>() | |
{ | |
{"jpg", new [] { "FF", "D8" } }, | |
{"bmp", new [] { "42", "4D" } }, | |
{"gif", new [] { "47", "49", "46" } }, | |
{"tif", new [] { "49", "49", "2A" } }, | |
{"png", new [] { "89", "50", "4E", "47", "0D", "0A", "1A", "0A" } }, | |
}; |
$source = @" | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Security.Principal; | |
using System.Text; | |
using System.Collections.Generic; | |
public static class ADPermissions { | |
public static string[] EnumRights() | |
{ |
using System; | |
using System.Linq; | |
using Mono.Options; | |
namespace xcud | |
{ | |
public class AttributedOptionSet : OptionSet | |
{ | |
public static T Parse<T>(string[] args) where T : AttributedOptionSet, new() | |
{ |
using System; | |
using System.Linq; | |
using System.Management.Automation; | |
using System.Management.Automation.Runspaces; | |
using System.Reflection; | |
namespace Xcud.Net | |
{ | |
/// <example> | |
/// DynamicWebServiceProxy proxy = new DynamicWebServiceProxy(uri); |
<# | |
.Synopsis | |
Demonstrate built-in Verbose support | |
.Example | |
PS> Correct-Example -Verbose | |
VERBOSE: This works | |
PS> Incorrect-Example -Verbose | |
PS> Incorrect-Example2 -Verbose |
<# | |
.Synopsis | |
Extend Get-Content to include a -Fast parameter; much less flexible but more performant | |
.Example | |
PS> (Measure-Command { Get-Content .\data.xml} ).TotalMilliseconds | |
1609.3267 | |
PS> (Measure-Command { Get-Content .\data.xml -Fast} ).TotalMilliseconds | |
39.2511 | |
#> |
<# | |
.Synopsis | |
Writes a string to a PDF via Microsoft Word automation | |
.Example | |
PS> ps | out-string | out-pdf -Path ".\processes.pdf" | |
#> | |
function Out-PDF() { | |
param( | |
[Parameter(Mandatory=$True, Position=0, ValueFromPipeline=$true)] $Text, |