Skip to content

Instantly share code, notes, and snippets.

@barthap
barthap / react-native+0.68.2.patch
Created July 18, 2022 16:39
RN 0.68 patch to have iOS 15 detents in <Modal> component
diff --git a/node_modules/react-native/Libraries/Modal/Modal.js b/node_modules/react-native/Libraries/Modal/Modal.js
index 9140a56..1a26c51 100644
--- a/node_modules/react-native/Libraries/Modal/Modal.js
+++ b/node_modules/react-native/Libraries/Modal/Modal.js
@@ -246,6 +246,7 @@ class Modal extends React.Component<Props> {
return (
<RCTModalHostView
+ modalSheetSize={this.props.modalSheetSize}
animationType={animationType}
@robherley
robherley / InterfaceController.swift
Created April 29, 2019 05:33
Health Kit Example - Updated for watchOS 5
//
// InterfaceController.swift
// AppleWatchExample WatchKit Extension
//
// Created by Robert Herley on 4/28/19.
// Copyright © 2019 Robert Herley. All rights reserved.
//
// Adapted From: https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/speedysloth_creating_a_workout
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active May 8, 2024 18:52
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@mrmicahcooper
mrmicahcooper / setup.markdown
Created October 1, 2012 23:26
Setup Rails environment for Ubuntu

#Rails for ubuntu 12.04

Install curl

sudo apt-get install curl

install git