](https://github.com/Logan1x/Python-Scripts/stargazers)
+
+
+[`Back to Top`](https://github.com/Logan1x/Python-Scripts#python-scripts)
diff --git a/bin/A-Star-GUI/AStarGUI.py b/bin/A-Star-GUI/AStarGUI.py
new file mode 100644
index 0000000..e88843f
--- /dev/null
+++ b/bin/A-Star-GUI/AStarGUI.py
@@ -0,0 +1,277 @@
+# A * Pathfinding Algorithm 🌟
+
+# Implemented with pygame, this script will find the shortest distance between two nodes using A * Algorithm 🎮
+
+# Instructions / Keys Functionalities:
+# -Left Click to add start and end nodes
+# -Right Click to remove the nodes
+# -Space Bar to start finding the shortest distance
+# -'C' to clear and reset the grid
+
+# Requirements:
+# pip install pygame
+
+# By Susnata Goswami(https://github.com/proghead00)
+
+import pygame
+import math
+from queue import PriorityQueue
+
+WIDTH = 800
+WIN = pygame.display.set_mode((WIDTH, WIDTH)) # dimension to make it a square
+pygame.display.set_caption("A* Path Finding Algorithm")
+
+RED = (235, 77, 75)
+GREEN = (186, 220, 88)
+BLUE = (48, 51, 107)
+YELLOW = (249, 202, 36)
+WHITE = (255, 255, 255)
+BLACK = (53, 59, 72)
+PURPLE = (130, 88, 159)
+ORANGE = (225, 95, 65)
+GREY = (128, 128, 128)
+TURQUOISE = (10, 189, 227)
+
+
+class Spot:
+ def __init__(self, row, col, width, total_rows):
+ self.row = row
+ self.col = col
+ self.x = row * width
+ self.y = col * width
+ self.color = WHITE
+ self.neighbors = []
+ self.width = width
+ self.total_rows = total_rows
+
+ def get_pos(self):
+ return self.row, self.col
+
+ def is_closed(self):
+ return self.color == RED
+
+ def is_open(self):
+ return self.color == GREEN
+
+ def is_barrier(self):
+ return self.color == BLACK
+
+ def is_start(self):
+ return self.color == ORANGE
+
+ def is_end(self):
+ return self.color == TURQUOISE
+
+ def reset(self):
+ self.color = WHITE
+
+ def make_start(self):
+ self.color = ORANGE
+
+ def make_closed(self):
+ self.color = RED
+
+ def make_open(self):
+ self.color = GREEN
+
+ def make_barrier(self):
+ self.color = BLACK
+
+ def make_end(self):
+ self.color = TURQUOISE
+
+ def make_path(self):
+ self.color = PURPLE
+
+ def draw(self, win):
+ pygame.draw.rect(
+ win, self.color, (self.x, self.y, self.width, self.width))
+
+ def update_neighbors(self, grid):
+ self.neighbors = []
+ # DOWN
+ if self.row < self.total_rows - 1 and not grid[self.row + 1][self.col].is_barrier():
+ self.neighbors.append(grid[self.row + 1][self.col])
+
+ if self.row > 0 and not grid[self.row - 1][self.col].is_barrier(): # UP
+ self.neighbors.append(grid[self.row - 1][self.col])
+
+ # RIGHT
+ if self.col < self.total_rows - 1 and not grid[self.row][self.col + 1].is_barrier():
+ self.neighbors.append(grid[self.row][self.col + 1])
+
+ if self.col > 0 and not grid[self.row][self.col - 1].is_barrier(): # LEFT
+ self.neighbors.append(grid[self.row][self.col - 1])
+
+ def __lt__(self, other):
+ return False
+
+
+def h(p1, p2):
+ x1, y1 = p1
+ x2, y2 = p2
+ return abs(x1 - x2) + abs(y1 - y2) # finding absolute distance
+
+
+def reconstruct_path(came_from, current, draw):
+ while current in came_from:
+ current = came_from[current]
+ current.make_path()
+ draw()
+
+
+def algorithm(draw, grid, start, end):
+ count = 0
+ open_set = PriorityQueue()
+ open_set.put((0, count, start))
+ came_from = {}
+ # keeps track of current shortest distance from start node to this node
+ g_score = {spot: float("inf") for row in grid for spot in row}
+ g_score[start] = 0
+ # keeps track of predicted distance from this node to end node
+ f_score = {spot: float("inf") for row in grid for spot in row}
+ f_score[start] = h(start.get_pos(), end.get_pos())
+
+ open_set_hash = {start}
+
+ while not open_set.empty():
+ for event in pygame.event.get():
+ if event.type == pygame.QUIT:
+ pygame.quit()
+
+ current = open_set.get()[2]
+ open_set_hash.remove(current)
+
+ if current == end:
+ reconstruct_path(came_from, end, draw)
+ end.make_end()
+ return True
+
+ for neighbor in current.neighbors:
+ temp_g_score = g_score[current] + 1
+
+ if temp_g_score < g_score[neighbor]:
+ came_from[neighbor] = current
+ g_score[neighbor] = temp_g_score
+ f_score[neighbor] = temp_g_score + \
+ h(neighbor.get_pos(), end.get_pos())
+ if neighbor not in open_set_hash:
+ count += 1
+ open_set.put((f_score[neighbor], count, neighbor))
+ open_set_hash.add(neighbor)
+ neighbor.make_open()
+
+ draw()
+
+ if current != start:
+ current.make_closed()
+
+ return False
+
+
+def make_grid(rows, width):
+ grid = []
+ gap = width // rows # integer division: gap b/w each of these rows
+ for i in range(rows):
+ grid.append([])
+ for j in range(rows):
+ spot = Spot(i, j, gap, rows)
+ grid[i].append(spot)
+
+ return grid
+
+
+def draw_grid(win, rows, width):
+ gap = width // rows
+ for i in range(rows):
+ pygame.draw.line(win, GREY, (0, i * gap),
+ (width, i * gap)) # horizontal line
+ for j in range(rows):
+ pygame.draw.line(win, GREY, (j * gap, 0),
+ (j * gap, width)) # vertical lines
+
+
+def draw(win, grid, rows, width):
+ win.fill(WHITE)
+
+ for row in grid:
+ for spot in row:
+ spot.draw(win)
+
+ draw_grid(win, rows, width)
+ pygame.display.update()
+
+# getting mouse postiion
+
+
+def get_clicked_pos(pos, rows, width):
+ gap = width // rows
+ y, x = pos
+
+ row = y // gap
+ col = x // gap
+
+ return row, col
+
+
+def main(win, width):
+ ROWS = 50
+ grid = make_grid(ROWS, width)
+
+ start = None
+ end = None
+
+ run = True
+ while run:
+ draw(win, grid, ROWS, width)
+ for event in pygame.event.get():
+ if event.type == pygame.QUIT:
+ run = False
+
+ if pygame.mouse.get_pressed()[0]: # LEFT MOUSE BUTTON: 0
+ pos = pygame.mouse.get_pos()
+ # actual spot in 2D list where mouse is clicked
+ row, col = get_clicked_pos(pos, ROWS, width)
+ spot = grid[row][col]
+
+ # if start and end aren't done
+ if not start and spot != end:
+ start = spot
+ start.make_start()
+
+ # to avoid overlapping of start and end node
+ elif not end and spot != start:
+ end = spot
+ end.make_end()
+
+ elif spot != end and spot != start:
+ spot.make_barrier()
+
+ elif pygame.mouse.get_pressed()[2]: # RIGHT MOUSE BUTTON: 2
+ pos = pygame.mouse.get_pos()
+ row, col = get_clicked_pos(pos, ROWS, width)
+ spot = grid[row][col]
+ spot.reset()
+ if spot == start:
+ start = None
+ elif spot == end:
+ end = None
+
+ if event.type == pygame.KEYDOWN:
+ if event.key == pygame.K_SPACE and start and end:
+ for row in grid:
+ for spot in row:
+ spot.update_neighbors(grid)
+
+ algorithm(lambda: draw(win, grid, ROWS, width),
+ grid, start, end)
+
+ if event.key == pygame.K_c:
+ start = None
+ end = None
+ grid = make_grid(ROWS, width)
+
+ pygame.quit()
+
+
+main(WIN, WIDTH)
diff --git a/bin/A-Star-GUI/README.md b/bin/A-Star-GUI/README.md
new file mode 100644
index 0000000..e6770db
--- /dev/null
+++ b/bin/A-Star-GUI/README.md
@@ -0,0 +1,18 @@
+# A\* Pathfinding Algorithm 🌟
+
+## Implemented with pygame, this script will find the shortest distance between two nodes using A\* Algorithm 🎮
+
+## Instructions/ Keys Functionalities :
+
+- ### Left Click to add start and end nodes
+- ### Right Click to remove the nodes
+- ### Space Bar to start finding the shortest distance
+- ### 'C' to clear and reset the grid
+
+## Requirements:
+
+ pip install pygame
+
+
+
+### By Susnata Goswami(https://github.com/proghead00)
diff --git a/bin/A-Star-GUI/requirements.txt b/bin/A-Star-GUI/requirements.txt
new file mode 100644
index 0000000..231dd17
--- /dev/null
+++ b/bin/A-Star-GUI/requirements.txt
@@ -0,0 +1 @@
+pygame
\ No newline at end of file
diff --git a/bin/Blog_reader.py b/bin/Blog_reader.py
index c1d9a14..bf2f078 100644
--- a/bin/Blog_reader.py
+++ b/bin/Blog_reader.py
@@ -10,9 +10,9 @@
piu = data[i]
heading = piu.find("a").get_text()
for n in range(84):
- print ("-", end=" ")
- print ('{}{}'.format(' ' * (int(columns / 2 - len(heading) / 2)), heading))
+ print("-", end=" ")
+ print('{}{}'.format(' ' * (int(columns / 2 - len(heading) / 2)), heading))
for n in range(84):
- print ("-", end=" ")
+ print("-", end=" ")
main_content = piu.find(class_="content").get_text()
- print (main_content)
+ print(main_content)
diff --git a/bin/File_Dispatcher/main.py b/bin/File_Dispatcher/main.py
new file mode 100644
index 0000000..2e8b711
--- /dev/null
+++ b/bin/File_Dispatcher/main.py
@@ -0,0 +1,18 @@
+import shutil
+import os
+
+path = "D:\\Abdul Rehman\\AI Automations\\File_Dispatcher"
+
+print("Before Moving Files ")
+print(os.listdir(path))
+
+m = "D:\\Abdul Rehman\\AI Automations\\Source\\Source\\abd.txt"
+print(os.listdir(m))
+
+destination = "D:\\Abdul Rehman\\Downloads_Backup\Images"
+
+if m.endswith(('.txt')):
+
+ dest = shutil.move(source, destination, copy_function="Move")
+else:
+ print("Unable to Fetch it")
diff --git a/bin/Find image difference requirements.txt b/bin/Find image difference requirements.txt
new file mode 100644
index 0000000..6ca6c45
--- /dev/null
+++ b/bin/Find image difference requirements.txt
@@ -0,0 +1 @@
+pillow==7.2.0
\ No newline at end of file
diff --git a/bin/Find image difference.py b/bin/Find image difference.py
new file mode 100644
index 0000000..1281e27
--- /dev/null
+++ b/bin/Find image difference.py
@@ -0,0 +1,9 @@
+# importing dependecies
+from PIL import Image ,ImageChops
+img1=Image.open("Image Difference/img1.jpg")
+img2=Image.open("Image Difference/img2.jpg")
+
+#returns the new image with pixel-by-pixel difference between the two images
+newImage=ImageChops.difference(img1,img2)
+if newImage.getbbox():
+ newImage.show()
diff --git a/bin/Image Difference/img1.jpg b/bin/Image Difference/img1.jpg
new file mode 100644
index 0000000..fe48a6b
Binary files /dev/null and b/bin/Image Difference/img1.jpg differ
diff --git a/bin/Image Difference/img2.jpg b/bin/Image Difference/img2.jpg
new file mode 100644
index 0000000..a724926
Binary files /dev/null and b/bin/Image Difference/img2.jpg differ
diff --git a/bin/ImagetoData.py b/bin/ImagetoData.py
index eadcb7e..dd69feb 100644
--- a/bin/ImagetoData.py
+++ b/bin/ImagetoData.py
@@ -1,4 +1,5 @@
-import os, os.path
+import os
+import os.path
import numpy as np
from PIL import Image
@@ -16,5 +17,6 @@ def image_classifier(path):
return np.array(imgs)
- # converts all images in a particular directory to a 64*64*3 (3 for the rgb value of image) dimension vector
+ # converts all images in a particular directory to a 64*64*3
+ # (3 for the rgb value of image) dimension vector
# use - in machine learning and image processing
diff --git a/bin/Linux and Windows Desktop Setup Automation/README.md b/bin/Linux and Windows Desktop Setup Automation/README.md
new file mode 100644
index 0000000..493202a
--- /dev/null
+++ b/bin/Linux and Windows Desktop Setup Automation/README.md
@@ -0,0 +1,65 @@
+# 🛠️ In Development
+
+This repository contains a collection of **automation and optimization scripts**, aiming to improve the **development environment on Linux** and **gaming performance on Windows**.
+
+---
+
+## 🐧 Linux Automation Scripts
+
+The Python script **`automation_script.py`** is designed to streamline the setup of a new development environment on Linux.
+It automates the installation of essential tools, ensuring everything is ready to get you started quickly.
+
+### Linux Script Features
+- **System Updates**: Runs `apt update` and `apt upgrade` to keep packages up to date.
+- **Essential Tools**: Automatically installs `htop` (process monitor), `Git` (version control), and `Neofetch` (system information).
+- **Development Environment**: Installs **Visual Studio Code** via Snap.
+- **Customization**: Includes `GNOME Tweaks` and `GNOME Shell Extensions` to customize the user interface.
+
+---
+
+## 🎮 Windows Optimization Scripts
+
+The PowerShell script **`windows_gaming_tweaks.ps1`** is an interactive tool for optimizing Windows and boosting gaming performance.
+It provides a simple, straightforward menu to run system maintenance and repair tasks.
+
+### 💻 Windows Script Features
+- **SFC/SCANNOW**: Scans and repairs corrupted system files.
+- **CHKDSK**: Analyzes and fixes disk errors to maintain data integrity.
+- **Temporary File Cleanup**: Removes unnecessary files that take up space and slow down the system.
+- **DISM**: Repairs the operating system image, ensuring updates work properly.
+
+---
+
+## How to Use
+
+### 🔹 On Linux
+1. Clone the repository:
+ ```bash
+ git clone https://github.com/Logan1x/Python-Scripts.gitgit
+ ```
+
+2. Enter the repository directory:
+ ```bash
+ cd Python-Scripts
+ ```
+
+3. Execute the script:
+ ```bash
+ python3 automation_script.py
+ ```
+
+### 🔹 On Windows
+
+1. Open PowerShell as Administrator. To do this, right-click the Start Menu icon and select `Windows PowerShell (Admin)` or `Terminal (Admin)`.
+
+2. Navigate to the directory where the script is saved:
+ ```bash
+ cd C:\path\to\repository
+ ```
+
+3. Execute the script:
+ ```bash
+ .\windows_gaming_tweaks.ps1
+ ```
+
+Note: If the script doesn't run, you might need to adjust the PowerShell execution policy. Use the command `Set-ExecutionPolicy RemoteSigned` (run as Administrator) to allow local scripts to execute.
\ No newline at end of file
diff --git a/bin/Linux and Windows Desktop Setup Automation/scriptLinux.py b/bin/Linux and Windows Desktop Setup Automation/scriptLinux.py
new file mode 100644
index 0000000..c20380d
--- /dev/null
+++ b/bin/Linux and Windows Desktop Setup Automation/scriptLinux.py
@@ -0,0 +1,38 @@
+#In development
+
+import subprocess
+import sys
+
+def autom_sudoapt(command):
+ try:
+ subprocess.run(command, check=True, text=True, shell=True)
+ print(f"Comando '{command}' executado com sucesso.")
+ except subprocess.CalledProcessError as e:
+ print(f"Erro ao executar o comando '{command}': {e}", file=sys.stderr)
+ sys.exit(1)
+
+def main():
+ print("Iniciando a atualização e instalação do htop, vscode e git...")
+
+ autom_sudoapt("sudo apt update -y")
+
+ autom_sudoapt("sudo apt upgrade -y")
+
+ autom_sudoapt("sudo apt install -y htop")
+
+ autom_sudoapt("sudo apt install -y git")
+
+ autom_sudoapt("sudo snap install -y --classic code")
+
+ autom_sudoapt("sudo apt install neofetch -y")
+
+ autom_sudoapt("sudo apt install gnome-tweaks -y")
+
+ autom_sudoapt("sudo apt install gnome-shell-extensions -y")
+
+ autom_sudoapt("sudo apt install gnome-terminal -y")
+
+ print("Atualização e instalação concluídos!")
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/bin/Linux and Windows Desktop Setup Automation/scriptWin.ps1 b/bin/Linux and Windows Desktop Setup Automation/scriptWin.ps1
new file mode 100644
index 0000000..60184b9
--- /dev/null
+++ b/bin/Linux and Windows Desktop Setup Automation/scriptWin.ps1
@@ -0,0 +1,104 @@
+#In development
+
+# Check for administrator privileges
+if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
+ Write-Warning "This script needs to be run as an Administrator. Restarting with elevated privileges..."
+ Start-Process powershell "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
+ exit
+}
+
+# Function to display the menu
+function Show-Menu {
+ Clear-Host
+ Write-Host "------------------------------------------------------" -ForegroundColor Cyan
+ Write-Host "Script for Windows optimization with a focus on games " -ForegroundColor White
+ write-Host " Developed by euopaulin " -ForegroundColor White
+ Write-Host "------------------------------------------------------" -ForegroundColor Cyan
+ Write-Host " Choose an option:" -ForegroundColor White
+ Write-Host "------------------------------------------------------" -ForegroundColor Cyan
+ Write-Host "1. Run SFC/SCANNOW" -ForegroundColor DarkRed
+ Write-Host "2. Run CHKDSK" -ForegroundColor DarkRed
+ Write-Host "3. Clean temporary files" -ForegroundColor DarkRed
+ Write-Host "4. Restore system image (DISM)" -ForegroundColor DarkRed
+ Write-Host "5. Exit" -ForegroundColor DarkGreen
+ Write-Host "------------------------------------------------------" -ForegroundColor Cyan
+}
+
+# Main loop to show the menu and process user input
+while ($true) {
+ Show-Menu
+
+ $choice = Read-Host "Enter the number of your choice"
+
+ switch ($choice) {
+ "1" {
+ Write-Host "Option 1 selected: Running SFC/SCANNOW..." -ForegroundColor Yellow
+ try {
+ & sfc /scannow
+ if ($LASTEXITCODE -eq 0) {
+ Write-Host "SFC/SCANNOW executed successfully." -ForegroundColor Green
+ } else {
+ Write-Host "Error running SFC/SCANNOW. Make sure to run the script as an Administrator." -ForegroundColor Red
+ }
+ } catch {
+ Write-Host "An error occurred while running the command." -ForegroundColor Red
+ }
+ break
+ }
+ "2" {
+ Write-Host "Option 2 selected: Running CHKDSK..." -ForegroundColor Yellow
+ $drive = Read-Host "Enter the drive letter (e.g., C)"
+ Write-Host "Checking drive $drive..." -ForegroundColor Yellow
+ try {
+ # Using the native PowerShell command
+ Repair-Volume -DriveLetter $drive -Scan -Verbose
+ Write-Host "CHKDSK executed successfully." -ForegroundColor Green
+ } catch {
+ Write-Host "An error occurred while running the command." -ForegroundColor Red
+ }
+ break
+ }
+ "3" {
+ Write-Host "Option 3 selected: Cleaning temporary files..." -ForegroundColor Yellow
+ try {
+ $tempPaths = "$env:TEMP\*", "$env:SystemRoot\Temp\*"
+ foreach ($tempPath in $tempPaths) {
+ if (Test-Path $tempPath) {
+ Remove-Item -Path $tempPath -Recurse -Force -ErrorAction SilentlyContinue
+ }
+ }
+ Write-Host "Temporary files cleaned successfully." -ForegroundColor Green
+ } catch {
+ Write-Host "An error occurred while cleaning temporary files." -ForegroundColor Red
+ }
+ break
+ }
+ "4" {
+ Write-Host "Option 4 selected: Restoring system image (DISM)..." -ForegroundColor Yellow
+ try {
+ & dism /Online /Cleanup-Image /RestoreHealth
+ if ($LASTEXITCODE -eq 0) {
+ Write-Host "DISM executed successfully." -ForegroundColor Green
+ } else {
+ Write-Host "Error running DISM. Make sure to run the script as an Administrator." -ForegroundColor Red
+ }
+ } catch {
+ Write-Host "An error occurred while running the command." -ForegroundColor Red
+ }
+ break
+ }
+ "5" {
+ Write-Host "Exiting the script. Goodbye!" -ForegroundColor Red
+ Start-Sleep -Seconds 2
+ exit
+ }
+ default {
+ Write-Host "Invalid option. Please enter a number from 1 to 5." -ForegroundColor Red
+ break
+ }
+ }
+
+ Write-Host ""
+ Write-Host "Press any key to continue..." -ForegroundColor White
+ $null = [System.Console]::ReadKey($true)
+}
\ No newline at end of file
diff --git a/bin/Lost Robot/Solution.py b/bin/Lost Robot/Solution.py
new file mode 100644
index 0000000..62745f4
--- /dev/null
+++ b/bin/Lost Robot/Solution.py
@@ -0,0 +1,17 @@
+# According to question we can only instruct robot up or down or left or right.
+# So in his current coordiantes and home coordinates one of the/
+# coordinate either X or Y must be same.
+
+
+for _ in range(int(input())):
+ x1, y1, x2, y2 = map(int, input().split()) # This will parse input to x1,y1,x2 and y2
+ if x1 != x2 and y1 != y2:
+ print('sad')
+ elif x1 == x2 and y1 < y2:
+ print('up')
+ elif x1 == x2 and y1 > y2:
+ print('down')
+ elif y1 == y2 and x1 < x2:
+ print('right')
+ elif y1 == y2 and x1 > x2:
+ print('left')
diff --git a/bin/Lost Robot/quiz b/bin/Lost Robot/quiz
new file mode 100644
index 0000000..02f35da
--- /dev/null
+++ b/bin/Lost Robot/quiz
@@ -0,0 +1,34 @@
+
+Robot Bunny is lost. It wants to reach its home as soon as possible. Currently it is standing at coordinates (x1, y1) in 2-D plane.
+Its home is at coordinates (x2, y2). Bunny is extremely worried. Please help it by giving a command by telling the direction in which it
+should to go so as to reach its home. If you give it a direction, it will keep moving in that direction till it reaches its home.
+There are four possible directions you can give as command - "left", "right", "up", "down". It might be possible that you can't instruct
+the robot in such a way that it reaches its home. In that case, output "sad".
+
+Input
+First line of the input contains an integer T denoting the number of test cases. T test cases follow.
+
+First line of each test case contains four space separated integers x1, y1, x2, y2.
+
+Output
+For each test case, output a single line containing "left" or "right" or "up" or "down" or "sad" (without quotes).
+
+Constraints
+1 ≤ T ≤ 5000
+0 ≤ x1, y1, x2, y2. ≤ 100
+It's guaranteed that the initial position of robot is not his home.
+Example
+
+Input
+3
+0 0 1 0
+0 0 0 1
+0 0 1 1
+
+Output:
+right
+up
+sad
+
+Explanation
+Test case 1. If you give Bunny the command to move to the right, it will reach its home.
diff --git a/bin/Pyfirebase.py b/bin/Pyfirebase.py
index 333b304..3a8b559 100644
--- a/bin/Pyfirebase.py
+++ b/bin/Pyfirebase.py
@@ -1,18 +1,18 @@
import requests.packages.urllib3
-requests.packages.urllib3.disable_warnings()
import serial
import json
+from firebase import firebase
-arduinoData = serial.Serial('com31',9600)
+requests.packages.urllib3.disable_warnings()
+arduinoData = serial.Serial('com31', 9600)
-from firebase import firebase
-firebase = firebase.FirebaseApplication('https://___YOUR_PROJECT_NAME____.firebaseio.com/')
+firebase = firebase.FirebaseApplication(
+ 'https://___YOUR_PROJECT_NAME____.firebaseio.com/')
while 1:
myData = (arduinoData.readline().strip())
myData = (myData.decode('utf-8'))
myData = float(myData)
- result = firebase.put('MainNode/Leaf','temp',myData)
- print 'Data : ',result
-
+ result = firebase.put('MainNode/Leaf', 'temp', myData)
+ print 'Data : ', result
diff --git a/bin/Selenium basics with python/README.md b/bin/Selenium basics with python/README.md
new file mode 100644
index 0000000..b098245
--- /dev/null
+++ b/bin/Selenium basics with python/README.md
@@ -0,0 +1,134 @@
+## Selenium Driver with the Python from scratch with examples
+
+## Need to install
+Python+ Python is an awesome language that comes with many built in libraries and an awesome community. + Python has a package for everything (almost). Which also means people have written many small scripts that does + incredible things from automating simple things for everyday usage to really complex ones. + This repo is collection of awesome scrips by awesome people so that someone might find usefull + here someday or just use it for fun. If you are bored and have time to kill or have some awesome python + scripts please consider contributing to this repo. +
+@jit (just-in-time) decorator from the numba library.",
+ "type": "data"
+},{
+ "name": "Blog Reader",
+ "description": "Blog Reader is the terminal reader that scrapes the article from planet dgplug and displays it on the terminal.It seprates the content accrding to the screen size.",
+ "usage": "python Blog_reader.py",
+ "type": "social"
+},{
+ "name": "Bulk add users to Twitter list",
+ "description": "Simple script helps you mass add users to your twitter list to follow (Ex: Bitcoin/Altcoins official account, news, traders...)requests library from highcharts_loader_requirements.txt",
+ "usage": "from highcharts_loader import ChartLoader, Optionsoptions = Options(from_file='options.json')chart = ChartLoader(options)chart.save_to_file('result.png')// options.json example:",
+ "json": "{'chart': {'type': 'bar'},'title': {'text': 'Which channels are driving engagement?'},'xAxis': {'categories': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']},'series': [{'data': [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]}]}",
+ "type": "data"
+},{
+ "name": "Image Encoder",
+ "description": "It is a simple program to encode and decode images, which helps to reduce and handle images on server, as it is convertedto base64 address.",
+ "usage": "python image_encoder.py",
+ "type": "images"
+},{
+ "name": "Integrate to find area of a graph",
+ "description": "The script takes a given graph along with the range within which the area is to be calculated. It then calculates the area using two methods, the Simpson method and the Trapezoid method and displays the results on a graph.",
+ "usage": "python integrate-graph.py",
+ "type": "data"
+},{
+ "name": "Locate Me",
+ "description": "Run this script and it will locate you.This will tell you yourmatplotlib. Feel free to modify the value of y to obtain different functions that depend on x.",
+ "type": "data"
+},{
+ "name": "Server And Client",
+ "description": "It is simple client server communication script, will add more functionality in future.",
+ "usage": "cd server_clientpython client.pypython server.py",
+ "type": "misc"
+},{
+ "name": "Tweetload",
+ "description": "Download latest tweets (default: up to 4000) from a specific twitter user. The script will create a file with one tweet per line, stripped from mentions, hashtags and links. For that to work, create a json file with your twitter credentials (see source) and define the twitter user in source code.",
+ "usage": "python3 tweetload.py",
+ "type": "social"
+},{
+ "name": "Twitter_retweet_bot",
+ "description": "It is a simple script that retweets any hashtag provided in it.",
+ "usage": "python twitter_retweet_bot.py",
+ "type": "social"
+},{
+ "name": "Twitter Sentiment Analysis",
+ "description": "A python script that goes through the twitter feeds and calculates the sentiment of the users on the topic of Demonetization in India. Sentiments are calculated to be positive, negative or neutral. Various other analyses are represented using graphs.",
+ "usage": "pip install -r analyseTweets-requirements.txtpython analyseTweets.py",
+ "type": "social"
+},{
+ "name": "URL Shortener",
+ "description": "This is python script that shortens any URL provided to it.",
+ "usage": "# Takes multiple inputs and returns shortened URL for bothpython shortener.py url1 url2#Stores shortened URLs in a filepython shortener.py url1 url2 > file.txt",
+ "type": "util"
+},{
+ "name": "Video-downloader v1.1",
+ "description": "This file allows the user to download videos off of the web. as of version 1 the user is able to download highquality videos as a playlist or single file as well as audio files from the supported websites given here are supported.More features will be added in the future iterations of the project. a simple video downloader using youtube-dl Library, a starter script for making use of youtube-dl.Requirementsvid.py script! assuming you already have the other requirements",
+ "type": "util"
+},{
+ "name": "YouTube Bot",
+ "description": "This is a simple python script that increases your video count/ views. Log out from all google accounts and run this.",
+ "usage": "# For Linux Userspython youtube-bot-linux.py# For Windows Userspython youtube-bot-windows.py",
+ "note": "In case your browser stoped working delete/comment the following line in the script.Linuxos.system(' killall -9 ' + brow)Windowsos.system('TASKKILL /F /IM ' + brow + '.exe')",
+ "type": "social"
+},{
+ "name": "Markdown to presentation",
+ "description": "You can convert markdown in a directory into a **.html** file for presentation using reveal.js",
+ "usage": "python reveal-md.py -d folder_name -c config",
+ "note": "the config is optional. You can specify with keys as here https://github.com/hakimel/reveal.js/#configuration in a json file. Reveal.js cdn link is included in generated html you may need to download them if you want to use the presentation offline",
+ "type": "util"
+ }]
diff --git a/docs/images/79974586_280549466424880_5856738100331003205_n.jpg b/docs/images/79974586_280549466424880_5856738100331003205_n.jpg
new file mode 100644
index 0000000..8508e49
Binary files /dev/null and b/docs/images/79974586_280549466424880_5856738100331003205_n.jpg differ
diff --git a/docs/images/Harshvardhan58.png b/docs/images/Harshvardhan58.png
new file mode 100644
index 0000000..758a68b
Binary files /dev/null and b/docs/images/Harshvardhan58.png differ
diff --git a/docs/images/KayvanMazaheri.png b/docs/images/KayvanMazaheri.png
new file mode 100644
index 0000000..42ab768
Binary files /dev/null and b/docs/images/KayvanMazaheri.png differ
diff --git a/docs/images/Logan1x.png b/docs/images/Logan1x.png
new file mode 100644
index 0000000..d3b08d1
Binary files /dev/null and b/docs/images/Logan1x.png differ
diff --git a/docs/images/MadhavBahlMD.png b/docs/images/MadhavBahlMD.png
new file mode 100644
index 0000000..6de00cc
Binary files /dev/null and b/docs/images/MadhavBahlMD.png differ
diff --git a/docs/images/Pradhvan.png b/docs/images/Pradhvan.png
new file mode 100644
index 0000000..20bb7cd
Binary files /dev/null and b/docs/images/Pradhvan.png differ
diff --git a/docs/images/Rafi993.png b/docs/images/Rafi993.png
new file mode 100644
index 0000000..7c98446
Binary files /dev/null and b/docs/images/Rafi993.png differ
diff --git a/docs/images/RodolfoFerro.png b/docs/images/RodolfoFerro.png
new file mode 100644
index 0000000..5b3e37b
Binary files /dev/null and b/docs/images/RodolfoFerro.png differ
diff --git a/docs/images/Sharanpai.png b/docs/images/Sharanpai.png
new file mode 100644
index 0000000..0b4cb28
Binary files /dev/null and b/docs/images/Sharanpai.png differ
diff --git a/docs/images/Souldiv.png b/docs/images/Souldiv.png
new file mode 100644
index 0000000..1bc604a
Binary files /dev/null and b/docs/images/Souldiv.png differ
diff --git a/docs/images/SuryaThiru.png b/docs/images/SuryaThiru.png
new file mode 100644
index 0000000..6abcb9f
Binary files /dev/null and b/docs/images/SuryaThiru.png differ
diff --git a/docs/images/ValentinChCloud.png b/docs/images/ValentinChCloud.png
new file mode 100644
index 0000000..233e5af
Binary files /dev/null and b/docs/images/ValentinChCloud.png differ
diff --git a/docs/images/abhinavralhan.png b/docs/images/abhinavralhan.png
new file mode 100644
index 0000000..4f8f228
Binary files /dev/null and b/docs/images/abhinavralhan.png differ
diff --git a/docs/images/ahadali.png b/docs/images/ahadali.png
new file mode 100644
index 0000000..7f9aa6b
Binary files /dev/null and b/docs/images/ahadali.png differ
diff --git a/docs/images/akshitgrover.png b/docs/images/akshitgrover.png
new file mode 100644
index 0000000..2dd160e
Binary files /dev/null and b/docs/images/akshitgrover.png differ
diff --git a/docs/images/apuayush.png b/docs/images/apuayush.png
new file mode 100644
index 0000000..c04f818
Binary files /dev/null and b/docs/images/apuayush.png differ
diff --git a/docs/images/ayrusme.png b/docs/images/ayrusme.png
new file mode 100644
index 0000000..9c0a36f
Binary files /dev/null and b/docs/images/ayrusme.png differ
diff --git a/docs/images/chiraag-jain.png b/docs/images/chiraag-jain.png
new file mode 100644
index 0000000..0dc0f24
Binary files /dev/null and b/docs/images/chiraag-jain.png differ
diff --git a/docs/images/dgupta777.png b/docs/images/dgupta777.png
new file mode 100644
index 0000000..6ce8628
Binary files /dev/null and b/docs/images/dgupta777.png differ
diff --git a/docs/images/ehnydeel.png b/docs/images/ehnydeel.png
new file mode 100644
index 0000000..f3a6cf3
Binary files /dev/null and b/docs/images/ehnydeel.png differ
diff --git a/docs/images/harsha7890.png b/docs/images/harsha7890.png
new file mode 100644
index 0000000..75141c2
Binary files /dev/null and b/docs/images/harsha7890.png differ
diff --git a/docs/images/ishank011.png b/docs/images/ishank011.png
new file mode 100644
index 0000000..37a89f1
Binary files /dev/null and b/docs/images/ishank011.png differ
diff --git a/docs/images/iyanuashiri.png b/docs/images/iyanuashiri.png
new file mode 100644
index 0000000..5305175
Binary files /dev/null and b/docs/images/iyanuashiri.png differ
diff --git a/docs/images/kalbhor.png b/docs/images/kalbhor.png
new file mode 100644
index 0000000..d5e35f9
Binary files /dev/null and b/docs/images/kalbhor.png differ
diff --git a/docs/images/khushboopaddiyar.png b/docs/images/khushboopaddiyar.png
new file mode 100644
index 0000000..92ce279
Binary files /dev/null and b/docs/images/khushboopaddiyar.png differ
diff --git a/docs/images/lionasp.png b/docs/images/lionasp.png
new file mode 100644
index 0000000..2c39eef
Binary files /dev/null and b/docs/images/lionasp.png differ
diff --git a/docs/images/niharikakrishnan.png b/docs/images/niharikakrishnan.png
new file mode 100644
index 0000000..c0ce171
Binary files /dev/null and b/docs/images/niharikakrishnan.png differ
diff --git a/docs/images/pr0me.png b/docs/images/pr0me.png
new file mode 100644
index 0000000..a037219
Binary files /dev/null and b/docs/images/pr0me.png differ
diff --git a/docs/images/shivamp123.png b/docs/images/shivamp123.png
new file mode 100644
index 0000000..cdfb1bd
Binary files /dev/null and b/docs/images/shivamp123.png differ
diff --git a/docs/images/szepnapot.png b/docs/images/szepnapot.png
new file mode 100644
index 0000000..6f3c6e4
Binary files /dev/null and b/docs/images/szepnapot.png differ
diff --git a/docs/images/temp.png b/docs/images/temp.png
new file mode 100644
index 0000000..76fb41d
Binary files /dev/null and b/docs/images/temp.png differ
diff --git a/docs/images/toonarmycaptain.png b/docs/images/toonarmycaptain.png
new file mode 100644
index 0000000..4731975
Binary files /dev/null and b/docs/images/toonarmycaptain.png differ
diff --git a/docs/images/vigov5.png b/docs/images/vigov5.png
new file mode 100644
index 0000000..b85895f
Binary files /dev/null and b/docs/images/vigov5.png differ
diff --git a/docs/images/vis2797.png b/docs/images/vis2797.png
new file mode 100644
index 0000000..27c207d
Binary files /dev/null and b/docs/images/vis2797.png differ
diff --git a/docs/images/zinuzoid.png b/docs/images/zinuzoid.png
new file mode 100644
index 0000000..924ad90
Binary files /dev/null and b/docs/images/zinuzoid.png differ
diff --git a/docs/index.css b/docs/index.css
new file mode 100644
index 0000000..819727e
--- /dev/null
+++ b/docs/index.css
@@ -0,0 +1,239 @@
+body{
+ font-family: sans-serif;
+ letter-spacing: 0.3rem;
+}
+
+input::-webkit-input-placeholder{
+ font-family: sans-serif;
+ letter-spacing: 0.3rem;
+ font-size: 12px;
+}
+
+input::-moz-placeholder{
+ font-family: sans-serif;
+ letter-spacing: 0.3rem;
+ font-size: 12px;
+}
+input:-ms-input-placeholder{
+ font-family: sans-serif;
+ letter-spacing: 0.3rem;
+ font-size: 12px;
+}
+input:-moz-placeholder{
+ font-family: sans-serif;
+ letter-spacing: 0.3rem;
+ font-size: 12px;
+}
+
+
+header{
+ background:#263238;
+ min-height: 50px;
+ position: fixed;
+ right: 0px;
+ left: 0px;
+}
+
+.title, .sub_title{
+ color: #fff;
+ display: inline-block;
+ font-weight: 300;
+ padding-top: 15px;
+ padding-left: 15px;
+ text-decoration: none;
+ transition: all 0.5s;
+}
+
+.title:hover, .sub_title:hover{
+ transition: all 0.5s;
+ color: #546E7A;
+}
+
+.sub_title{
+ font-size: 12px;
+ padding-top: 20px;
+}
+
+.pull-right{
+ float: right;
+ padding-right: 10px;
+}
+
+.container{
+ padding:0px 20px;
+ padding-top: 30px;
+}
+
+.container-fluid{
+ margin: 0px;
+}
+
+.sidebar{
+ width: 300px;
+ border: 1px solid #f2f2f2;
+ display: inline-block;
+ position: fixed;
+ top: 50px;
+ bottom: 0px;
+}
+.details{
+ display: inline-block;
+ margin-top: 52px;
+ /* height: 20vh; */
+ width: 77%;
+ margin-left: 300px;
+ margin-bottom: 15px;
+}
+
+.search{
+ padding: 15px 10px;
+ padding-bottom: 0px;
+ width: 238px;
+ position: relative;
+}
+
+.search input{
+ width: 100%;
+ padding: 5px;
+ border: none;
+ outline: none;
+ border-bottom: 1px solid #ccc;
+ padding-left: 5px;
+}
+
+.search input:focus, .search input:hover{
+ border-bottom: 1px solid #263238;
+}
+
+.search img{
+ height: 13px;
+ position: absolute;
+ right: 14px;
+ top: 22px;
+}
+
+p{
+ line-height: 1.7rem;
+}
+
+.content-block{
+ margin-bottom: 50px;
+}
+
+.contribs img{
+ cursor: pointer;
+ padding: 5px;
+ border: 6px solid #fff;
+ border-radius: 50%;
+ transition: all 0.5s;
+}
+
+.contribs img:hover{
+ transition: all 0.5s;
+ border: 6px solid #263238;
+}
+
+.scripts-list{
+ padding-left: 0px;
+ height: calc(100vh - 112px);
+ overflow: auto;
+ margin: 0px;
+ margin-top: 15px;
+}
+
+.scripts-list li{
+ padding-left: 15px;
+ padding-right: 15px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font-size: 13px;
+ letter-spacing: 0.1rem;
+ width: 88%;
+}
+
+.scripts-list li a {
+ color: #263238;
+}
+
+.scripts-list li:hover a{
+ color: #fff
+}
+
+.scripts-list li:hover{
+ transition: all 0.1s;
+ background: #263238;
+ color: #fff
+}
+
+.scripts-list li span.tag{
+ float: right;
+ background: #263238;
+ color: #fff;
+ padding: 5px;
+ position: relative;
+ top: -3px;
+}
+
+.scripts-list li:hover > span.tag{
+ background: #fff;
+ color: #263238;
+ cursor: pointer;
+}
+
+.scripts-list li span.searchText{
+ display: inline-block;
+ width: 70%;
+ cursor: pointer;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+/* Utils */
+@media screen and (max-width: 480px){
+ .hidden-xs{
+ display: none;
+ }
+}
+
+@media screen and (max-width: 480px){
+ .details{
+ margin-left: 0px;
+ }
+}
+
+.contentDiv{
+ padding-left: 20px;
+ padding-top: 15px;
+}
+
+.contentDiv h3{
+ margin: 0px;
+ padding-bottom: 20px;
+ cursor: pointer;
+}
+
+.contentDiv p{
+ letter-spacing: 0.1rem;
+}
+
+.contentDiv code{
+ background: #f2f2f2;
+ padding: 2px 5px;
+ border-radius: 2px;
+}
+
+.contentDiv a{
+ color: #546E7A;
+}
+
+.contentDiv a:hover{
+ color: #000000;
+}
+
+.usage{
+ display: block;
+ padding: 15px 22px;
+ letter-spacing: 0.1px;
+ line-height: 20px;
+}
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..d71eeb7
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+