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
var accountName = Properties.Settings.Default.StorageAccountName; | |
var accountKey = Properties.Settings.Default.AccessKey; | |
var containerName = Properties.Settings.Default.ContainerName; | |
var blobName = Properties.Settings.Default.Blob; | |
var credentials = new StorageCredentials(accountName, accountKey); | |
var account = new CloudStorageAccount(credentials, useHttps: true); | |
var client = account.CreateCloudBlobClient(); | |
var container = client.GetContainerReference(containerName); |
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
//This script enables underwater effects. Attach to main camera. | |
//Define variables | |
var underwaterLevel = 7; | |
//The scene's default fog settings | |
private var defaultFog; | |
private var defaultFogColor; | |
private var defaultFogDensity; | |
private var defaultSkybox; |
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
public static class BulkEditCheckBoxExtensions | |
{ | |
public static MvcHtmlString BulkEditCheckBoxFor<TModel, TProperty>( | |
this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression) | |
where TModel : IBulkEditViewModel | |
{ | |
var metadata = ModelMetadata.FromLambdaExpression(expression, htmlHelper.ViewData); | |
var model = htmlHelper.ViewData.Model as IBulkEditViewModel; | |
var modelPropertyName = metadata.PropertyName; |
NewerOlder