Skip to content

Instantly share code, notes, and snippets.

View vertonghenb's full-sized avatar
💭
I may be slow to respond.

Benjamin Vertonghen vertonghenb

💭
I may be slow to respond.
  • University of Applied Sciences and Arts
  • Ghent, Belgium
  • 16:48 (UTC +02:00)
View GitHub Profile
@spemer
spemer / customize-scrollbar.css
Last active May 4, 2024 06:37
✨ Customize website's scrollbar like Mac OS. Not supports in Firefox and IE.
/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
body::-webkit-scrollbar {
background-color: #fff;
width: 16px;
}
/* background of the scrollbar except button or resizer */
@arruw
arruw / ApiController.cs
Last active March 24, 2021 22:05
ASP.NET Core - Generic web API controller with generic repository pattern (created on, modified on, soft delete) ... view demo https://github.com/matjazmav/generic-api
[Authorize]
[Route("api/[controller]")]
public abstract class ApiController<T> : Controller where T : class, IEntity
{
private IApplicationRepository<T> _repository;
public ApiController(IApplicationRepository<T> repository)
{
_repository = repository;
}