Skip to content

Instantly share code, notes, and snippets.

View mjgartendev's full-sized avatar

Michael Garten mjgartendev

View GitHub Profile
@mjgartendev
mjgartendev / index.html
Created August 10, 2019 10:30 — forked from billiegoose/index.html
magic portal (isomorphic-git)
<div>
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password.">
<button type="button" id="cloneButton">Clone</button>
</div>
<output id="log" style="white-space: pre; font-family: monospace;"></output>
<script src="https://unpkg.com/magic-portal"></script>
<script>
let worker = new Worker("./worker.js")
@mjgartendev
mjgartendev / colorVars.css
Created April 13, 2019 13:04 — forked from softpunch/colorVars.css
CSS Variables For Color Manipulation
/* ----
css custom properties to manipulate color
MIT - 2017 - Soft Punch
https://gist.github.com/softpunch/
set initial "main" color via HSL values.
automatically calculate harmonies and variations of that color with pure css.
harmonies are determined solely by hue.
@mjgartendev
mjgartendev / ApiController.cs
Created August 7, 2018 18:52 — forked from arruw/ApiController.cs
ASP.NET Core - Generic web API controller with generic repository pattern (created on, modified on, soft delete)
[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;
}