Skip to content

Instantly share code, notes, and snippets.

View jpedroribeiro's full-sized avatar
🇧🇷

J. Pedro Ribeiro jpedroribeiro

🇧🇷
View GitHub Profile
@sindresorhus
sindresorhus / machine-learning-for-my-apps.md
Last active July 14, 2022 21:47
Ideas for machine learning usage in my apps

Machine learning for my apps

I'm trying to think of ways I could use machine learning to enhance my apps. Feedback wanted!

You can find my apps here.

Dato

  • Natural language processing to parse a new event title, like Fantastical.
@kitze
kitze / conditionalwrap.js
Created October 25, 2017 16:54
one-line React component for conditionally wrapping children
import React from 'react';
const ConditionalWrap = ({condition, wrap, children}) => condition ? wrap(children) : children;
const Header = ({shouldLinkToHome}) => (
<div>
<ConditionalWrap
condition={shouldLinkToHome}
wrap={children => <a href="/">{children}</a>}
>