Skip to content

Instantly share code, notes, and snippets.

View ctalladen78's full-sized avatar

Cy Talladen ctalladen78

  • OstinatoRigore
View GitHub Profile
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);
@ctalladen78
ctalladen78 / main.dart
Last active March 26, 2020 02:39
flutter animated color picker
// 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();
}
@ctalladen78
ctalladen78 / average-geolocation.js
Created March 20, 2020 12:05 — forked from tlhunter/average-geolocation.js
Calculate the center/average of multiple GeoLocation coordinates
/**
* 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];
}
@ctalladen78
ctalladen78 / main.dart
Created March 17, 2020 09:21
flutter carousel demo
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 {
@ctalladen78
ctalladen78 / asymmetric.go
Created February 13, 2020 03:49 — forked from cryptix/LICENSE
example of using JWT for http authentication in go
package main
// using asymmetric crypto/RSA keys
import (
"crypto/rsa"
"fmt"
"io/ioutil"
"log"
"net/http"
@ctalladen78
ctalladen78 / README.md
Created February 7, 2020 06:24 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@ctalladen78
ctalladen78 / main.dart
Created February 1, 2020 10:59
flutter example using aws cognito identity jwt
// 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';
@ctalladen78
ctalladen78 / intro.md
Last active January 31, 2024 17:37
Golang, AWS SDK, Cognito and API Gateway

https://benincosa.com/?p=3714

The situation is as follows:

Create an application with the serverless framework. This uses API Gateway, Lambda, and all kinds of cool stuff. Authenticate on the application using Cognito. Write a client that can call the API created by API gateway in Go. Steps 1-2 are covered everywhere on the internet. My favorite reference is this serverless stack tutorial. It is gold and covers so much.

@ctalladen78
ctalladen78 / README.md
Created December 27, 2019 04:53 — forked from alsmola/README.md
Using session policies to limit IAM role access

Session Policy Example

First, upload test files to an S3 bucket you control (replace YOUR_BUCKET_NAME) in two directories representing isolated namespaces (123 and 124).

echo "123" > test.txt
aws s3 cp test.txt s3://YOUR_BUCKET_NAME/123/test.txt
echo "124" > test.txt
aws s3 cp test.txt s3://YOUR_BUCKET_NAME/124/test.txt