Skip to content

Instantly share code, notes, and snippets.

View akacokafor's full-sized avatar

Akachukwu Okafor akacokafor

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >

Write a java application that when provided a url and an email address, would generate a pdf with the contents of the url and send the generated pdf to the provided email address.

For example if I start the program, it would ask me for the url I want to generate pdf for and ask for the destination email address, then it would go ahead to generate the pdf and send the pdf to the provided email address.

An example of how the program could be execute would be thus:

java url2pdf.jar
Enter url:

Task: Custom's Questionnaire processing

You are in a flight with lots of other people, everyone in the flight is divided into groups, where a group can have from 1 to Any number of persons. You happen to be in a group all by your self - your group is made up of just you.

As your flight approaches the destination airport where you'll switch to a much larger plane, customs declaration forms are distributed to all passengers.

The form asks a series of 26 yes-or-no questions marked a through z. Each group has to identify the questions for which anyone in the group answers "yes". Since your group is just you, this doesn't take very long for you to finish.

However, the person sitting next to you seems to be experiencing a language barrier and asks if you can help their group. For each of the people in their group, you write down the questions for which they answer "yes", one per line. For example:

@akacokafor
akacokafor / flutterwave_3DES-24_encrypt.go
Created July 4, 2019 22:15
A GoLang Implementation of the Correct 3DES Encryption for Flutterwave's Rave Charge endpoint
package crypto
import (
"bytes"
"crypto/des"
b64 "encoding/base64"
"github.com/pkg/errors"
)
func TripleDesEncrypt(data, key []byte) (string, error) {
...
return Container(
padding: EdgeInsets.only(top: deviceStatusBarHeight),
height: barHeight + deviceStatusBarHeight,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.black,
Colors.grey[800],
],
...
return Container(
padding: EdgeInsets.only(top: deviceStatusBarHeight),
height: barHeight + deviceStatusBarHeight,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.black,
Colors.grey[800],
],
import 'package:flutter/material.dart';
class ForbesAfricaCreatives extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
color: Colors.grey[800],
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
class GradientAppBar extends StatelessWidget {
final String title;
final double barHeight = 66.0;
GradientAppBar(this.title);
@override
Widget build(BuildContext context) {
final double deviceStatusBarHeight = MediaQuery.of(context).padding.top;
final double deviceStatusBarHeight = MediaQuery.of(context).padding.top;
...
child: Center(
child: Text(
this.title,
style: TextStyle(
color: Colors.white,
fontFamily: 'Poppins',
fontWeight: FontWeight.w600,
fontSize: 26.0,
),