Skip to content

Instantly share code, notes, and snippets.

View matinzd's full-sized avatar
🏖️
Working casually on open-source

Matin Zadeh Dolatabad matinzd

🏖️
Working casually on open-source
View GitHub Profile
{
"success": true,
"status_code": 200,
"message_code": "success-info",
"message_text": "عملیات با موفقیت انجام شد.",
"data": {
"session": {
"id": 100,
"name": "NVD7-A123-BW",
"description": "-",
import Animated, {useAnimatedProps} from 'react-native-reanimated'
const AnimatedText = Animated.createAnimatedComponent(Text)
const Example = ({progress = 0}) => {
const animatedTextProps = useAnimatedProps(() => {
return {
x: 0,
y: 0,
}
@matinzd
matinzd / cloud-init.yml
Last active June 11, 2023 20:17
Configuring WhatsApp proxy using cloud-init on ubuntu
#cloud-config
package_update: true
package_upgrade: true
packages:
- ca-certificates
- curl
- gnupg
@matinzd
matinzd / react-native-video+6.0.0-alpha.1.patch
Created September 2, 2022 18:42
Patch for react-native-video compile errors
diff --git a/node_modules/react-native-video/ios/Video/Features/RCTPlayerObserver.swift b/node_modules/react-native-video/ios/Video/Features/RCTPlayerObserver.swift
index 68fc56d..d3951dd 100644
--- a/node_modules/react-native-video/ios/Video/Features/RCTPlayerObserver.swift
+++ b/node_modules/react-native-video/ios/Video/Features/RCTPlayerObserver.swift
@@ -144,7 +144,7 @@ class RCTPlayerObserver: NSObject {
// @see endScrubbing in AVPlayerDemoPlaybackViewController.m
// of https://developer.apple.com/library/ios/samplecode/AVPlayerDemo/Introduction/Intro.html
_timeObserver = player?.addPeriodicTimeObserver(
- forInterval: CMTimeMakeWithSeconds(progressUpdateIntervalMS, preferredTimescale: Int32(NSEC_PER_SEC)),
+ forInterval: CMTimeMakeWithSeconds(progressUpdateIntervalMS, Int32(NSEC_PER_SEC)),
export interface BaseAuthProvider {
initialize(): void;
login(): void;
}
export class GoogleSignin implements BaseAuthProvider {
initialize(): void {
throw new Error("Method not implemented.");
}
@matinzd
matinzd / gist:d10b7faba868b8a7ebe1a018f38ce0fb
Created March 2, 2022 09:25
React navigation reproduction snack
import * as React from 'react';
import {View, Text, Button} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
function HomeScreen({navigation}) {
return (
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
<Text>Home Screen</Text>
<Button
@matinzd
matinzd / @amityco+ts-sdk+0.0.1-beta.6.patch
Last active October 28, 2021 20:18
Delete comment patch beta 6
diff --git a/node_modules/@amityco/ts-sdk/dist/index.cjs.js b/node_modules/@amityco/ts-sdk/dist/index.cjs.js
index 592dbad..4cee65c 100644
--- a/node_modules/@amityco/ts-sdk/dist/index.cjs.js
+++ b/node_modules/@amityco/ts-sdk/dist/index.cjs.js
@@ -2993,9 +2993,9 @@ const removeCommunityMembersRole = async (communityId, roleId, userIds) => {
* @async
*/
const deletePost = async (postId, permanent = false) => {
- var _a;
const client = getActiveClient();