Skip to content

Instantly share code, notes, and snippets.

@jjnilton
jjnilton / generate-colors-keywords-for-web-mode.el
Last active May 28, 2022 16:02
Generate colors' keywords for web-mode.el
;; Get colors' keywords from w3 wiki into an alist ( keyword . hex )
(require 'dom)
(setq-local
colorlist
(with-current-buffer
(url-retrieve-synchronously
"https://www.w3.org/wiki/CSS3/Color/Extended_color_keywords")
(goto-char (point-min))
(re-search-forward "^$")
(delete-region (point) (point-min))
@jjnilton
jjnilton / gh-pandoc-LICENSE.md
Created May 4, 2021 20:34 — forked from forivall/gh-pandoc-LICENSE.md
Github-style css for pandoc

The MIT License (MIT)

Copyright (c) 2016-2017 Emily M Klassen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@jjnilton
jjnilton / cloudflare-ddns-update.sh
Created February 1, 2021 13:38 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
animation: colorhue 0.1s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
animation: colorhue 5s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: brightness(2.5)
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: hue-rotate(20deg) brightness(1) contrast(0.75) sepia(0.5)
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg) brightness(3) contrast(0.75) saturate(5);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg) brightness(3) contrast(0.75) saturate(5);}
}
.edit {
animation: colorhue 2s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg) brightness(2) contrast(0.75);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg) brightness(2) contrast(0.75);}
}
.edit {
animation: colorhue 1s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: brightness(2.5) contrast(1) invert(1) hue-rotate(350deg);
}