Skip to content

Instantly share code, notes, and snippets.

View peter-dolkens's full-sized avatar

Peter Dolkens peter-dolkens

View GitHub Profile
@peter-dolkens
peter-dolkens / Makefile
Last active October 27, 2021 13:23
Make batch file to ensure make is available in windows
SHELL := /usr/bin/env bash
.PHONY : help
## Show help
help:
@echo ''
@echo 'Usage:'
@echo ' make ${YELLOW}<target>${RESET} ${GREEN}<description>${RESET}'
@echo ''
@echo 'Targets:'
@peter-dolkens
peter-dolkens / pink.css
Last active October 4, 2020 01:04
background pink
body { background: #f0f !important; }
@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;
}
@peter-dolkens
peter-dolkens / Makefile
Last active February 17, 2020 03:05
Sample Makefile - Jekyll Blog
SHELL := /usr/bin/env bash
.PHONY : all
###############################################################################
# HELP
###############################################################################
# COLORS
GREEN := $(shell tput -Txterm setaf 2)

Keybase proof

I hereby claim:

  • I am peter-dolkens on github.
  • I am dolkensp (https://keybase.io/dolkensp) on keybase.
  • I have a public key whose fingerprint is 06C3 9FCF 356B 49DF 4E10 7956 9457 F587 1061 43F2

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dolkensp on github.
  • I am dolkensp (https://keybase.io/dolkensp) on keybase.
  • I have a public key whose fingerprint is 06C3 9FCF 356B 49DF 4E10 7956 9457 F587 1061 43F2

To claim this, I am signing this object:

@peter-dolkens
peter-dolkens / Spectrum.PNG
Created March 14, 2017 17:35
Snippet to allow for uploading images to Spectrum
document.onpaste = function(event){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE ) {
var result = JSON.parse(xmlhttp.responseText);
document.execCommand("insertHTML", false, result.data.link);
console.log(result.data.link);
}