- https://newcss.net/
- https://github.com/dbohdan/classless-css
- https://www.cssbed.com/
- https://andybrewer.github.io/mvp/
- http://classless.de/#extra
- https://www.w3.org/StyleSheets/Core/
- https://open-wc.org/guide/
- https://watercss.kognise.dev/
- https://elementcss.neocities.org/
- https://igoradamenko.github.io/awsm.css/
View dispatch-service.cs
public static class DispatchService | |
{ | |
public static void Invoke(Action action) | |
{ | |
Dispatcher dispatchObject = Application.Current.Dispatcher; | |
if (dispatchObject == null || dispatchObject.CheckAccess()) | |
{ | |
action(); | |
} | |
else |
View fixed-sized-queue.cs
public class FixedSizedQueue<T> : ConcurrentQueue<T> | |
{ | |
private readonly object syncObject = new object(); | |
public int Size { get; private set; } | |
public FixedSizedQueue(int size) | |
{ | |
Size = size; | |
} |
View responsive-basic.scss
@media only screen and (max-width: 480px) { | |
/* Mobile Styles Go Here */ | |
} | |
@media only screen and (min-width: 481px) and (max-width: 768px) { | |
/* Tablet Styles Go Here */ | |
} | |
@media only screen and (min-width: 769px) { | |
/* Desktop Styles Go Here */ |
View enforce_dark_mode.js
function addCss(rule) { | |
let css = document.createElement('style'); | |
css.type = 'text/css'; | |
if (css.styleSheet) css.styleSheet.cssText = rule; | |
else css.appendChild(document.createTextNode(rule)); | |
document.getElementsByTagName("head")[0].appendChild(css); | |
} | |
var rule = ':root{background-color:#fff;filter:invert(100%)}*{background-color:inherit}img:not([src*=".svg"]),video{filter:invert(100%)}'; | |
addCss(rule); |
View links.md
View index.html
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> |
View bcolors.py
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' | |
def disable(self): | |
self.HEADER = '' |
View docker.md
List all containers (only IDs)
docker ps -aq
Stop all running containers
docker stop $(docker ps -aq)
View .gitignore
# Created by https://www.gitignore.io/api/notepadpp,visualstudio,visualstudiocode | |
# Edit at https://www.gitignore.io/?templates=notepadpp,visualstudio,visualstudiocode | |
### NotepadPP ### | |
# Notepad++ backups # | |
*.bak | |
### VisualStudioCode ### | |
.vscode/* |
View git_log.sh
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
NewerOlder