Skip to content

Instantly share code, notes, and snippets.

View arifullahjan's full-sized avatar
😈
hmm

Arifullah Jan arifullahjan

😈
hmm
View GitHub Profile
/**
* 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 October 22, 2021 13:29
Histogram Equalization in Python
'''
Requirments:
python &
> pip install pillow
> pip install matplotlib
> pip install numpy
Run:
> python histogram-equalization.py path/to/image
'''
print('olalala')
'''
python task1.py path/to/input threshold-int
'''
import PIL
from PIL import Image
import itertools
import sys
@arifullahjan
arifullahjan / reusableHttpRequest.java
Created September 29, 2017 15:59
My way of doing same HTTP requests multiple times
public class SignIn extends AsyncTask<String, Void, String> {
private static final String TAG = "SignIn";
String email;
String password;
//outputs
User user;
boolean successStatus=false;