Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Reénse reense

🎯
Focusing
  • Tickles Digital Agency
  • Netherlands
Block or report user

Report or block reense

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zezba9000
zezba9000 / HTTPServer.cs
Last active May 8, 2019
HTTP C# server
View HTTPServer.cs
// Modified from: https://gist.github.com/aksakalli/9191056
using System;
using System.Collections.Generic;
using System.Net;
using System.IO;
using System.Threading;
namespace MyNamespace
{
@simonhamp
simonhamp / AppServiceProvider.php
Last active Nov 12, 2019
A pageable Collection implementation for Laravel
View AppServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@jbreuer
jbreuer / gist:956aeb77c0c679f44cc0
Last active Nov 12, 2018
Get current domain root node in Umbraco content finder
View gist:956aeb77c0c679f44cc0
public class NewsContentFinder : IContentFinder
{
public bool TryFindContent(PublishedContentRequest contentRequest)
{
if (contentRequest != null && contentRequest.HasDomain)
{
var rootDomainNode = contentRequest.RoutingContext.UmbracoContext.ContentCache.GetById(contentRequest.Domain.RootNodeId);
}
}
}
You can’t perform that action at this time.