Skip to content

Instantly share code, notes, and snippets.

View mahi-ma's full-sized avatar
👩‍💻
Lets code it

Mahima Sharma mahi-ma

👩‍💻
Lets code it
View GitHub Profile
@mahi-ma
mahi-ma / gist:d4cd0148ffd9655ac335cae77b522cb4
Last active April 4, 2024 16:02
HTML & CSS for urlshortener
##HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Shortener</title>
<style>
body {
@mahi-ma
mahi-ma / gist:6e988312a78440128305ba67a8fabbc3
Created April 3, 2024 20:17
Lambda function for shorturlservice
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import {
DynamoDBDocumentClient,
ScanCommand,
PutCommand,
GetCommand,
DeleteCommand,
} from "@aws-sdk/lib-dynamodb";
const client = new DynamoDBClient({});
@mahi-ma
mahi-ma / gist:4747c721285361106a718c43da0321d3
Last active February 28, 2023 05:33
Selenium script to register for GSU rec center activities automatically
# Purpose of this file is to write a cronjob that runs every day of the week and register for the respective
# day activities like gym yoga etc and book myself automatically
#### RUN THIS SCRIPT EVERY SUNDAY,TUESDAY & THURSDAY
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.action_chains import ActionChains
@mahi-ma
mahi-ma / customFlat.js
Last active January 7, 2021 08:04
Implementation of custom .flat() method Js
let resolveArray = (input) => {
let output = [];
for(let i=0; i<input.length; i++){
if(Array.isArray(input[i])){
output = [...output,...resolveArray(input[i])];
}
else{
output.push(input[i]);
}
}
@mahi-ma
mahi-ma / .block
Created July 12, 2020 15:01
intro_to_d3v4
license: mit
@mahi-ma
mahi-ma / .block
Last active July 12, 2020 15:18
intro_to_d3v4
license: mit
@mahi-ma
mahi-ma / .block
Last active July 11, 2020 12:51
d3_shapes_experiment
license: mit
@mahi-ma
mahi-ma / .block
Last active July 11, 2020 11:58
barChart_basics
license: mit