Mathematical solution to https://cdn.cs50.net/2020/x/events/puzzles/puzzles.pdf -> Putting it all together
First, we encode tiles into binary in low-byte order, assuming an 8-bit row-size.
For example:
J
UN
H
SHELL := /usr/bin/env bash | |
.PHONY : help | |
## Show help | |
help: | |
@echo '' | |
@echo 'Usage:' | |
@echo ' make ${YELLOW}<target>${RESET} ${GREEN}<description>${RESET}' | |
@echo '' | |
@echo 'Targets:' |
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; | |
} |
Mathematical solution to https://cdn.cs50.net/2020/x/events/puzzles/puzzles.pdf -> Putting it all together
First, we encode tiles into binary in low-byte order, assuming an 8-bit row-size.
For example:
J
UN
H
SHELL := /usr/bin/env bash | |
.PHONY : all | |
############################################################################### | |
# HELP | |
############################################################################### | |
# COLORS | |
GREEN := $(shell tput -Txterm setaf 2) |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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); | |
} |