Skip to content

Instantly share code, notes, and snippets.

View michaldudak's full-sized avatar

Michał Dudak michaldudak

View GitHub Profile
@michaldudak
michaldudak / tasks.json
Created August 27, 2021 09:14
MUI tasks
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run docs",
"type": "shell",
"command": "yarn start",
"problemMatcher": "$tsc",
@michaldudak
michaldudak / .gitconfig
Last active June 22, 2021 09:52
My git aliases
[alias]
co = checkout
cob = checkout -b
br = branch
cm = commit -m
cf = commit --fixup
cfh = commmit --fixup HEAD
fp = fetch --prune
fap = fetch --all --prune
fo = !sh -c 'git fetch origin $1:$1' -
@michaldudak
michaldudak / sample.html
Created July 26, 2018 08:48
JS popup box
<!--
HTML popup box with click-outside-to-close functionality
Requires jQuery
-->
<div id="popupWrapper">
<a>
Open
</a>
<div tabindex="-1">
@michaldudak
michaldudak / index.html
Last active July 24, 2018 07:32
Pure CSS radial menu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Radial menu</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="menuContainer">
@michaldudak
michaldudak / reset.css
Created September 16, 2017 15:22
CSS reset
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
@michaldudak
michaldudak / HomeController.cs
Last active August 22, 2017 14:44
Dynamic setup of file server
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.FileProviders;
namespace DynamicMiddleware.Controllers
{
public class HomeController : Controller
{
private readonly MiddlewareInjectorOptions middlewareInjectorOptions;