This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
{ | |
"@protected": true, | |
"@version": 1.1, | |
"id": "@id", | |
"type": "@type", | |
"BalanceCredential": { | |
"@context": { | |
"@propagate": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:polygonid_flutter_sdk/common/domain/domain_constants.dart'; | |
import 'package:polygonid_flutter_sdk/common/domain/entities/chain_config_entity.dart'; | |
import 'package:polygonid_flutter_sdk/common/domain/entities/filter_entity.dart'; | |
import 'package:polygonid_flutter_sdk/credential/domain/entities/claim_entity.dart'; | |
import 'package:polygonid_flutter_sdk/credential/domain/exceptions/credential_exceptions.dart'; | |
import 'package:polygonid_flutter_sdk/iden3comm/domain/entities/common/iden3_message_entity.dart'; | |
import 'package:polygonid_flutter_sdk/iden3comm/domain/entities/credential/request/offer_iden3_message_entity.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useRef, useState } from "react"; | |
import Avatar from "@mui/material/Avatar"; | |
import Axios from "axios"; | |
import { toast } from "react-toastify"; | |
import axios from "axios"; | |
import { useAuth } from "../../../../Utils/Auth"; | |
import { useHistory, useLocation } from "react-router-dom"; | |
import NotesModal from "../../Notes/CreateModal"; | |
import countries from "../../UserMap/countries.json"; | |
import Keywords from "../ProfileComponents/KeywordsBlock"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final plainText = 'laiba123@A'; | |
final key = Key.fromUtf8('kf;WtH}yb/zTo!H=9}DIoS?2{_V&b/md'); | |
final iv = IV.fromLength(16); | |
final encrypter = Encrypter(AES(key, mode: AESMode.ecb)); | |
final encrypted = encrypter.encrypt(plainText, iv: iv); | |
final decrypted = encrypter.decrypt(encrypted, iv: iv); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker ps | |
sudo docker inspect <container_name> | |
sudo docker run --publish 5500:5500 <02_02_begin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int t; | |
cin >> t; | |
while(t--){ | |
int n,h,m,done=0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'api_networking.dart'; | |
import 'main.dart'; | |
Network network = Network(); | |
void func() { | |
print(network.countryCapital); | |
print(network.countryName); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void messagesStream() async { | |
await for (var snapshot | |
in _fireStore.collection('myMessages').snapshots()) { | |
for (var message in snapshot.docs) { | |
print(message.data()); | |
} | |
} | |
} |
NewerOlder