Skip to content

Instantly share code, notes, and snippets.

View Quingsley's full-sized avatar
🎯
Focusing

JEROME JUMAH Quingsley

🎯
Focusing
View GitHub Profile
@Quingsley
Quingsley / main.dart
Created September 1, 2022 12:06
bustling-gust-3556
import 'dart:math';
void main() {
final List<Transactions> transactions = [
Transactions(
'1', 'Shoes', 2500.34, DateTime.now()),
Transactions('3', 'Bag', 1500, DateTime.now()),
];
var id = Random().nextInt(100) + 900;
print(id);
@Quingsley
Quingsley / main.dart
Created September 10, 2022 04:23
jade-tundra-8183
void main() {
List<Meal> meals = [
Meal(
id: 'm1',
categories: [
'c1',
'c2',
],
title: 'Spaghetti with Tomato Sauce',
affordability: Affordability.affordable,
@Quingsley
Quingsley / main.dart
Last active September 30, 2022 08:48
course-upload-logic
import 'package:flutter/material.dart';
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
final course = Course(creatorId: '', courseTitle: '', courseDescription: '',
courseSection: []
@Quingsley
Quingsley / main.dart
Last active October 6, 2022 12:20
keen-charm-9348
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final graphQLQuery = {
"query": """mutation {
upsertSection(courseId: 1, topic: "work") {
id
courseId
topic
@Quingsley
Quingsley / main.dart
Created October 5, 2022 11:46
mutation
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final graphQLQuery = {
'query': '''mutation Mutation {
upsertCourse(classId: 1, title: "english", description:"fff" , creatorId: 1) {
id
@Quingsley
Quingsley / main.dart
Created October 10, 2022 09:19
queries
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final graphQLQuery = {
'query': '''query GetSections {
getSections {
id
@Quingsley
Quingsley / main.dart
Created October 10, 2022 09:39
queries
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final List<Section> sections = [];
final graphQLQuery = {
'query': '''query GetSections {
getSections {
id
@Quingsley
Quingsley / main.dart
Created October 10, 2022 13:14
queries
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final List<Section> sections = [];
final graphQLQuery = {
'query': '''query {
getSections(courseId: 16) {
id
@Quingsley
Quingsley / main.dart
Created October 10, 2022 13:34
ubiquitous-durian-3116
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() async{
final List<SubSection> subsections = [];
final graphQLQuery = {
'query': '''query {
getSubsections(courseId: 16, sectionId: 16) {
id
@Quingsley
Quingsley / main.dart
Last active October 24, 2022 04:36
players-game
//A group of twenty boys are in a football pitch and they want to play football.
//I want you to help me create a programme using python or any other programming
//language that will help me to break the group into two football teams each consisting of 10 players.
//The programme should first ask me to input the names of the two teams; the first team name then the second team name.
//Then after that, it should ask me to input the list of names of the twenty boys.
//After inputing these names, the programme should give me an output of the two final teams with the team name on top of a list of the 10 players
//of each team. The team players should be selected in the order of odd number and even number respectively according to the list of names that will be provided.
void main() {