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
<!-- Code snippet --> | |
<div class="form-group"> | |
<div class="col-md-12 text-center"> | |
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | |
</div> | |
</div> |
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
[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | |
Set-ExecutionPolicy Unrestricted -Scope CurrentUser | |
function downloadFile($dir, $fileName, $url) | |
{ | |
$dirExists = Test-Path $dir | |
$fullFile = ($dir+"\"+$fileName) | |
if (-Not $dirExists) | |
{ |
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.Text; | |
namespace Everhaven.Utility | |
{ | |
internal static class DictionaryExtensions | |
{ | |
public static V GetOrNull<K, V>(this Dictionary<K, V> dictionary, K key) |
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 (Html.BeginForm()) | |
{ | |
using (Html.BeginFields()) | |
{ | |
<h4>Model Heading</h4> | |
<hr /> | |
@Html.ValidationSummary(true) | |
@Html.Field(m => m.FirstName, @<text>@Html.EditorFor(item) @Html.ValidationMessageFor(item)</text>) |
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; | |
using System.Web.Mvc; | |
using System.Web.WebPages; | |
using System.Linq.Expressions; | |
using System.Web.Mvc.Html; | |
using System.Text; |