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
GetBlocks(aboutPage.TopLeftContentBox) | |
.Select(block => new ContentAreaItem() | |
{ | |
ContentLink = ((IContent)block).ContentLink | |
}) | |
.ToList() | |
.ForEach(cai => aboutPage.AdditionalContent.Items.Add(cai)); | |
_contentRepository.Save(aboutPage, SaveAction.Publish); |
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
Get-ChildItem -Recures -Include * | |
| Where-Object { -not $_.PSIsContainer } | |
| Sort-Object Length -descending | |
| Select-Object -First 10 | |
| Select Name, Length | |
-- OR -- | |
gci -re -in * | |
| ?{-not $_.PSIsContainer} |
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
Get-ChildItem "C:\" -Recurse | |
| Where-Object {$_.extension -eq ".txt" } | |
| ForEach-Object { Write-Host $_.FullName } | |
-- OR -- | |
gci "C:\" -re | |
| ? { $_.extension -eq ".txt" } | |
| % { echo $_.FullName } |
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
Get-Content "path/to/file" | Select-Object -Last 10 | |
OR | |
gc "path/to/file" | select -Last 10 |
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
Get-ChildItem -Recurse | Measure-Object -Sum Length | |
OR | |
ls -r | measure -s Length |
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
<UserSettings> | |
<ApplicationIdentity version="11.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/> | |
</ToolsOptions> | |
<Category name="Environment_Group" RegisteredName="Environment_Group"> | |
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="Version">2</PropertyValue> | |
<FontsAndColors Version="2.0"> | |
<Categories> |
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
" Ctrl + Alt + I - ReSharper generate file beside | |
" Ctrl + Alt + S - Resharper surrand with template | |
" File {{{ | |
nmap zX :vsc Edit.UndoClose<CR> | |
nnoremap Q :vsc File.SaveSelectedItems<CR> :vsc File.Close<CR> | |
" }}} | |
" Build {{{ |
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
augroup filetype_vim | |
autocmd! | |
autocmd FileType vim setlocal foldmethod=marker | |
augroup END | |
" Vim ESCAPE Combinations{{{ | |
imap jj <esc> | |
imap <S-Space> <Esc> | |
vnoremap <S-Space> <Esc> | |
" }}} |
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
if frame < 1.00 | |
@SlideBase = 1.00 | |
@SlideBaseStep = 0.01 | |
@RotBase = 0.5 | |
@RotBaseStep = 0.002 | |
@SliderArm1 = 1 | |
@SliderArm1Step = 0.01 |
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
<#@ template debug="false" hostspecific="false" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<#@ output extension=".cs" #> | |
<#@ assembly name = "Microsoft.CSharp" #> | |
<#@ assembly name = "System.Data" #> | |
<#@ import namespace = "System.Dynamic" #> | |
<#@ import namespace = "System.Data.SqlClient" #> |
OlderNewer