Skip to content

mvogelgesang/tiny-examples

Repository files navigation

Tiny Examples

Brief projects that aim to prototype specific functionality.

Demonstration of using React Native Gesture Handler and React Native Reanimated to transition between screens via swipe actions.

Example showing how to construct a View along with an SVG element that caps the View. The SVG and View look like a seamless unit and scale as the device width changes.

A brief example to demonstrate how to handle click events for Navigation Menus when employing parent and child components. This is based off the content on salesforcepoint.com.

A set of hooks for OCLIF which allows long running processes to be stopped and then resumed at a later time. This example iterates over a list of names and saves a copy of the remaining list to the local cache directory. Upon resumption, the CLI checks the cache directory for a file, if it contains items, it uses that list.

This Tiny Example demonstrates how to execute a for loop which contains a call to a function that returns a promise. In short, the for loop must be wrapped in a function that returns a Promise.

Finally, CLI-Spinner is used to make the execution of code easier to follow while in the terminal.

Implementation of https://medium.com/@shashankshekhar_40767/using-jest-mocking-to-run-tests-on-a-simple-node-script-dealing-with-fs-module-db8bc01ff583

Given a URL or list of URLs, navigates to the page and prints any content from a Javascript alert to the console.

A quick working example showing how to navigate to local HTML files with Puppeteer. This is helpful when writing automated tests as the test does not burden a real website and specific testing conditions can be replicated.

A quick example of fetching api data and saving it locally. Old copies of the data are stored in the data/legacy folder.

As a more robust example, there is a GitHub Action of the same name which runs on schedule and commits the results.

About

A series of discreet example projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published