Skip to content

Instantly share code, notes, and snippets.

View ufe-pr's full-sized avatar

Ufedojo Atabo ufe-pr

View GitHub Profile
@ufe-pr
ufe-pr / main.dart
Last active May 4, 2020 22:27
30 days of code day 3 intermediate
import 'package:flutter/material.dart';
// Note: This is not responsive, doesn't look well on big screens
void main() {
runApp(MyApp());
}
@ufe-pr
ufe-pr / main.dart
Last active May 3, 2020 23:35
30 days of code day 3 mobile
void main() {
Map<String, int> chickAndGoat = countGoatChicken(20, 76);
print("There are ${chickAndGoat['goats']} goats and ${chickAndGoat['chickens']} chickens.");
}
Map<String, int> countGoatChicken(int heads, int legs) {
@ufe-pr
ufe-pr / main.dart
Created May 2, 2020 14:55
30 days of code day 2 mobile
void main() {
print(planetAge(631152000, 'mercury').toStringAsFixed(2));
}
// A map for holding the conversion values for each planet
const Map<String, double> PLANET_EARTH_DAYS = {
'earth': 365.25,
'mercury': 87.97,
@ufe-pr
ufe-pr / main.dart
Created May 1, 2020 21:44
30 days of code day 0 intermediate mobile
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 18, 27);
final Color cardColor = Color.fromARGB(255, 28, 28, 37);
final Color appBarColor = Color.fromARGB(255, 23, 23, 32);
void main() {
runApp(MyApp());
}
@ufe-pr
ufe-pr / main.dart
Created May 1, 2020 19:56
30 days of code day 1 mobile beginner
import 'dart:math';
void main() {
print(isArmstrong(9));
}
bool isArmstrong(int number) {
int numberCopy = number;
int sum = 0;

Keybase proof

I hereby claim: * I am ufe-pr on github. * I am ufedojo_cd (https://keybase.io/ufedojo_cd) on keybase. * I have a public key ASDCDOLqOqalKq4zVytxzOos6NKNiVyuU36snA85Haq0rQo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "0120b29f9a541c092df7b2d128b61e26b1e6960c255307b2636318b8e114f9b3fe800a",       "host": "keybase.io",       "kid": "0120c20ce2ea3aa6a52aae33572b71ccea2ce8d28d895cae537eac9c0f391daab4ad0a",       "uid": "587f51b7c8a8da6fa333fbb68f8d3819",       "username": "ufedojo_cd"     },     "merkle_root": {       "ctime": 1576941554,       "hash": "16e79de1b4f5aa7cfd69bf2edca743df5f214317f9f73e0efcd58b1c76b080c2fd2fdc2dd1072b08dce5502bb02f0ebf4a7fd3d648779e896673c76a1db7b0e0",       "hash_meta": "16bfda78ef0cdb82ec34c129d212fb8589a99bac00b1283d8dd0f9682bc8c596",       "seqno": 13880384     },     "service": {       "entropy": "f9pc6VKRgFqm37bCEkiHkpXy",       "name": "github",       "username": "ufe-pr"     },     "type": "web_se