Skip to content

Instantly share code, notes, and snippets.

View shohan4556's full-sized avatar
💻
Making things that does not Exists !!

Shohanur Rahaman shohan4556

💻
Making things that does not Exists !!
View GitHub Profile
import { supabaseClient } from '../supabase/client';
import { SUPABASE_URL } from '../../config/supabase';
import ImageResizer from '@bam.tech/react-native-image-resizer';
export async function createProfile(userId: string, gender: string, dateOfBirth: string) {
const { data, error } = await supabaseClient
.from('profiles')
.insert({
user_id: userId,
gender,
import { supabaseClient } from '../supabase/client';
export interface FeedPost {
post_id: string;
user_id: string;
caption: string;
media_urls: Array<{ url: string; type?: string }>;
tags: string[];
like_count: number;
comment_count: number;
import React, { useState, useCallback, useMemo } from 'react';
import { View, FlatList, StyleSheet, Text, Pressable } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import useSWR from 'swr';
import { lightThemeColors } from '../../../shared/theme/colors';
import { CategoryTabs } from '../components/CategoryTabs';
import { LiveCard } from '../components/LiveCard';
import { LiveCardSkeleton } from '../components/LiveCardSkeleton';
import { getUserPosts, type FeedPost } from '../../../services/feed/feedService';
import { getCreatorCount } from '../../../services/profile/profileService';
using UnityEngine;
using UnityEngine.UI;
public class ProgressBar : MonoBehaviour
{
public Slider progressBar; // The UI slider component
public int currentLevel = 1;
public int maxLevel = 100;
private int progressInCurrentLevel = 0; // Progress within the current level
private int maxProgressInLevel = 10; // Maximum progress within a level before it resets
using UnityEngine;
using Firebase.Extensions;
using Firebase;
public interface IAnalyticsEvents
{
public abstract void CurrentGameType(string gameType);
public abstract void OnLevelComplete();
public abstract void OnSessionStart(string gameType);
public abstract void OnSessionEnd(string gameType);
using System;
using UnityEngine;
using GoogleMobileAds.Api;
namespace GlobalScripts
{
public class SholoGutiAdsManager : MonoBehaviour
{
private BannerView bannerView;
private InterstitialAd interstitialAd;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace Ludo
{
public static class PixelLabDataManager
{
/* eslint-disable @typescript-eslint/indent */
import { scene } from 'components/controllers/SceneController';
import Phaser from 'phaser';
import { PieIndicatorConfig } from 'types';
export default class PieIndicator extends Phaser.GameObjects.Graphics {
x: number;
y: number;
radius: number;
alpha: number;
import Parcels from 'components/phaser/Parcels';
import { Damage, Parcel, SelectedPlayer, Vector2 } from 'types';
import _ from 'lodash';
import { scene } from 'components/controllers/SceneController';
import { TILE_SIZE } from 'shared_code/constants/const.game';
import Players from 'components/phaser/Players';
import GlobalState from 'contexts/GlobalState';
import GameController from 'components/controllers/GameController';
import Router from 'next/router';
import InputController from 'components/controllers/inputController';
/* eslint-disable @typescript-eslint/indent */
import { scene } from 'components/controllers/SceneController';
import Phaser from 'phaser';
export interface PieIndicatorConfig extends Phaser.GameObjects.Graphics {
x: number;
y: number;
radius: number;
alpha: number;
borderThickness: number;