Skip to content

Instantly share code, notes, and snippets.

View abdorll's full-sized avatar
🧑‍💻
Coding...

Abdullah Opadeji abdorll

🧑‍💻
Coding...
View GitHub Profile
@abdorll
abdorll / main.dart
Created April 26, 2022 22:31
Title: Side Hustle capstone project, Department: Mobile App Development, Group nō: 73, Group Leader: Opadeji Abdullah Ololade (SH-IT-0005487)
void main () {
scoreAndSubjectResult(60, "Physics");
scoreAndSubjectResult(80, "Chemistry");
}
scoreAndSubjectResult(score, subject){
SubjectAndScore subjectAndScore = SubjectAndScore();
@abdorll
abdorll / main.dart
Created April 27, 2022 08:15
🎯💻Title: Side Hustle capstone project, Department: Mobile App Development, Group nō: 73, Group Leader: Opadeji Abdullah Ololade (SH-IT-0005487)🎯💻
//Root of our application
void main () {
//Parsing subject and score vals as arguments of scoreAndSubjectResult method
scoreAndSubjectResult(60, "Physics");
scoreAndSubjectResult(80, "Chemistry");
}
//Give output of subject's score based on the val of the score
scoreAndSubjectResult(score, subject){
//Instance of SubjectAndScore class
@abdorll
abdorll / main.dart
Created August 19, 2022 18:50
hollow-eucalyptus-9972
import 'dart:math';
void main(){
int toAdd =0;
int add =bikes.fold(toAdd, (a,b)=> a + b.power!);
print(bikes.singleWhere((a)=> a.power!>7, orElse).name! );
// print (add);
// print(bikes.where((e)=>
// e.name!.contains('b')).
@abdorll
abdorll / main.dart
Created August 19, 2022 18:50
hollow-eucalyptus-9972
import 'dart:math';
void main(){
int toAdd =0;
int add =bikes.fold(toAdd, (a,b)=> a + b.power!);
print(bikes.singleWhere((a)=> a.power!>7, orElse).name! );
// print (add);
// print(bikes.where((e)=>
// e.name!.contains('b')).
@abdorll
abdorll / main.dart
Created August 8, 2023 02:07
glistening-waterfall-8952
void main() {
// Create a string and an element.
String string = "hello";
String element = "l";
// Create a list to store the element.
List<String> list = [];
// Append the element to the list 4 times.
for (int i = 0; i < 4; i++) {
@abdorll
abdorll / main.dart
Last active August 12, 2023 21:53
UML Design to Code - MASL [Opadeji Abdullah]
//==============================================RUN AT======================
//=======================================https://dartpad.dev/===============
void main() {
GroupManager men = GroupManager();
men.name = "Men";
men.createGroup();
men.updateGroup();
men.deleteGroup();
GroupManager women = GroupManager();
//=================COPY AND PASTE ONLY THIS BLOCK TO LEETCODE TO RUN=========
//=====================SELECT DART AS THE LANGUAGE BEFORE YOU RUN===========
class Solution {
int search(List<int> nums, int target) {
int value =nums.indexOf(target);
print(value);
return value;
}
}
// Import the 'dart:math' library to access mathematical functions.
import 'dart:math';
void main() {
// ==================BASIC USAGE
double height = 190.5; // Declare and initialize a double variable with a decimal value.
double weight = 78.2;
double temperature = 25.3;
double? distance; // Nullable double variable.
distance = 42.0;
@abdorll
abdorll / main.dart
Last active December 3, 2023 13:51
double in dart example
// Import the 'dart:math' library to access mathematical functions.
import 'dart:math';
void main() {
// ==================BASIC USAGE
double height = 190.5; // Declare and initialize a double variable with a decimal value.
double weight = 78.2;
double temperature = 25.3;
double? distance; // Nullable double variable.
distance = 42.0;
void main() {
// ==================BASIC USAGE 1.
String singleQ = 'Single quotes';
String doubleQ ="Double quotes";
String doubleQtInSingQt = 'Double quotes in "single" quotes';
String singleQtInDblQt = "Single quotes in 'double' quotes";
String multilineOne='''A
multiline