Skip to content

Instantly share code, notes, and snippets.

View alperbayram's full-sized avatar
🍊

Alper Bayram alperbayram

🍊
View GitHub Profile
import random
total_players = 0
total_rolls = 0
seed = int(input("Please enter a seed value: "))
random.seed(seed)
play_again = 'y'
while play_again == 'y':
@alperbayram
alperbayram / index.tsx
Created April 7, 2024 11:33
app/index.tsx
import { View, Text } from "react-native";
import { Link } from "expo-router";
import { styles } from "../styles/styles";
export default function Page() {
return (
<View style={styles.container}>
<View>
<Text style={styles.subtitle}>app/index.tsx</Text>
</View>
@alperbayram
alperbayram / _layout.tsx
Last active April 7, 2024 11:32
(tabs)/_layout.tsx
import { Tabs } from "expo-router";
export default function Layout() {
return (
<Tabs>
<Tabs.Screen
name="user"
options={{
headerShown: false,
tabBarLabel: "Users",
@alperbayram
alperbayram / profile.tsx
Created April 7, 2024 10:40
(drawer)/profile.tsx
import { View, Text } from "react-native";
import { styles } from "../../../styles/styles";
import { Link } from "expo-router";
export default function Page() {
return (
<View style={styles.container}>
<View>
<Text style={styles.subtitle}>app/(drawer)/profile.tsx</Text>
</View>
@alperbayram
alperbayram / favorites.tsx
Created April 7, 2024 10:40
(drawer)/favorites.tsx
import { View, Text } from "react-native";
import { styles } from "../../../styles/styles";
import { Link } from "expo-router";
export default function Page() {
return (
<View style={styles.container}>
<View>
<Text style={styles.subtitle}>app/(drawer)/favorites.tsx</Text>
</View>
@alperbayram
alperbayram / dashboard.tsx
Created April 7, 2024 10:39
(drawer)/dashboard.tsx
import { View, Text } from "react-native";
import { styles } from "../../../styles/styles";
import { Link } from "expo-router";
export default function Page() {
return (
<View style={styles.container}>
<View>
<Text style={styles.subtitle}>app/(drawer)/dashboard.tsx</Text>
</View>
import { Drawer } from "expo-router/drawer";
import {
Button,
useWindowDimensions,
} from "react-native";
import { useNavigation } from "expo-router";
import { DrawerActions } from "@react-navigation/native";
export default function Layout() {
const dimensions = useWindowDimensions();
@alperbayram
alperbayram / PhotoScript.py
Created January 12, 2024 11:46
Colab ile Websitesindeki Tüm Imageleri Çekip Google Drive içerisine Kaydeden Pyhton Scripti
import io
import os
import hashlib
import pandas as pd
import requests
from bs4 import BeautifulSoup
from PIL import Image
from IPython.display import Image as IPImage, display
from pathlib import Path
from google.colab import drive
//app/_layout.tsx
import { Stack, router } from "expo-router";
import { Button } from "react-native";
export default function Layout() {
return (
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen
name="modal"
import { Tabs } from "expo-router";
export default function Layout() {
return (
<Tabs>
<Tabs.Screen
name="user"
options={{
headerShown: false,
tabBarLabel: "Users",