The aim of Dart FFI project (tracked as Issue #34452) is to provide a low boilerplate, low ceremony & low overhead way of interoperating with native C/C++ code.
The motivation behind this project is twofold:
The aim of Dart FFI project (tracked as Issue #34452) is to provide a low boilerplate, low ceremony & low overhead way of interoperating with native C/C++ code.
The motivation behind this project is twofold:
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(ChartsDemoApp()); | |
| class ChartsDemoApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
| #!/usr/bin/env bash | |
| set -e | |
| cweb_version=0.6.16 | |
| cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz | |
| curl -Lo cargo-web.gz $cweb | |
| gunzip cargo-web.gz | |
| chmod u+x cargo-web |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "1.0", | |
| "title": "Cryptocompare", | |
| "description": "TODO: Add Description" | |
| }, | |
| "host": "min-api.cryptocompare.com", | |
| "basePath": "/", | |
| "schemes": [ |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "sync" | |
| "time" | |
| ) |
| // Example of using parsed command to generate flutter code | |
| var result = List<Code>(); | |
| final SvgPathStringSource parser = new SvgPathStringSource(svg); | |
| final SvgPathNormalizer normalizer = new SvgPathNormalizer(); | |
| var segments = parser.parseSegments(); | |
| for (PathSegmentData seg in segments) { | |
| result.addAll(normalizer.emitSegment(seg).map((c) => Code(_generateCommand(c).toString() + ";"))); | |
| } | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| //runApp(IOSApp()); | |
| //runApp(AndroidApp()); | |
| runApp(defaultTargetPlatform == TargetPlatform.iOS ? IOSApp() : AndroidApp()); | |
| } |
| #include <GraphDefDecryptor.hpp> | |
| ........ | |
| tensorflow::GraphDef graph; | |
| // Decryption: | |
| const std::string key = "JHEW8F7FE6F8E76W8F687WE6F8W8EF5"; | |
| auto status = tfsecured::GraphDefDecryptAES(path, // path to *.pb file (encrypted graph) | |
| graph, |
| // Copyright 2015 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; |
| # From my blog post: http://vict0rsch.github.io/2018/06/06/tensorflow-streaming-multilabel-f1/ | |
| import tensorflow as tf | |
| import numpy as np | |
| from tensorflow.python.ops import variable_scope | |
| from tensorflow.python.ops import array_ops | |
| from tensorflow.python.framework import ops | |
| from sklearn.metrics import f1_score | |