Skip to content

Instantly share code, notes, and snippets.

@uniqname
uniqname / proper-reset.css
Last active February 12, 2025 18:45
The ultimate CSS Reset (eventually)
/* Reasonable default view transition */
@view-transition {
navigation: auto;
}
html {
box-sizing: border-box;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
@uniqname
uniqname / must-read-cs-works.md
Last active December 13, 2024 19:37
A forever in process list of Must Read historical papers and presentations related to Computer Science and the Web. Suggestions welcome but not guaranteed to be included
const numericalDirection = (arg, n = Number(arg)) => Math.abs(n) / n || 0
export default numericalDirection;

Keybase proof

I hereby claim:

  • I am uniqname on github.
  • I am uniqname (https://keybase.io/uniqname) on keybase.
  • I have a public key whose fingerprint is 4CC2 022E 189D 4A8D AA12 1AEC E307 96BD 29EE 6A01

To claim this, I am signing this object:

@uniqname
uniqname / .editorconfig
Created March 19, 2015 13:41
Common editorconfig
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
@uniqname
uniqname / .bowerrc
Last active August 29, 2015 14:17
Replace an element with a rendered htmlstring
{
"registry": {
"register": "http://bower.ldschurch.org"
}
}

JS REPL

There's not a good, simple embeddable REPL for JS out there that I could find. I wanted one for presentations on JavaScript concepts. The developer tools' console would be ideal, but bailing out of my presentation and opening a console brakes the flow. Tools like codepen.io et al. are great, but more overhead and set up than I need. I just want to type JS and show the result. This is a decent first step for my needs.

A Pen by Cory on CodePen.

License.

@uniqname
uniqname / SassMeister-input.scss
Created December 1, 2014 20:38
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.full {
@each $pos in ("top", 'left', bottom, right) {
#{$pos}: 0;
}
}
@uniqname
uniqname / SassMeister-input.scss
Created November 26, 2014 22:38
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
//Media Queries
$mq-size--small: 42em;
$mq-size--med: 47.5em;
$mq-size--large: 56.25em;
@uniqname
uniqname / SassMeister-input.scss
Created October 8, 2014 14:48
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$positions: (top, right, bottom, left);
.stretch {
position: absolute;
@each $pos in $positions {