Skip to content

Instantly share code, notes, and snippets.

View ajyanand's full-sized avatar

Ajay Anand ajyanand

View GitHub Profile
@ajyanand
ajyanand / Anagrams.py
Created June 28, 2022 19:59
Contains code to solve the Built Robotics Coding Challenge, find full project at https://github.com/ajyanand/BuiltRoboticsCodingChallenge/tree/master
import sys
import numpy as np
def loadWords(filename:str) -> list:
"""
params: name of a text file with words seperated by lines
return: returns a list of words
"""
with open(filename,'r') as f:
return [ line.strip() for line in f ]
@ajyanand
ajyanand / sugh.sh
Created June 23, 2022 21:13 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then