Skip to content

Instantly share code, notes, and snippets.

View RakibOFC's full-sized avatar
😐
Available

Rakibul Islam RakibOFC

😐
Available
View GitHub Profile
@krishnan793
krishnan793 / Dec2Hex.c
Last active January 11, 2020 03:50
Decimal to Hex Conversion using recursion.
#include<stdio.h>
void Dec2Hex(int no){
int hex=0;
if(!no)
return;
else {
hex=no%16;
Dec2Hex(no/16);
}
@tsuharesu
tsuharesu / AddCookiesInterceptor.java
Last active June 8, 2024 07:30
Handle Cookies easily with Retrofit/OkHttp
/**
* This interceptor put all the Cookies in Preferences in the Request.
* Your implementation on how to get the Preferences MAY VARY.
* <p>
* Created by tsuharesu on 4/1/15.
*/
public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
@nikhiljha
nikhiljha / AddCookiesInterceptor.java
Created July 29, 2016 04:35
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
// Original written by tsuharesu
// Adapted to create a "drop it in and watch it work" approach by Nikhil Jha.
// Just add your package statement and drop it in the folder with all your other classes.
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
import java.io.IOException;
import java.util.HashSet;
#define WINVER 0x0500
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
#include <windows.h>
int m, n, i, j, r = 2, r2 = 0, c = 2, len, option, size = 12;
char ch1, ch2;
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int quicksort(int a[], int first, int last)
{
int i, j, pivot, temp;
if(first < last)
{