Skip to content

Instantly share code, notes, and snippets.

Avatar
😈
hmm

Arifullah Jan arifullahjan

😈
hmm
View GitHub Profile
View growth-tools-play.ts
/**
* Calculates table for
* @param size
*/
const calculateTable = (size: number): number[][] => {
const table = Array.apply(null, new Array(size)).map(() => []); // fill matrix
for (let i = 0; i < size; i++) {
for (let j = i; j < size; j++) {
@arifullahjan
arifullahjan / histogram-equalization.py
Last active Mar 23, 2019
Histogram Equalization in Python
View histogram-equalization.py
'''
Requirments:
python &
> pip install pillow
> pip install matplotlib
> pip install numpy
Run:
> python histogram-equalization.py path/to/image
'''
View test.py
'''
python task1.py path/to/input threshold-int
'''
import PIL
from PIL import Image
import itertools
import sys
@arifullahjan
arifullahjan / reusableHttpRequest.java
Created Sep 29, 2017
My way of doing same HTTP requests multiple times
View reusableHttpRequest.java
public class SignIn extends AsyncTask<String, Void, String> {
private static final String TAG = "SignIn";
String email;
String password;
//outputs
User user;
boolean successStatus=false;