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
| from fastapi import APIRouter, UploadFile, File | |
| from fastapi.responses import JSONResponse | |
| from face_service import verify_faces | |
| router = APIRouter() | |
| @router.post("/verify-face/") | |
| async def verify_face( | |
| document_image: UploadFile = File(...), live_image: UploadFile = File(...) |
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
| print("Hello world") |
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
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use User; | |
| use Country; | |
| use State; | |
| use City; | |
| class Address extends Model |
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, { Component } from 'react'; | |
| import { Text, View } from 'react-native'; | |
| import Developer from 'wedowebapps.com'; | |
| export default class ReactNative extends Component { | |
| render() { | |
| return ( | |
| <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | |
| <Text>Craft your next React-Native application with US</Text> | |
| <Text>Choose our React Native developer to meet your business app needs.</Text> |
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
| ### Introduction & Purpose | |
| I worked on a app where we needed to make multiple versions of a single app obviously with different branding and color themes. | |
| So worked out a way using which we can make easily switch between different version of app without changing much of the code. | |
| Using the combination of a script to manage UI part and `react-native-config` to manage logistics and configurations. | |
| Just need to run the conf.sh script from root of the project after simply changing theme in couple of files & then build the app to work on needed version. | |
| ### On the application front : |
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 from 'react'; | |
| import { connect } from 'react-redux'; | |
| import { Steps, message, Row, Col, Spin } from 'antd'; | |
| import Header from './Header'; | |
| import Footer from './Footer'; | |
| import ServiceList from './Bookings/ServiceListStep'; | |
| import DateTimeStep from './Bookings/DateTimeStep'; | |
| //import CustomerInfoStep from './Bookings/CustomerInfoStep'; | |
| import PaymentStep from './Bookings/PaymentStep'; | |
| import { |
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
| # spa_addons_changelog function for plugins or themes changelog popup | |
| function spa_addons_changelog($_data, $_action = '', $_args = null ){ | |
| if ( $_action != 'plugin_information' ) { | |
| return $_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
| <?php | |
| $cups = array(); | |
| for($i=0; $i<1000; $i++){ | |
| $cups[$i] = 0; | |
| } | |
| for($x=1; $x<1000; $x++){ | |
| for($y=$x; $y<1000; $y+=$x){ | |
| $cups[$y] = !$cups[$y]; |
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 from 'react'; | |
| import { StatusBar, StyleSheet, View, Image } from 'react-native'; | |
| import SvgUri from 'react-native-svg-uri' | |
| class SVGIcon extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.container}> |
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, { Component } from 'react' | |
| import { View, Modal, TouchableOpacity, StyleSheet, SafeAreaView, StatusBar, Dimensions, BackHandler } from 'react-native' | |
| import { Text } from 'native-base' | |
| import PropTypes from 'prop-types' | |
| import YouTube, { YouTubeStandaloneAndroid } from 'react-native-youtube' | |
| import { playerStyles } from './styles' | |
| let { width, height } = Dimensions.get('window'); |