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
Widget build(BuildContext context) { | |
return MPScaffold( | |
name: '滤芯之家', | |
body: Column( | |
children: [ | |
GridView.count( | |
shrinkWrap: true, | |
crossAxisCount: 3, | |
children: [ | |
GestureDetector( |
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/widgets.dart'; | |
import 'package:mpcore/mpcore.dart'; | |
class DynamoDetailScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MPScaffold( | |
body: Table( | |
defaultVerticalAlignment: TableCellVerticalAlignment.middle, | |
columnWidths: { |
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
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "Substrate API Sidecar", | |
"description": "Substrate API Sidecar is a REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.", | |
"contact": { | |
"url": "https://github.com/paritytech/substrate-api-sidecar" | |
}, | |
"license": { | |
"name": "GPL-3.0-or-later", |
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
/// | |
/// The module that hosts all the | |
/// [FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) | |
/// types needed to add this pallet to a | |
/// [runtime](https://substrate.dev/docs/en/knowledgebase/runtime/). | |
/// | |
pub mod pallet { | |
use frame_support::{dispatch::DispatchResult, pallet_prelude::*}; | |
use frame_system::pallet_prelude::*; | |
/// Configure the pallet by specifying the parameters and types on which it depends. |
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
/// | |
/// The module that hosts all the | |
/// [FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) | |
/// types needed to add this pallet to a | |
/// [runtime](https://substrate.dev/docs/en/knowledgebase/runtime/). | |
/// | |
pub mod pallet { | |
use frame_support::{log, pallet_prelude::*}; | |
use frame_system::{pallet_prelude::*, RawOrigin}; | |
use pallet_did as did; |
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
package main | |
import ( | |
"os" | |
"github.com/tomlazar/table" | |
) | |
func main() { | |
tab := table.Table{ |
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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html | |
Checkstyle is very configurable. Be sure to read the documentation at |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> | |
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> |
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
package controllers | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/project/db" | |
model "github.com/project/models" |
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
package api | |
import ( | |
"log" | |
"net/http" | |
"net/http/httptest" | |
"os" | |
"testing" | |
"github.com/gin-gonic/gin" |
NewerOlder