Skip to content

Instantly share code, notes, and snippets.

View wedowebapps's full-sized avatar
🎯
Focusing

wedowebapps

🎯
Focusing
View GitHub Profile
@wedowebapps
wedowebapps / face_router.py
Last active February 11, 2026 08:26
Python + OpenCV Sample
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(...)
@wedowebapps
wedowebapps / main.py
Created February 11, 2026 05:35
Python + OpenCV Sample
print("Hello world")
@wedowebapps
wedowebapps / Address.php
Last active November 26, 2019 07:02
Laravel Sample code
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use User;
use Country;
use State;
use City;
class Address extends Model
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>
### 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 :
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 {
# spa_addons_changelog function for plugins or themes changelog popup
function spa_addons_changelog($_data, $_action = '', $_args = null ){
if ( $_action != 'plugin_information' ) {
return $_data;
}
<?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];
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}>
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');