Skip to content

Instantly share code, notes, and snippets.

View MauroJr's full-sized avatar
🎯
Focusing

Mauro Junior MauroJr

🎯
Focusing
View GitHub Profile
@ceejbot
ceejbot / esm_in_node_proposal.md
Last active June 20, 2024 10:45
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

@Thanood
Thanood / app.html
Last active July 10, 2019 13:52
Aurelia-Materialize bridge base
<template>
<div>
<md-pagination md-pages="6" md-active-page.bind="activePage"></md-pagination>
</div>
<div>
active page: ${activePage}
</div>
<button md-button md-waves="color: light;" click.delegate="setToFive()">set to 5</button>
</template>
@scttnlsn
scttnlsn / lispy-react.js
Last active April 21, 2021 23:09
Lispy React components
import React from 'react';
import ReactDOM from 'react-dom';
function html([type, props, ...children]) {
return React.createElement(type, props, ...children.map((child) => {
if (Array.isArray(child)) {
return html(child);
} else {
return child;
}