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:
package subs | |
import ( | |
"context" | |
"encoding/json" | |
"log" | |
"github.com/gorilla/websocket" | |
uuid "github.com/satori/go.uuid" | |
) |
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'; |