Skip to content

Instantly share code, notes, and snippets.

Avatar
🇮🇳
DANGER : Do not see my profile.

Harsh Tripathi harsh-2024

🇮🇳
DANGER : Do not see my profile.
View GitHub Profile
View extracting_widget.dart
RoundedButton(Colors.cyan,
() => Navigator.pushNamed(context, LoginScreen.id), 'Login'),
RoundedButton(
Colors.blueAccent,
() => Navigator.pushNamed(context, RegistrationScreen.id),
'Register')
],
),
),
);
View getting data.dart
void getMessages() async {
final msgs = await _fireStore.collection('myMessages').get();
for (var msg in msgs.docChanges) {
print(msg.doc.data());
}
}
View gettingStreamsData.dart
void messagesStream() async {
await for (var snapshot
in _fireStore.collection('myMessages').snapshots()) {
for (var message in snapshot.docs) {
print(message.data());
}
}
}
View displayData.dart
import 'package:flutter/material.dart';
import 'api_networking.dart';
import 'main.dart';
Network network = Network();
void func() {
print(network.countryCapital);
print(network.countryName);
}
@harsh-2024
harsh-2024 / EveryoneLovesToSleep.cpp
Created September 17, 2022 08:14
This is the solution of the third question of the Reload22 Coding Contest
View EveryoneLovesToSleep.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--){
int n,h,m,done=0;
@harsh-2024
harsh-2024 / LCD_GCD.cpp
Created September 17, 2022 08:16
This is the solution of the first problem given in the Coding Contest of Reload22
View LCD_GCD.cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
int t; cin>>t;
while(t--) {
long long n; cin>>n;
long long ans = 0;
// pairs in which lcm/gcd=1
ans+=n;
View Rotate_array.cpp
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
void rev(int A[],int s, int e)
{
int i = s;
int j = e;
View Docker commands
sudo docker ps
sudo docker inspect <container_name>
sudo docker run --publish 5500:5500 <02_02_begin>