Skip to content

Instantly share code, notes, and snippets.

@mptorz
mptorz / README-Template.md
Created Feb 8, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mptorz
mptorz / privacy-policy.md
Created May 1, 2019 — forked from federicoiosue/privacy-policy.md
Android App Privacy Policy
View privacy-policy.md

Privacy Policy

Privacy image

Introduction

Thank you for using my software! This document is the main privacy policy for HouseApp Android and desktop applications. I respects your privacy rights and care about protecting your information collected by my apps.

What information are eventually collected

@mptorz
mptorz / hoc.ts
Last active Sep 26, 2019
Useful wrappers to add identifier with Cavy e2e test library
View hoc.ts
// EXAMPLE USAGE:
// export default withCavyCustomIdentifier('SomeCustomIdentifier')(SomeScreen)
export const withCavyCustomIdentifier = (identifier: string) => <T,>(originalComponent: ComponentType<T>) => {
const ComponentWithIdentifier = (props: T) => {
const WrappedComponent = !!originalComponent.prototype.render ? originalComponent : wrap(originalComponent)
const generateTestHook = useCavy()
return (<WrappedComponent {...props} ref={generateTestHook(identifier)} />)
}
return ComponentWithIdentifier
}
@mptorz
mptorz / README.md
Last active Nov 27, 2020 — forked from mbleigh/README.md
Firebase Hosting Fetch All Files
View README.md

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>