<button>Let's Go !</button>
function convertDampingRatioResponseToStiffnessDamping(dampingRatio, response) { | |
let mass = 1 | |
let angularFrequency = (2 * Math.PI) / response | |
let stiffness = Math.pow(angularFrequency, 2) * mass | |
let damping = dampingRatio * (2 * Math.sqrt(stiffness * mass)) | |
return { mass: mass, stiffness: stiffness, damping: damping } | |
} | |
function convertMassStiffnessDampingToDampingRatioResponse(mass, stiffness, damping) { |
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Meta conf --> | |
<meta charset="UTF-8"> | |
<!-- Meta info --> | |
<title>HTML5 Microdata Resume (CV) Template</title> | |
<meta name="description" content="An example of how to layout a semantic html5 page for a curriculum vitae/resume"> | |
<meta name="keywords" content="template, html, semantic, microdata, resume, cv, curriculum, vitae"> | |
</head> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
What to do when you have sub elements that have sub elements? How to name them?
Always namespace to the module name + __
+ the sub element no matter what?
<section class="foo">
<!-- Regular sub element -->
<div class="foo__chart">
I'm a chart
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
Wondering what the current standings are for the Responsive Images Community Group’s efforts? Look no further.
Bug 870021 Summary: Implement srcset
attribute on img
CLOSED: WONTFIX:
https://bugzilla.mozilla.org/show_bug.cgi?id=870021
Bug 870022 Implement picture
element:
https://bugzilla.mozilla.org/show_bug.cgi?id=870022