Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| // https://github.com/jonsaw/amazon-cognito-identity-dart/blob/master/example/lib/main.dart | |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:flutter/material.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| import 'package:amazon_cognito_identity_dart/cognito.dart'; | |
| import 'package:amazon_cognito_identity_dart/sig_v4.dart'; |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
Simple list of SEO tags to use on Hugo sites directly
| package main | |
| // using asymmetric crypto/RSA keys | |
| import ( | |
| "crypto/rsa" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
| 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 { |
| /** | |
| * Calculate the center/average of multiple GeoLocation coordinates | |
| * Expects an array of objects with .latitude and .longitude properties | |
| * | |
| * @url http://stackoverflow.com/a/14231286/538646 | |
| */ | |
| function averageGeolocation(coords) { | |
| if (coords.length === 1) { | |
| return coords[0]; | |
| } |
| // https://dartpad.dartlang.org/b5023ea8d7530a696b6b85ca56b86c9a | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(AnimatedContainerApp()); | |
| class AnimatedContainerApp extends StatefulWidget { | |
| @override | |
| _AnimatedContainerAppState createState() => _AnimatedContainerAppState(); | |
| } |
| import 'package:flutter/material.dart'; | |
| // https://github.com/AlexanderArendar/overflow/blob/master/lib/main_simpler.dart | |
| // https://db.fortnitetracker.com/maps | |
| // https://media.fortniteapi.io/images/map.png | |
| // https://github.com/qlaffont/fortnite-api | |
| // https://dartpad.dartlang.org/869b643017bacfde064acac32f33fd13 | |
| class PicturePanZoomComponent extends StatefulWidget { | |
| const PicturePanZoomComponent({Key key}) : super(key: key); |
| // https://dartpad.dartlang.org/1a5cf346acdf08979574adabdd3d59db | |
| import 'package:flutter/material.dart'; | |
| import 'dart:math'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
https://github.com/potherca-blog/StackOverflow/blob/master/question.13808020.include-an-svg-hosted-on-github-in-markdown/readme.md
The purpose of raw.github.com is to allow users to view the contents of a file, so for text based files (SVG, JS, CSS, etc) this means you get the wrong headers and things break in the browser.