open-index/open-npm huggingface dataset:
npm package: @rafaelpelle/react-utils
Description: My favorite React and JS utils
Author: rafaelpelle
Latest version: 1.0.0

# @rafaelpelle/react-utils

> My favorite React and JS utils

[![NPM](https://img.shields.io/npm/v/@rafaelpelle/react-utils.svg)](https://www.npmjs.com/package/@rafaelpelle/react-utils) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @rafaelpelle/react-utils
```

## Usage

```jsx
import React from 'react'
import { useCPFInput } from '@rafaelpelle/react-utils'

export default function Example() {
  const cpfInput = useCPFInput()

  return <input {...cpfInput} />
}
```
npm package: @rafaelquines/pigpio-mock
Description: Package used to mock Pigpio for local development
Latest version: 0.0.2

# Pigpio-mock

*Article: https://viktorkirilov.me/post/mocking-raspberry-gpios/*

A mock library used for raspberry pi development on your local machine. It copies all method from https://github.com/fivdi/pigpio and logs information to the console, instead of controlling the Raspberry's GPIO pins.

[![Build Status](https://travis-ci.org/deepsyx/pigpio-mock.svg?branch=master)](https://travis-ci.org/deepsyx/pigpio-mock) [![Coverage Status](https://coveralls.io/repos/github/deepsyx/pigpio-mock/badge.svg?branch=master)](https://coveralls.io/github/deepsyx/pigpio-mock?branch=master)

# Example
You can also check `examples` folder.

    const Gpio = require("pigpio-mock").Gpio;
    const led = new Gpio(13, { mode: Gpio.OUTPUT });
    let dutyCycle = 0;
    
    setInterval(function() {
    	led.pwmWrite(dutyCycle);
    
    	dutyCycle += 50;
    	if (dutyCycle > 255) {
    		dutyCycle = 0;
    	}
    }, 500);
    
should output:

    [GPIO 13 / constructor] Initializing...
    [GPIO 13 / constructor] Setting mode = 1
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 0
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 50
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 100
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 150
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 200
    [GPIO 13 / pwmWrite-analogWrite] Setting dutyCycle = 250

# Installation
It is as simple as:

    yarn add pigpio-mock
    
and you can use it in your code as:

    const pigpio = process.env.NODE_ENV !== "production" ? 
        require("pigpio-mock") : 
        require("pigpio");
    
# Implemented classes:
- [x] Gpio
- [ ] GpioBank
- [ ] Notifier

# Contribution
All kind of contribution will be greatly appreciated. 

#### Pull requests
* We're using https://github.com/enhancv/prettier for automatic code formating
* Please provide tests. We're aiming for 100% code coverage

#### Running tests

    yarn test
npm package: @rafaelquintanilha/gatsby-transformer-ipynb
Description: Transformer for .ipynb files.
Author: Rafael Quintanilha
Latest version: 0.2.0

# gatsby-transformer-ipynb

Parses [jupyter](https://jupyter.org/) notebook files.

<!-- See it in action: <https://gatsby-contrib.github.io/gatsby-transformer-ipynb/> -->

## Install

`npm install --save @gatsby-contrib/gatsby-transformer-ipynb`

## How to use

```javascript
// In your gatsby-config.js
plugins: [`@gatsby-contrib/gatsby-transformer-ipynb`];
```

## Parsing algorithm

It recognizes files with the `ipynb` extension.

Each notebook file is parsed into a node of type `JupyterNotebook`.

This plugin adds additional fields to the `JupyterNotebook` GraphQL type
including:

-   `html`: html string created using the react component `NotebookRender` from [`@gatsby-contrib/notebook-render`](https://github.com/nteract/nteract/tree/master/packages/notebook-render).
-   `metadata`: jupyter notebooks can embed metadata to indicate authors, titles...
-   `json`: the json notebook code converted into a javascript object with `JSON.parse`.
-   `internal.content`: contains the raw notebook code, it can be used to feed the react component `NotebookPreview` from [`@gatsby-contrib/notebook-preview`](https://github.com/nteract/nteract/tree/master/packages/notebook-preview).

## How to query

A sample GraphQL query to get JupyterNotebook nodes:

```graphql
{
  query
  JupyterQuery {
    allJupyterNotebook {
      edges {
        node {
          id
          metadata {
            kernelspec {
              name
              language
              display_name
            }
          }
          html
          json {
            nbformat
            nbformat_minor
            cells {
              cell_type
              execution_count
            }
          }
          internal {
            content
          }
        }
      }
    }
  }
}
```