Skip to content

Instantly share code, notes, and snippets.

View mjm918's full-sized avatar
🍻
Code & Chill

Mohammad Julfikar mjm918

🍻
Code & Chill
View GitHub Profile
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="PATH_TO_vimigo.php" method="get">
<input type="text" name="date_from" value="2019-01-10">
<input type="text" name="date_to" value="2019-02-22">
@mjm918
mjm918 / XMLHttpRequest.js
Last active March 1, 2019 03:47
Vimigo Code Samples
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(JSON.stringify(this.responseText));
}
};
xhttp.open("GET", "LINK_TO_EASYTECH_API?date_from=2019-01-10&date_to=2019-02-22&auth=TOKEN", true);
xhttp.send();
@mjm918
mjm918 / sync.js
Created March 1, 2019 03:56
Xilnex sync
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(JSON.stringify(this.responseText));
}
};
xhttp.open("GET", "LINK_TO_EASYTECH_API?auth=TOKEN", true);
xhttp.send();
@mjm918
mjm918 / DownloadManager.h
Created May 22, 2019 05:01
Handy solution to *joltup/rn-fetch-blob* iOS parallel download broken problem
//
// DownloadManager.h
//
// Created by Mohammad Julfikar on 22/05/2019.
// Copyright © 2019 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
@mjm918
mjm918 / CreateImage.h
Created September 11, 2019 02:35
React Native iOS Watermark
//
// CreateImage.h
// Created by Mohammad Julfikar on 28/06/2019.
// Copyright © 2019 Facebook. All rights reserved.
//
#import "RCTBridgeModule.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@mjm918
mjm918 / CreateImage.java
Created September 11, 2019 02:37
React Native Android watermark
public class CreateImage extends ReactContextBaseJavaModule {
private String finalPath = "";
private ReactApplicationContext reactApplicationContext = null;
public CreateImage(ReactApplicationContext reactContext) {
super(reactContext);
this.reactApplicationContext = reactContext;
}
@mjm918
mjm918 / Banner.h
Last active September 11, 2019 13:19
React Native Banner View (Android & iOS native module)
//
// Banner.h
//
// Created by Mohammad Julfikar on 08/09/2019.
// Copyright © 2019 Facebook. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@mjm918
mjm918 / class.CreateReadUpdate.php
Last active April 3, 2020 11:49
PHP MySQL Object Oriented Programming
<?php
require_once(dirname(__FILE__).'/class.MySQL.php');
class CreateReadUpdate extends MySQL{
public function __construct(){
parent::__construct();
}
@mjm918
mjm918 / client.py
Created December 15, 2018 09:56
Python socket programming AES CBC encryption
import socket
import os
import threading
import hashlib
from Crypto import Random
import Crypto.Cipher.AES as AES
from Crypto.PublicKey import RSA
import signal
from lazyme.string import color_print
@mjm918
mjm918 / Android-ImageColorsModule.java
Created July 4, 2022 07:40
React-Native Image Swatches / Color
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.util.Base64;
import androidx.annotation.NonNull;
import androidx.palette.graphics.Palette;
import com.bumptech.glide.Glide;