Skip to content

Instantly share code, notes, and snippets.

View mjgartendev's full-sized avatar

Michael Garten mjgartendev

View GitHub Profile
@mjgartendev
mjgartendev / bulma-css-template.markdown
Created August 22, 2018 22:35
Bulma CSS - Template
@mjgartendev
mjgartendev / index.html
Created August 22, 2018 20:37
Vue and Codemirror Example
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
</head>
<body>
<div class="container-fluid" id="app">
@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;
}
<template>
<nav class="navbar is-transparent">
<div class="navbar-brand">
<a class="navbar-item" href="https://bulma.io">
<img src="https://bulma.io/images/bulma-logo.png" alt="Bulma: a modern CSS framework based on Flexbox" width="112" height="28">
</a>
<div class="navbar-burger burger" data-target="navbarExampleTransparentExample">
<span></span>
<span></span>
<span></span>
<template>
<aside class="menu">
<p class="menu-label">
General
</p>
<ul class="menu-list">
<li><a>Dashboard</a></li>
<li><a>Customers</a></li>
</ul>
<p class="menu-label">
@mjgartendev
mjgartendev / index.html
Last active July 19, 2018 05:43
jsbin.com export as gist demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@mjgartendev
mjgartendev / index.html
Last active August 10, 2018 14:10
vue markdown editor
<div id="editor" class="editor-shell md-editor">
<div id="html-editor" class="panel">
<div class="panel-header">Markdown Editor</div>
<textarea
id="md-input"
class="panel-content"
:value="input"
@input="update">
</textarea>
<div id="app" class="editor-shell">
<div id="html-editor" class="panel">
<div class="panel-header">Code Editor</div>
<textarea class="panel-content" id="editor">
<button class="btn btn-lg btn-success">Demo Button</button>
</textarea>
</div>
<div id="html-preview" class="panel">
@mjgartendev
mjgartendev / index.html
Created June 25, 2018 08:25
Vuetify Code Editor
<div id="app">
<v-app>
<v-layout fill-height>
<v-navigation-drawer
dark
mini-variant
stateless
value="true"
app
>