- Two types of people
- Unix Shell users
- Command Prompts are Scary
This file contains hidden or 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.ComponentModel.DataAnnotations; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication2 | |
{ |
This file contains hidden or 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
class LetThereBeAwesome { | |
public string AndThereWasAwesome { get; set; } | |
} |
This file contains hidden or 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
<Page.BottomAppBar> | |
<AppBar x:Name="bottomBar" | |
Padding="10,0,10,0"> | |
<Grid> | |
<StackPanel Orientation="Horizontal" | |
HorizontalAlignment="Right"> | |
<Button Style="{StaticResource AddAppBarButtonStyle}" | |
Click="Button_Click" /> | |
</StackPanel> | |
</Grid> |
Amir's RRYN Version (RRYN == Ruby Rake Yaml Nokogiri)
First, assuming you've not done a bunch of PowerShell before, lets get you setup with the minimums (in my opinion)
- Set your execution policy, if you haven't already. You can choose Unrestricted if you prefer, RemoteSigned is a minimum for PSGet.
This file contains hidden or 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
$project = ".\ConsoleApplication1.csproj" | |
$file = "<Compile Include='Models\NewClass.cs' />" | |
[xml](Get-Content $project) | ` | |
Set-Variable -Name doc | ` | |
Select-Xml "//x:ItemGroup[x:Compile]" -Namespace @{"x"=$doc.Project.xmlns} | ` | |
Select-Object -ExpandProperty Node -First 1 | ` | |
% { $_.InnerXml += $file; $doc.Save($project) } |
This file contains hidden or 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.Text; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Rhino.Mocks; | |
using Adventure.Commands; | |
using Adventure.Data; | |
namespace Adventure.Tests |
This file contains hidden or 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.Collections.Generic; | |
using System.Security.Cryptography; | |
using System.Web.Mvc; | |
using System; | |
using System.Web; | |
namespace Armory.Web | |
{ | |
public class Gravatar | |
{ |
NewerOlder