Skip to content

Instantly share code, notes, and snippets.

View hamsahmedansari's full-sized avatar
🤓
Learner

M. Ansari hamsahmedansari

🤓
Learner
  • Upwork
  • Pakistan
View GitHub Profile
@hamsahmedansari
hamsahmedansari / History|-15203cde|entries.json
Last active November 4, 2022 16:03
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/hamsahmedansari/development/eventme/code/fe-eventme/apps/eventme-mobile/src/app/screens/event/components/createdEvents/CreatedEvents.tsx","entries":[{"id":"nAys.tsx","timestamp":1667503552655},{"id":"32G8.tsx","source":"undoRedo.source","timestamp":1667503588639}]}
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
@hamsahmedansari
hamsahmedansari / Build.sh
Created July 10, 2020 10:29
Flat Create APK,IPA and Upload to Server React Native with file.io
#!/bin/bash
# Flat Create APK,IPA and Upload to Server
if [ $1 ]
then
echo $1
if [ $1 == "android" ]
then
echo "building apk"
cd ./android
echo "cleaning apk"
const getElementsByClassName = (name) => document.getElementsByClassName(name);
const getSingleByClassName = (name) => getElementsByClassName(name)?.[0];
const scrollDivToBottom = (className) => {
var divElement = getSingleByClassName(className);
divElement.scrollTop = divElement.scrollHeight;
};
const wait = (number = 1000) =>
new Promise((res, rej) =>