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
| 'use strict'; | |
| const { WorkloadModuleBase } = require('@hyperledger/caliper-core'); | |
| class MyWorkload extends WorkloadModuleBase { | |
| constructor() { | |
| super(); | |
| } | |
| async initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext) { |
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
| test: | |
| name: basic-contract-benchmark | |
| description: A test benchmark | |
| workers: | |
| type: local | |
| number: 5 | |
| rounds: | |
| - label: createAsset | |
| description: Create asset benchmark | |
| txNumber: 1000 |
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
| name: Caliper test | |
| version: "2.0.0" | |
| caliper: | |
| blockchain: fabric | |
| sutOptions: | |
| mutualTls: true | |
| channels: | |
| - channelName: mychannel |
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
| async signUp() { | |
| try { | |
| let signupRes = await this.supabase.signUp(this.signUpForm.value.email, this.signUpForm.value.password); | |
| let profile = await this.supabase.createProfile(signupRes.user.id, this.signUpForm.value.name); | |
| } catch (error) { | |
| console.error(error); | |
| } | |
| } |
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 { Injectable } from '@angular/core'; | |
| import { AuthChangeEvent, createClient, Session, SupabaseClient } from '@supabase/supabase-js'; | |
| import { environment } from "../environments/environment"; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class SupabaseService { |
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
| echo "Stating rabbit-1" | |
| docker run -d --rm --net rabbits \ | |
| -v ${PWD}/config/rabbit-1/:/config/ \ | |
| -e RABBITMQ_CONFIG_FILE=/config/rabbitmq \ | |
| -e RABBITMQ_ERLANG_COOKIE=ETOBVBEFXUPGETFECHSQ \ | |
| --hostname rabbit-1 \ | |
| --name rabbit-1 \ | |
| -p 8081:15672 \ | |
| rabbitmq:3.8-management |
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
| # docker-compose-orderer.yaml | |
| version: "2" | |
| volumes: | |
| orderer2.example.com: | |
| networks: | |
| test: | |
| services: |
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
| // details_view.dart | |
| import 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| class DetailsView extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text('DetailsView'), |
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 'package:get/get.dart'; | |
| class HomeController extends GetxController { | |
| var selectedLanguage = Get.locale.languageCode.obs; | |
| set changeLanguage(String lang) { | |
| Locale locale = new Locale(lang); | |
| Get.updateLocale(locale); | |
| selectedLanguage.value = lang; |
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 'package:get/get.dart'; | |
| import 'package:getx_translation/app/modules/home/controllers/home_controller.dart'; | |
| import '../../../translation/langauges.dart'; | |
| class HomeView extends StatelessWidget { | |
| final HomeController _controller = Get.find<HomeController>(); | |
| @override | |
| Widget build(BuildContext context) { |