Skip to content

Instantly share code, notes, and snippets.

View Rishi-Bidani's full-sized avatar

Rishi-Bidani Rishi-Bidani

  • India
View GitHub Profile
@Rishi-Bidani
Rishi-Bidani / pdfopener.ps1
Last active June 3, 2022 12:49
This script allows you to open multiple pdf files simultaneously in edge browser
$folder = Resolve-Path -Path $args[0]
$files = Get-ChildItem $folder -Filter *.pdf
Write-Host $folder
foreach ($f in $files){
$fullpath = $f.FullName
$filepath = -join("file:///", $fullpath) |
ForEach-Object { $_ -replace "/", "\" } |
ForEach-Object { $_ -replace " ", "%20"}
start msedge $filepath
@Rishi-Bidani
Rishi-Bidani / master.css
Created January 16, 2022 10:21
Starter css for every project
* {
padding: 0;
margin: 0;
}
/* COLOURS */
:root {
--primary: black;
--secondary: white;
--tertiary: #f2f2f2;
@Rishi-Bidani
Rishi-Bidani / build.bat
Last active April 26, 2021 08:57
Cx_Freeze setup for packaging python projects to exe
py setup.py build
@Rishi-Bidani
Rishi-Bidani / tkinterVerticalScroll.py
Last active May 31, 2021 10:36
This python class will create a vertical scroll region for you to use in any tkinter project.
import tkinter as tk
from tkinter import ttk
class CreateVerticalScrollRegion:
def __init__(self, frame, canvascolor, scrollSide=tk.RIGHT):
self.frame = frame
self.canvascolor = canvascolor
self.scrollSide = scrollSide
self.canvas = tk.Canvas(self.frame)