Skip to content

Instantly share code, notes, and snippets.

View morewry's full-sized avatar
💭
⛈ 🌩 ☁️ 🌧 ☁️ ⛈ 🌧 🌩 ☁️

Rhy Moore morewry

💭
⛈ 🌩 ☁️ 🌧 ☁️ ⛈ 🌧 🌩 ☁️
View GitHub Profile
@morewry
morewry / README.md
Created March 22, 2023 02:29
My introduction to HTML

This is the working model of HTML I teach when needed. Browser devtools are used to demonstrate.

HTML stands for hypertext markup language. You can ignore hypertext as an old buzzword for now. The big deal about HTML is that it (and URLs) are the original web. It's fair to call the networking layer the internet and the concept linking of HTML files at URLs together the web. The web is in some ways the "open source" user interface layer of the internet. HTML was designed specifically for this, which leads to a few things.

First, as something designed for sending information about UI over internet networks, it is a serialization. If you don't already know what that means, it means a transformation of data into a format suitable for sending over networks. HTML is literally a plain text serialization of a UI to be rendered in a specific state. If that's confusing, take a button. In HTML you write a button tag with a disabled attribute:

<button disabled />
@morewry
morewry / monorepo-tool-comparison.md
Last active May 11, 2022 08:54
Comparison of Monorepo Tools For Web Client / Front End Projects (That Probably Use HTML, CSS, and JS)

Mono Repository Tool Comparison

For Web Client / Front End Projects

(That Probably Use HTML, CSS, and JS)

I made a list of 20 things I might want out of a monorepo tool for a Design System to use as a basis for comparing some of the options including Lerna, Northbrook, and Rush.

⚠️ Northbrook's author says the project is pretty dead and now uses Lerna.

Qualifications Wanted

@morewry
morewry / _debug-map.scss
Created March 13, 2014 06:21
Sass print-map function and mixin for quick debugging of maps
/*
# Print Map
Usage:
// option 1
.debug {
@include print-map($map);
}
@morewry
morewry / compass-config-with-png-compression.rb
Created November 26, 2012 20:14 — forked from kswedberg/snippet.rb
Compass config with pngquant, pngout, and optipng to compress sprite
compiletype = environment
project_path = File.dirname(__FILE__) + "/"
utils_dir = "utilities/"
utils_path = project_path + utils_dir
# callback - on_sprite_saved
# http://compass-style.org/help/tutorials/configuration-reference/
on_sprite_saved do |filename|
if File.exists?(filename)
if (compiletype == :production)
@morewry
morewry / dispatch-touch-event.coffee
Created February 28, 2015 08:50
Programmatically trigger touch event
# http://codepen.io/morewry/pen/pvLxPV
# manually create touch event
touchStartOn = (el, x = 0, y = 0) ->
try
e = document.createEvent('TouchEvent')
e.initTouchEvent("touchstart", true, true)
catch err
try
e = document.createEvent('UIEvent')
@morewry
morewry / _skatejs-rollup-bundle-size-stats.md
Last active April 7, 2021 01:50
Rollup Bundle Stats of "Hello, World" Web Components with SkateJS renderer options. Your approximate bundle size starting point before adding your own code.

Bundle Sizes

Your mileage will vary.

React

┌────────────────────────────────────┐
│                                    │
│   Destination: dist/index.umd.js   │
@morewry
morewry / find-xargs-mozjpegtran.sh
Created November 22, 2017 22:21
run mozjpegtran on all jpgs in current directory
find -L $PWD -type f -name "*.jpg" -print0 | xargs -0 -I'{}' mozjpegtran -outfile '{}'.out.jpg -optimise -copy none '{}'
@morewry
morewry / hyper-vs-lit-html.md
Created September 12, 2017 20:04
A brief features comparison between hyperHTML and lit-html
hyperHTML lit-html
version 1.6.1 0.5.0
license ISC BSD + Patents
compatibility template literals Edge 13+, FF 34+, CH 41+, SF 9.1+, iOS 9.2+ No IE/Edge, FF 55+, CH 41+, SF 9.1+, iOS 9.2+
compatibility transpiled IE9+ FF 34+, WK (Android 4+), CH, SF, iOS 8+ template literals only

Keybase proof

I hereby claim:

  • I am morewry on github.
  • I am morewry (https://keybase.io/morewry) on keybase.
  • I have a public key ASAAcv0HO34Ai0ekGGMmvqzMfiUZ_cRwVFOuAsoO97LU1Qo

To claim this, I am signing this object:

@morewry
morewry / check.sh
Created February 14, 2017 22:18 — forked from jusopi/check.sh
Set node version per project using .nvmrc file
#!/bin/sh
enter_directory(){
if [ "$PWD" != "$PREV_PWD" ]; then
PREV_PWD="$PWD";
if [ -e ".nvmrc" ]; then
nvm use;
fi
fi
}