Skip to content

Instantly share code, notes, and snippets.

View ibelgin's full-sized avatar
📕
Building

Belgin ibelgin

📕
Building
View GitHub Profile
@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
@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")
@shinysu
shinysu / 0_turtle-1
Last active July 21, 2021 04:38
Day 1
'''
draw a line using turtle
'''
import turtle
t = turtle.Turtle()
t.forward(100)
@bansalayush
bansalayush / gist:fa6f28235438592d713ce600fe49c305
Created September 12, 2018 04:38
Install and debug react-native init app without USB!!!!!
1) Connect your mobile device via usb (just this once)
2) Establish a port with your mobile device using 'adb tcpip <port number>'.
eg. adb tcpip 5555
3) Remove USB and 'adb connect <mobile device ip><above mentioned port number>' .
Eg . adb connect 192.160.0.124:5555
4) 'React-native run-android' in your project folder