This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/base64" | |
| "fmt" | |
| "strings" | |
| ) | |
| // function, which takes a string as | |
| // argument and return the reverse of string. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'dart:developer'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| import '../../api/get_api.dart'; | |
| import '../../config.dart'; | |
| import '../../widgets/custom_dialog.dart'; | |
| import 'package:webview_flutter/webview_flutter.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build: | |
| go mod tidy | |
| GOOS=linux GOARCH=amd64 go build -o ./main ./main.go | |
| zip -j ./main.zip ./main | |
| rm ./main | |
| clean: | |
| rm main.zip | |
| rm main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "github.com/aws/aws-lambda-go/events" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| "github.com/aws/aws-sdk-go/aws" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import { CEHCK_APIKEY_ENDPOINT } from "../config/auth"; | |
| import { signedRequest } from "../signedRequest"; | |
| export async function checkApikey(credentials, apikey) { | |
| return signedRequest( | |
| "GET", | |
| CEHCK_APIKEY_ENDPOINT + `?key=${apikey}`, | |
| null, | |
| credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.16-alpine as builder | |
| LABEL maintainer="Wattanakorn Intanon <[email protected]>" | |
| RUN apk update && apk add gcc git | |
| RUN mkdir /mqtt-aggregator | |
| WORKDIR /mqtt-aggregator | |
| COPY go.mod . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| import { IMAGES_ENDPOINT } from "../config/images"; | |
| let Images = {}; | |
| export async function loadAllImages() { | |
| const data = (await axios.get(IMAGES_ENDPOINT)).data; | |
| Images = data; | |
| } |