Skip to content

Instantly share code, notes, and snippets.

View ctalladen78's full-sized avatar

Cy Talladen ctalladen78

  • OstinatoRigore
View GitHub Profile
@ctalladen78
ctalladen78 / gist:c0ed5ac376a0420105c33d726a6c5dff
Created August 8, 2018 09:27 — forked from aodin/gist:9493190
Parsing JSON in a request body with Go
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
)
type Message struct {
@ctalladen78
ctalladen78 / Google Spreadsheet.js
Created August 13, 2018 02:36 — forked from iaincollins/Google Spreadsheet.js
Example Node.js code to append to a Google Spreadsheet every hour
/**
* Append data to a Google Spreadsheet
*
* You will need a file called '.env' with the following values:
*
* - GOOGLE_ID (Google oAuth Client ID)
* - GOOGLE_SECRET (Google oAuth Client Secret)
* - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token)
* - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID)
*
@ctalladen78
ctalladen78 / wizard_form.dart
Last active January 14, 2021 13:22
Implement a form wizard form
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: VerticalForm(),
),
@ctalladen78
ctalladen78 / jolly-atom-3135.dart
Created January 5, 2019 03:23
dart / flutter http post request using typiform api
import 'dart:convert';
import 'dart:async';
import 'package:http/http.dart' as http;
// https://pub.dartlang.org/packages/http
Future<null> postData () async {
var client = new http.Client();
# setting path for brew nvm
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
# [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && .
# "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion
# setting path for aqueduct from dart pub
export PATH=$PATH:$HOME/.pub-cache/bin
@ctalladen78
ctalladen78 / jwt_golang_example.go
Created August 4, 2019 06:59 — forked from thealexcons/jwt_golang_example.go
JSON Web Tokens in Go
package main
import (
"io/ioutil"
"log"
"strings"
"net/http"
"encoding/json"
"fmt"
"time"
@ctalladen78
ctalladen78 / microVC.csv
Created December 13, 2019 03:20 — forked from ZeccaLehn/microVC.csv
Micro VC CSV
Firm Name Investment Sector Location (City) Investment Stage URL
1776 Technology, Health, Transportation, Energy, Education Washington, D.C. Early Stage Venture, Seed https://www.1776.vc/
11.2 Capital Healthcare, Security, Finance San Francisco, CA Early Stage, Seed http://www.112capital.com/
122 West Ventures Information Technology, Telecoms, Media, and Communications San Francisco, CA Early Stage 122west.vc/
1517 Fund Clean Technology, Consumer Discretionary, Healthcare, Industrials, Information Technology, Telecoms, Media, and Communications San Francisco, CA Early Stage: Seed, Early Stage: Start-up www.1517fund.com
1confirmation Financial Services San Francisco, CA Early Stage Venture, Seed www.1confirmation.com
3Rodeo Business Services, Information Technology, Telecoms, Media, and Communications Los Angeles, CA Early Stage, Early Stage: Seed www.3rodeo.com
4490 Ventures Technology, Financial Services, Agriculture, Education Madison, WI Early Stage Venture, Seed http:
# serverless.yml
service:
name: myService
awsKmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash # Optional KMS key arn which will be used for encryption for all functions
frameworkVersion: ">=1.0.0 <2.0.0"
provider:
name: aws
@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
@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.