Skip to content

Instantly share code, notes, and snippets.

View ctalladen78's full-sized avatar

Cy Talladen ctalladen78

  • OstinatoRigore
View GitHub Profile
@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 / README.md
Created February 7, 2020 06:24 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@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 / 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 / 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
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();
}
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 / credit_card.dart
Last active June 24, 2020 05:22
Credit card style editor
// 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) {
@ctalladen78
ctalladen78 / intro.md
Created June 29, 2020 15:01
Linking to SVG files hosted on github

https://github.com/potherca-blog/StackOverflow/blob/master/question.13808020.include-an-svg-hosted-on-github-in-markdown/readme.md


permalink: /question.13808020.include-an-svg-hosted-on-github-in-markdown/index.html

Linking to SVG files hosted on github

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.