Skip to content

Instantly share code, notes, and snippets.

View hmbrg's full-sized avatar

Matthias hmbrg

View GitHub Profile

How to stream in React Native ⼮

Prelude ䷿

  1. npx create-expo-app@latest
  2. npm run reset-project
  3. rm -rf node_modules
  4. npm i react-native-fast-encoder web-streams-polyfill @stardazed/streams-text-encoding react-native-fetch-api
  5. (optional) echo "BROWSER=none # prevents browser from auto opening" >> .env
@sseagull
sseagull / Storybook with Stitches.md
Last active May 17, 2023 11:40
Stitches + Storybook `css` prop type definition clash fix

Using Stitches with Storybook

The setup for storybook is the same as their docs. Once you're repo is set up (Im using Typescript) and you have Stitches imported and set up (as per the stitches docs), the next step is to install Storybook.

I went with their npx setup: npx sb init (note: since my project was already set up with React/TS this command detected everything it needed to know, so there was no interactive prompt for me)

When using a styled stitches component everything will work as expected:

export const Button = styled('button', {
@zmts
zmts / docker.md
Last active May 19, 2024 14:47
Docker, TypeScript, Node.js

Docker, TypeScript, Node.js

Preconditions:

  • TS application listening port: 7777
|-- dist
|-- src
|-- .dockerignore
|-- Dockerfile
@hmbrg
hmbrg / OPENSHIFT-git-deploy.md
Last active April 24, 2016 15:30
OpenShift: Git deployment process

OpenShift: Git deployment process

This document assumes that you already have an existing project git repo and now want to add OpenShift for deployment.

You should also have installed and setup the rhc tool by OpenShift and created an application on the OpenShift platform.

Setup

Add remote to OpenShift (only once)

Get ssh git adress from the OpenShift Dashboard/Application. Then add from root of repo folder a new remote to git repo.

@watson
watson / airplay.md
Last active November 5, 2024 23:27
An overview over my AirPlay related modules