Git Product home page Git Product logo

y0p's Introduction

yop

A small, silly experiment in text highlighting, recreation of https://fichtre.net/yop.html.

Usage

  • Visit the website and highlight the sample text to reveal the source image.
  • Alternatively, you can provide your own and play around with the text styling / scale of text and image, and subsequently download the entire page as a standalone HTML page, with its own internal CSS stylesheet.

Development

# clone project
git clone https://github.com/yihui-hu/yop
cd yop

# install dependencies
npm install

# run project
npm run dev

Resources

  1. Importing text file
  2. Parsing params with onChange event
  3. Passing functions as props in React + TypeScript
  4. Client components and "use client" directive in Next.js
  5. Showing leading and trailing whitespace in HTML
  6. Converting callbacks to promises
  7. Using async functions within useEffect
  8. Destructuring first few items from an array
  9. Customizing file upload button / <input type="file" />
  10. How and when to debounce / throttle
    • Debouncing – delaying the first process for a given amount of time to see if user performs another action; if they do, cancel first action and work on second one
    • Throttling – preventing second process from happening by making sure function can only run once in a given interval
  11. Lodash debouncing with text input

y0p's People

Contributors

yihui-hu avatar

Stargazers

Christina avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.