Skip to content

Instantly share code, notes, and snippets.

View ushios's full-sized avatar
🎵
Chuck Berry - Johnny B. Goode

Shugo USHIO ushios

🎵
Chuck Berry - Johnny B. Goode
View GitHub Profile
@ushios
ushios / gist:d3f209430a1813b91bf92da32720d64f
Created October 14, 2021 08:33
Create amplify-js-sample env
echo "
USERNAME=
PASSWORD=
# Cognito Info
IDENTITY_POOL_ID=
USER_POOL_ID=
APP_CLIENT_ID=
ORION_ENDPOINT=
" > .env
@ushios
ushios / download_json.sh
Created September 25, 2017 09:31
Download json with format in bash.
#!/bin/bash
list=(
"http://example.com/where.json"
"http://example.com/some.json"
)
function download() {
for i in $@; do
file="./${dir}/$(basename ${i})"
@ushios
ushios / index.html
Created March 30, 2017 04:56
Base64 encoding using javascript on form file
<html>
<head>
<title>base64test</title>
</head>
<form>
<input id="file" type="file" />
</form>
<input id="button" type="button" value="encode"/>
<br />