Skip to content

Instantly share code, notes, and snippets.

View wahibhaq's full-sized avatar
💭
Hustling..

Wahib-Ul-Haq wahibhaq

💭
Hustling..
View GitHub Profile
/**
* This will help us to test our networking code while a particular API is not implemented
* yet on Backend side.
*/
class MockInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
if (BuildConfig.DEBUG) {
val uri = chain.request().url().uri().toString()

Keybase proof

I hereby claim:

  • I am wahibhaq on github.
  • I am wahibhaq (https://keybase.io/wahibhaq) on keybase.
  • I have a public key whose fingerprint is E9FA E44B 8590 33A8 7A9B D585 0FD2 82B0 F238 F839

To claim this, I am signing this object:

@wahibhaq
wahibhaq / customfilerename
Created February 2, 2012 18:28
shellscripts
#This code will help in renaming multiple files in a folder in a specific format.
# e.g $ ./customfilerename test/ will convert all files to Image0, Image1, Image2 etc.
# folder: no trailing slash $1
folder=$1
index=0;
files=`ls -1 $folder`
for file in $files ; do