Skip to content

Instantly share code, notes, and snippets.

View swalahamani's full-sized avatar
👑
Building something awesome!

Swalah Amani swalahamani

👑
Building something awesome!
View GitHub Profile
@swalahamani
swalahamani / Multi-Git-Account-Configuration.md
Created November 4, 2022 12:13
Multi Git Account Configuration for different paths:

Multi Git Account Configuration for different paths:

Suppose your Secondary development folder path is:

/Users/swalahamani/DEV/SecondDevHome

Configure your Users/swalahamani/.gitconfig file like the below:

[core]
/**
* The implementation of this is heavily inspired from the article:
* https://ourcodeworld.com/articles/read/1544/how-to-implement-a-timeout-for-javascript-promises
*/
/**
* Waits the execution till passed milliseconds.
*
* @param {*} milliseconds
@swalahamani
swalahamani / react-native-helper-scripts
Last active April 28, 2020 07:14
A set of react native (mostly android) helper commands. A CLI tool with dynamic project support is on the way. Keep an eye on https://github.com/swalahamani/react-native-assistant
##############################################################################
# react-native helper commands BEG
export ANDROID_APP_BUNDLE=com.example.appname
export ANDROID_DEV_DEVICE_IP=192.168.1.52 # your android device ip
export ANDROID_DEV_DEVICE_PORT=8978 # your android device debug port
export ANDROID_DEV_DEBUG_APK_PATH=./android/app/build/outputs/apk/debug/app-debug.apk
export ANDROID_DEV_RELEASE_APK_PATH=./android/app/build/outputs/apk/release/app-release.apk
#to simplify react-native cli usage
@swalahamani
swalahamani / JDBC_Ex.java
Created November 3, 2017 06:28
JAVA JDBC TABLE EXAMPE
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.swalahamani.ts.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;