Skip to content

Instantly share code, notes, and snippets.

View Adesubomi's full-sized avatar
🎯
Focusing

Oniya Adesubomi Daniel Adesubomi

🎯
Focusing
  • Lagos, Nigeria.
View GitHub Profile
@Adesubomi
Adesubomi / assessement-001.md
Created February 14, 2024 13:22
Recruitment Test (Go) - Dice game

Build a simple dice game Rest API

In this exercise, we would be building a simple dice game in Go.

When a game is started, a commitment fee of 12 sats (satoshis) is deducted from the user’s wallet, and a number is generated randomly between 2 and 12 and stored. This number should be visible to the user.

After a game has been started, the user is allowed to roll a dice (twice for every session), and the result of both dice rolls is summed up. If the sum of the 2 numbers (in this session) is equal to the number generated at game start-up, the user wins 16 sats.

The user can roll dice as many times as he wants in a single game; however, the user is charged 3 sats at the beginning of every 2 dice rolls.

@Adesubomi
Adesubomi / mail-template-sample.json
Last active May 19, 2023 13:53
This is a sample of what a sample template should look like
{
"template": {
"subject": "Welcome to your Recruitment test",
"bannerImageUrl": "https://images.google.com/xhihild-fdkf.png",
"showSocialCampaign": true,
"body": [
{
"component": "title",
"text": "YOU'VE JUST BEEN GIFTED!",
"align": "center"
Url
/v1/sofa/wallets/454783/addresses
Post Body
{count: 1, labels: [“customer-a”]}
Curl request
============
curl -X POST -H "Content-Type: application/json" \
-d '{"count":2,”labels”:[“customer-a”]}' \
@Adesubomi
Adesubomi / laravel sail dockerfile sample
Created July 15, 2022 15:55
laravel sail dockerfile sample
FROM ubuntu:21.04
LABEL maintainer="Taylor Otwell"
ARG WWWGROUP
ARG NODE_VERSION=16
WORKDIR /var/www/html
ENV DEBIAN_FRONTEND noninteractive
@Adesubomi
Adesubomi / gutter-spacing.css
Created March 16, 2017 17:20
margins and padding
.m-t-1 { margin-top: 10px; }
.m-t-2 { margin-top: 20px; }
.m-t-3 { margin-top: 30px; }
.m-t-4 { margin-top: 40px; }
.m-t-5 { margin-top: 50px; }
.m-b-1 { margin-bottom: 10px; }
.m-b-2 { margin-bottom: 20px; }
.m-b-3 { margin-bottom: 30px; }
.m-b-4 { margin-bottom: 40px; }