Skip to content

Instantly share code, notes, and snippets.

View youngToMaturity's full-sized avatar
🍏

Young Soo Hwang youngToMaturity

🍏
View GitHub Profile
@StarWars
StarWars / AmazonS3Upload.swift
Last active May 26, 2023 08:28
HTTP upload to S3 using Swift and Alamofire 4+
class S3UploadCredentials: NSObject {
var bucketUrl: String
var key: String
var acl: String
var credential: String
var date: String
var algorithm: String
var policy: String
var signature: String
@niw
niw / fetch_nike_puls_all_activities.bash
Last active April 10, 2024 08:48
A simple NikePlus API description to fetch past run metrics
#!/usr/bin/env bash
# fetch_nike_puls_all_activities.bash
# A simple bash script to fetch all activities and metrics from NikePlus.
# See `nike_plus_api.md` for the API details.
readonly bearer_token="$1"
if [[ -z "$bearer_token" ]]; then
echo "Usage: $0 bearer_token"
exit