This file contains 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:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_midtrans/config/config.dart'; | |
import 'package:flutter_midtrans/helpers/utils.dart'; | |
import 'package:flutter_midtrans/screen_router.dart'; | |
import 'package:flutter_midtrans/widgets/common/button_widget.dart'; | |
import 'package:modal_progress_hud/modal_progress_hud.dart'; | |
import 'dart:io' show Platform; | |
import 'package:webview_flutter/webview_flutter.dart'; |
This file contains 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:flutter_midtrans/blocs/product/product_cubit.dart'; | |
import 'package:flutter_midtrans/blocs/product/product_state.dart'; | |
import 'package:flutter_midtrans/config/config.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:flutter_midtrans/data/models/product.dart'; | |
import 'package:flutter_midtrans/screen_router.dart'; | |
import 'package:flutter_midtrans/widgets/common/button_widget.dart'; | |
class HomeScreen extends StatefulWidget { |
This file contains 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
pragma solidity ^0.5; | |
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
contract Provable is ERC20 { | |
mapping(address => mapping(bytes32 => bool)) played; | |
mapping(address => uint) nonce; | |
// First 4 bytes of keccak-256 hash of "approve" |
This file contains 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
from django.utils import translation | |
from customer import utility | |
from rest_framework.decorators import api_view | |
from api.models import (Customer) | |
from rest_framework.parsers import JSONParser | |
from rest_framework import status | |
from django.http import JsonResponse | |
from .serializers import ( | |
CustomerSerializer, | |
) |
This file contains 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
package daos | |
import ( | |
"github.com/jinzhu/gorm" | |
"github.com/pkg/errors" | |
"github.com/trongdth/go_microservices/entry-store/models" | |
) | |
// User : struct | |
type User struct { |
This file contains 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
package servers | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"github.com/trongdth/go_microservices/entry-cache/daos" | |
"github.com/trongdth/go_microservices/entry-cache/services" |
This file contains 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
syntax = "proto3"; | |
package protobuf; | |
import "base.proto"; | |
service UserSrv { | |
rpc CreateUser (UserReq) returns (UserRes) {} | |
rpc ReadUser (UserReq) returns (UserRes) {} | |
} |
This file contains 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
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility that Flutter provides. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; |
This file contains 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_bloc_back4app/helpers/utils.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
void main() { | |
test('test email valid returns true', () { | |
/* | |
input: trongdth@gmail.com | |
expected: true | |
*/ |
This file contains 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
var fs = require('fs'); | |
var solc = require('solc'); | |
var ethers = require('ethers'); | |
var input = { | |
language: 'Solidity', | |
sources: { | |
'SecuredLoan.sol': fs.readFileSync('/Users/trongdth/Golang/src/github.com/mroom-software/blockpass-smart-contract/Ethereum/contracts/SecuredLoan.sol', 'utf-8') | |
} | |
} |
NewerOlder