Skip to content

Instantly share code, notes, and snippets.

@binary-ibex
binary-ibex / reverse_string_space_same.py
Created November 5, 2023 09:45
Reverse the string but keep the position of the spaces same as the original string
s = "I live in the India"
t = s[::-1].replace(" ", "")
s = list(s)
index= 0
for i in range(len(s)):
if s[i] != " ":
s[i] = t[index]
@binary-ibex
binary-ibex / main.py
Created May 14, 2023 09:59
Python script to Create Folder, Upload File and List Files inside folder in google Drive using Google Drive API
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
from google.oauth2 import service_account
# Replace 'FOLDER_NAME' with the name you want to give your new folder
folder_name = 'Test Upload'
@binary-ibex
binary-ibex / index.html
Created July 4, 2021 04:32
Problem with the flutter stateful widget and dropdown
<!Doctype html>
@binary-ibex
binary-ibex / README.md
Last active January 20, 2022 03:19
greturns-inr-api