Skip to content

Instantly share code, notes, and snippets.

View yash22arora's full-sized avatar
🎯
Focusing

Yashvardhan Arora yash22arora

🎯
Focusing
View GitHub Profile
# Script to create Github Repos for all the directories in the current folder and linking local repos to remote repos
import os
import shutil
from dotenv import load_dotenv
import requests
load_dotenv()
GITHUB_ACCESS_TOKEN = os.getenv('GITHUB_ACCESS_TOKEN')
GITHUB_ORG = os.getenv('GITHUB_ORG')
@yash22arora
yash22arora / Grid.css
Created June 23, 2022 17:04
Simple code for css grids
.gridContainer {
width: 100%;
display: grid;
grid-gap: 2.5rem;
grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
}
@yash22arora
yash22arora / formatcra.sh
Created April 2, 2022 06:26
Creating Shell Command for formatting files in newly created create-react-app
#!/bin/bash
function formatcra() {
cd src
rm setupTests.js reportWebVitals.js App.test.js App.css logo.svg
echo "function App() {
return (
<div>
@yash22arora
yash22arora / Project.js
Last active August 19, 2021 17:46
Auto rendering alternate project blocks with bluish and pinkish gradient backgrounds.
// import "../assets/css/Projects.css";
// import {GoMarkGithub} from 'react-icons/go';
// import {FiExternalLink} from 'react-icons/fi';
// import {FaBehance} from 'react-icons/fa';
const Project=(props)=>{
let colorClass = "project-wrapper "+ props.className; // getting name of the color in class name
// const isGithub = props.project.github;
// const isExternal = props.project.external;