Skip to content

Instantly share code, notes, and snippets.

View ibelgin's full-sized avatar
📕
Building

Belgin ibelgin

📕
Building
View GitHub Profile
/* eslint-disable react-native/no-inline-styles */
import React from 'react';
import {
View,
Text,
StyleSheet,
SafeAreaView,
FlatList,
TouchableOpacity,
Modal,
import React from 'react';
import { View, Text, Dimensions, StyleSheet } from 'react-native';
const Dev_Height = Dimensions.get('window').height;
const Dev_Width = Dimensions.get('window').width;
class App extends React.Component {
render() {
return (
<View style={styles.container}>
@ibelgin
ibelgin / 3a.c
Created September 26, 2021 15:58
Lab Manual Programs
/* Single Linked List */
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <process.h>
#include <string.h>
struct node
{
num1 = int(input("Enter the first number - "))
num2 = int(input("Enter the second number - "))
sum = num1+num2
sub = num1-num2
prod = num1*num2
div = num1/num2
print("Sum of ",num1 , "and ",num2 ,"is ", sum)
print("Sub of ",num1 , "and ",num2 ,"is ", sub)
import math
n1 = int(input("Number1 ->"))
n2 = int(input("Number2 ->"))
print (math.gcd(n1,n2))
# or
def gcd(n1,n2):
if(n2==0):
return n1
import PySimpleGUI as sg
from utlis import get_meaning, get_antonyms, get_synonyms
greeting = "Hi. I am word bot. I can help you with words.\n\n"
layout = [
[sg.Multiline(greeting, font=("Arial", 14), size=(70, 15), key='output')],
[sg.InputText("", font=("Arial", 14), size=(50, 1), key='input', enable_events=True)],
[sg.Button("Meaning", font=("Arial", 14), bind_return_key=True, key="meaning"),
sg.Button("Synonyms", font=("Arial", 14), key='synonyms'),
@ibelgin
ibelgin / MongoDB_Atlas_With_Python.py
Last active October 17, 2020 09:42
This is The Basic Usage Of MongoDB With Python
# Importing Python MongoDB Connector
# Can Be Installed By -> "pip install pymongo"
import pymongo
# For Working With Date And Time
import datetime
# This Is The Connector With The URL From MongoDB Atlas
client = pymongo.MongoClient('...') # Enter Your URL From MongoDB Atlas
# We have seen how to search for a particular file extension and also how to get files modified within a
# date range. For assignment, you need to combine both. User should
# be able to search for python files modified in a date range
import os
import datetime
def file_extension_finder(pat,start_date,end_date):
file_extension = input("Enter The File Extension's -> ")
for (root,directory,files) in os.walk(pat.strip()):
@ibelgin
ibelgin / 01_Character_Input.py
Last active September 23, 2020 09:33
Answers practicepython.org
# Create a program that asks the user to enter their name and their age.
# Print out a message addressed to them that tells them the year that they will turn 100 years old.
name , age = input("Enter Your Name -> ") , int(input("Enter Your Age -> "))
print(2020 + (100-age))
@ibelgin
ibelgin / Music_Player.py
Created September 18, 2020 04:29
Python Music Player
from tkinter import *
from tkinter.filedialog import askopenfile
from pygame import mixer
file_name = ""
window=Tk()
window.title("Music Player")
window.geometry("650x400")