Skip to content

Instantly share code, notes, and snippets.

View wizmea's full-sized avatar

Arcadius TCHOKPODO wizmea

View GitHub Profile
@wizmea
wizmea / topic_en.md
Last active March 11, 2025 09:37
An ASIN take-home challenge 🙂

ASIN take-home challenge

The goal is to build a small application to show off your skills at production quality level code. You can write it in any language (preference for NodeJs or Java) and it should only take one day (we can trust in you🙂).

The Scenario

A ministry makes available a list of several people who are manually recorded in a xlsx file format. This list must be saved in a relational database in less than 20 minutes so that it can be consulted by a supervisory committee.

Your job is to create a unix-friendly command line application that performs this action.

@wizmea
wizmea / nodejs_java_encrypt_decrypt_128.js
Created October 6, 2021 19:31 — forked from luizwbr/nodejs_java_encrypt_decrypt_128.js
Encrypt and Decrypt using 128 for Nodejs or Javascript that actually works
// None of the tutorals could help me, so I adapted a few codes.
// What I really want is make a full duplex way between NodeJS and Java, using encrypt/decrypt with AES 128 bit
// 1 - you must have to generate the key
openssl enc -aes-128-cbc -k secret -P -md sha1
// key examples:
// DCDD74627CD60252E35DFBA91A4556AA
// 2CB24CFDB3F2520A5809EB4851168162
// 468CA14CA44C82B8264F61D42E0E9FA1
@wizmea
wizmea / kkiapay.sample.dart
Last active May 7, 2020 11:23
KkiaPay Flutter Module
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
import 'kkiapayConf.sample.dart';
class KKiaPay extends StatefulWidget {
int _amount;
String _phone;
@wizmea
wizmea / counter.dart
Created December 6, 2019 09:47
Counter app flutter+ mobx sample
#get started
@wizmea
wizmea / bold_string.kt
Last active August 14, 2019 15:35
[Kotlin] bold format string temple with args
/*
string ressource
<string name="app_bold_arg">Bonjour &lt;b>%s&lt;/b></string>
*/
val text = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Html.fromHtml(getString(R.string.app_bold_arg, "Arcadius"),
Html.FROM_HTML_MODE_LEGACY)
} else {
Html.fromHtml(getString(R.string.app_bold_arg, "Arcadius"))
@wizmea
wizmea / BaseRecyclerViewAdapter.kt
Last active August 30, 2018 12:18
Base Template for RecyclerView with it own adapter with databinding
class BaseRecyclerViewAdapter<BIND: ViewDataBinding>(val ressource: Int,val variableId: Int) : RecyclerView.Adapter<BaseRecyclerViewAdapter<BIND>.Holder>() {
private var layoutInflater: LayoutInflater? = null
private var items: MutableList<Any> = ArrayList()
private lateinit var callback: (data: Any) -> Unit
constructor(ressource: Int,variableId: Int,items: MutableList<Any>) : this(ressource, variableId){
this.items = items
}
@wizmea
wizmea / Downloader.kt
Created August 28, 2018 10:42
Download any file with retrofit rxjava and okio
interface ApiService {
@GET("api/apk-download/5b84691a312bdc094694cada")
fun download(@Query("access-token") token: String): Observable<Response<ResponseBody>>
}
//initialize api service with retrofit
fun download(service: ApiService,id: String) {
service.download(id)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
@wizmea
wizmea / event.java
Created April 10, 2018 20:10
Add event to agenda (android app)
public class Agenda {
AppCompatActivity context;
ViewGroup viewGroup;
DemandeRdv demandeRdv;
Action listener;
public Agenda(AppCompatActivity context, ViewGroup viewGroup) {
this.context = context;
this.viewGroup = viewGroup;
@wizmea
wizmea / RSACipher.java
Created February 14, 2018 00:02 — forked from awesometic/RSACipher.java
RSA encryption example for android
/**
* Created by Awesometic
* It's encrypt returns Base64 encoded, and also decrypt for Base64 encoded cipher
* references: http://stackoverflow.com/questions/12471999/rsa-encryption-decryption-in-android
*/
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
@wizmea
wizmea / hide.java
Created October 17, 2017 08:21
Hide status bar
public class hide{
public void maker(){
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().requestFeature(Window.FEATURE_NO_TITLE);
//for hide status bar
WindowManager manager = ((WindowManager) getApplicationContext()
.getSystemService(Context.WINDOW_SERVICE));
WindowManager.LayoutParams localLayoutParams = new WindowManager.LayoutParams();