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 { SigningStargateClient } from "@cosmjs/stargate"; | |
import { | |
OfflineSigner, | |
OfflineDirectSigner, | |
DirectSecp256k1HdWallet, | |
} from "@cosmjs/proto-signing"; | |
const rpc = "https://rest-fetchhub.fetch.ai:443"; | |
const address = "fetch17zr49k6tmcz7eezxgl7x0pfxa9e92h7lfw657k"; | |
async function delegateTo(delegatorAddress, validatorAddress, coin) { |
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:html'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
window.document.onContextMenu.listen((evt) => evt.preventDefault()); | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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/rendering.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MouseRegionApp()); | |
} | |
class MouseRegionApp extends StatelessWidget { |
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
[build] | |
# The relative path to the directory to be published | |
publish = "build/web" | |
# Our Flutter Web build command | |
command = "if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && flutter/bin/flutter config --enable-web && flutter/bin/flutter build web" |
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'; | |
class TWColor extends ColorSwatch<int> { | |
/// Creates a color swatch with a variety of shades. | |
/// | |
/// The `primary` argument should be the 32 bit ARGB value of one of the | |
/// values in the swatch, as would be passed to the [new Color] constructor | |
/// for that same color, and as is exposed by [value]. (This is distinct from | |
/// the specific index of the color in the swatch.) | |
const TWColor(int primary, Map<int, Color> swatch) : super(primary, swatch); |
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'; | |
class Destination { | |
final Widget widget; | |
final Icon icon; | |
final Text title; | |
Destination( | |
{@required this.widget, @required this.icon, @required this.title}); |
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'; | |
Map<String, Map<String, String>> colors = { | |
/* | |
"transparent": "transparent", | |
"white": "#ffffff", | |
"black": "#000000", | |
*/ | |
"gray": { | |
"50": "#f9fafb", |
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 'dart:math'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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 json | |
import pandas as pd | |
df = pd.read_csv('file.csv', header=0, sep=';') | |
data = json.loads(df.to_json(orient='records')) | |
# collection.insert(data) |
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
04cc77a20028d963f1338fdd8b2734b4b3fba89ed5c8df72c4c575f3a093c2917b6cc7711704a3d71dee865669722ef5cedeb4b56c558c022b5dff6b6b80fdd76e;romanornr |