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
[user] | |
name = Hartviglarsen | |
email = morten@hartviglarsen.com | |
[alias] | |
a = add | |
appendtocommit = commit -a --amend -C HEAD | |
b = branch | |
changed = show --stat --oneline | |
cim = commit -m | |
cob = checkout -b |
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
@inherits UmbracoViewPage<dynamic> | |
@if (Model != null && Model.sections != null) | |
{ | |
bool oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; | |
<div class="umb-grid"> | |
@if (oneColumn) | |
{ | |
foreach (var section in Model.sections) |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.Home> | |
@using ContentModels = Umbraco.Web.PublishedContentModels; | |
@{ | |
Layout = "Master.cshtml"; | |
Home home = Model.Content as Home; | |
int page = 1; | |
var postsPerPage = home.PostsPerPage; |
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
let date = new Date().toJSON().slice(0, 10).split("-").reverse().join("-") |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using ContentModels = Umbraco.Web.PublishedContentModels; | |
@{ | |
Layout = null; | |
var crumbs = Model.Content | |
.Ancestors() | |
.Where(x => x.IsVisible()) | |
.OrderBy("Level"); | |
} |
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
Picture | |
Brightness 81 | |
Contrast 45 | |
Sharpness 5 | |
Gamma 2 | |
Color Temp Bluish | |
Picture Advanced | |
Picture Mode Low Standard | |
Overscan Off |
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
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Remove WWW" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAny"> | |
<add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" /> | |
</conditions> | |
<action type="Redirect" url="https://{C:2}/{R:1}" appendQueryString="true" redirectType="Found" /> |
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 Umbraco.Core; | |
using Umbraco.Core.Logging; | |
public class RefreshPreVal : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) |
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 Hartviglarsen.Core.ViewModels; | |
using Hartviglarsen.Factories; | |
using System.Web.Mvc; | |
using Umbraco.Web.Models; | |
using Umbraco.Web.Mvc; | |
namespace Hartviglarsen.Core.Controllers | |
{ | |
public class BlogController : RenderMvcController | |
{ |
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
function getProducts() { | |
var url = "url.com/children"; | |
var options = { | |
"method" : "get", | |
"contentType": "application/json" | |
}; | |
var response = UrlFetchApp.fetch(url, options); | |
response = JSON.parse(response); | |
OlderNewer