This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "AppDelegate.h" | |
#import <Firebase.h> | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTLinkingManager.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Usefull function you will need below | |
export function timeDifference(date1: number, date2: number) { | |
var difference = date1 - date2; | |
var daysDifference = Math.floor(difference / 1000 / 60 / 60 / 24); | |
difference -= daysDifference * 1000 * 60 * 60 * 24 | |
var hoursDifference = Math.floor(difference / 1000 / 60 / 60); | |
difference -= hoursDifference * 1000 * 60 * 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
from sklearn.feature_selection import VarianceThreshold | |
# Load your dataset into a DataFrame (replace 'your_dataset.csv' with your file) | |
data = pd.read_csv('your_dataset.csv') | |
# Step 1: Statistical Information |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {LineChart} from 'react-native-wagmi-charts'; | |
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; | |
import { | |
Text, | |
View, | |
StyleSheet, | |
TouchableOpacity, | |
ScrollView, | |
ActivityIndicator, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require("https"); | |
var fs = require("fs"); | |
const crypto = require("crypto"); | |
https.get("https://coderbyte.com/api/challenges/json/age-counting", (resp) => { | |
let { statusCode } = resp; | |
let contentType = resp.headers["content-type"]; | |
resp.setEncoding("utf-8"); | |
let data = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View style={styles.progress}> | |
<View style={styles.timeline}> | |
<Ionicons name="md-checkmark-circle" size={14} | |
color={Colors.successTint}/> | |
<View style={[styles.borderView, { | |
borderColor: theme === 'dark' ? Colors.dark.tFareBtn : Colors.light.tint, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {Text, View} from 'react-native'; | |
import {PayWithFlutterwave} from 'flutterwave-react-native'; | |
import {widthPercentageToDP as wp} from "react-native-responsive-screen"; | |
import TextInput from "./components/TextInput"; | |
const logo = 'https://www.crowdfacture.com/static/media/Crowdfacture-icon.85e52aec.png' | |
const FlutterWavePay = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import React, { useEffect } from 'react'; | |
import { Animated, StyleSheet, Text, TouchableOpacity } from 'react-native'; | |
import {fontPixel, pixelSizeVertical} from "../utils/normalize"; | |
import Layout from "../../constants/Layout"; | |
const shadow = { | |
shadowColor: "#000", | |
shadowOffset: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {PixelRatio, StyleSheet} from 'react-native'; | |
import 'intl'; | |
import 'intl/locale-data/jsonp/en'; | |
import {Dimensions} from 'react-native'; | |
const { | |
width: SCREEN_WIDTH, | |
height: SCREEN_HEIGHT | |
} = Dimensions.get('window'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {useCallback, useEffect, useState} from "react"; | |
interface propType { | |
url: string, | |
method: string, | |
body: any, | |
} | |
const baseUrl = 'https://api.mydomain.com' | |
export const useFetch = ({url, method, body,}: propType) => { | |
const [responseData, setResponseData] = useState<any>([]); |
NewerOlder