Skip to content

Instantly share code, notes, and snippets.

View LueKely's full-sized avatar
🍪
Bad biscuits makes the baker broke bro

LueKely LueKely

🍪
Bad biscuits makes the baker broke bro
View GitHub Profile
@amk221
amk221 / placeholder.css
Last active February 14, 2025 06:34
Prosemirror placeholder plugin approach
.ProseMirror[data-placeholder]::before {
color: global.$placeholder-colour;
position: absolute;
content: attr(data-placeholder);
pointer-events: none;
}
@mathewmariani
mathewmariani / binary.js
Created May 18, 2016 23:22
A quick look at signed and unsigned integers in JavaScript.
var UInt4 = function (value) {
return (value & 0xF);
};
var Int4 = function (value) {
var ref = UInt4(value);
return (ref > 0x7) ? ref - 0x10 : ref;
};
var UInt8 = function (value) {