Skip to content

Instantly share code, notes, and snippets.

View lovisgod's full-sized avatar
💭
Busy building Payble

OLOSUNDE AYOOLUWA lovisgod

💭
Busy building Payble
View GitHub Profile
@lovisgod
lovisgod / docker-help.md
Created August 3, 2019 14:06 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@lovisgod
lovisgod / add.js
Created January 6, 2020 11:08 — forked from OlegLustenko/add.js
Adding big numbers JavaScript (from codewars.com)
function add (a, b) {
let res = '', c = 0
a = a.split('')
b = b.split('')
while (a.length || b.length || c) {
c += ~~a.pop() + ~~b.pop()
res = c % 10 + res
c = c > 9
}
return res

if a user registers, he has a referer. a referer can only get two direct down-lines. a user must have six down-lines to complete stage one. a registered user is related to one direct up-line. how do we get all down-lines that are not directly under a user but related to the user.

example

a = b, c

b = d, f

c = e, g

@lovisgod
lovisgod / MainActivity.java
Created July 14, 2020 17:21 — forked from granoeste/MainActivity.java
[Android] Button background change for state. (selector)
package com.example.sellectorsample;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends Activity implements OnClickListener {
@lovisgod
lovisgod / greener_privacy.md
Created September 22, 2020 08:50
GreenerBrains Privacy Policy

Privacy Policy

GreenerBrains built the GreenerBrains app as a Free app. This SERVICE is provided by GreenerBrains at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at GreenerBrains unless otherwise defined in this Privacy Policy.

@lovisgod
lovisgod / GitConfigHttpProxy.md
Created June 29, 2021 09:03 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@lovisgod
lovisgod / APDUList.txt
Created November 20, 2023 12:33 — forked from hemantvallabh/APDUList.txt
APDU list
Cheef's Grand APDU List Smartcard Selected Information APDU list
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info
#------------+------------------------+------------------------+----------------------+--------------------------------+
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description |
+------------+------------------------+------------------------+----------------------+--------------------------------+
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE |
+------------+------------------------+------------------------+----------------------+--------------------------------+
@lovisgod
lovisgod / .md
Created October 21, 2024 09:40
Payble Minipos SDK documentation

Payble QPOS SDK Integration Documentation

The Payble QPOS SDK allows for seamless integration of QPOS device functionalities into your Android application. Below are the steps to integrate and use the SDK effectively:

1. Initialize the Payble QPOS SDK

In your Application class, initialize the SDK using the initPayble method:

class SampleApplication : Application() {