Skip to content

Instantly share code, notes, and snippets.

View sgswtky's full-sized avatar
🏠
Working from home

sgswtky sgswtky

🏠
Working from home
View GitHub Profile
package main
import (
"context"
"errors"
"fmt"
"log"
"math/rand"
"time"
package main
import (
"context"
"errors"
"fmt"
"log"
"github.com/aws/aws-lambda-go/lambda"
)
package main
import (
"context"
"errors"
"fmt"
"log"
"github.com/aws/aws-lambda-go/lambda"
)
package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"net/url"
package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"net/url"
@sgswtky
sgswtky / index.html
Created February 20, 2021 09:44
example frontned cognito
<!DOCTYPE html>
<html>
<body>
<script src="https://www.google.com/recaptcha/api.js?render=INPUT_YOUR_RECAPTCHA_TOKEN"></script>
<style type="text/css">
.container {font-size: 0;}
.box {display: inline-block; font-size: 16px; margin: 0 20px;}
</style>
<div class="container">
<div class="box">
@sgswtky
sgswtky / main.go
Created June 15, 2018 02:10
aws-sig-v4-s3-upload
package main
import (
"fmt"
"os"
"time"
"strings"
"crypto/hmac"
"encoding/hex"
"encoding/base64"