Skip to content

Instantly share code, notes, and snippets.

View coldacid's full-sized avatar
🚩
CHECK YOUR DEPENDENCIES

Chris Charabaruk coldacid

🚩
CHECK YOUR DEPENDENCIES
View GitHub Profile

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@magnetikonline
magnetikonline / example.ps1
Created December 15, 2015 06:03
Creating a PowerShell PSCredential object with username/password using secure/encrypted strings.
Set-StrictMode -Version Latest
$PASSWORD = "mypassword"
# create secure string from plain-text string
$secureString = ConvertTo-SecureString -AsPlainText -Force -String $PASSWORD
Write-Host "Secure string:",$secureString
Write-Host
@davidfowl
davidfowl / dotnetlayout.md
Last active June 3, 2024 01:07
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@clausjoergensen
clausjoergensen / gist:1089190
Created July 18, 2011 11:03
A generic LongListCollection for use with the Silverlight Toolkit's LongListSelector
public class LongListCollection<T, TKey> : List<LongListItem<T, TKey>>
{
public LongListCollection()
{
}
public LongListCollection(IEnumerable<T> items, Func<T, TKey> keySelector)
{
if (items == null)
throw new ArgumentException("items");