๐
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 struct | |
| import time | |
| import hid | |
| import sys | |
| import argparse | |
| # | |
| # Constants | |
| # |
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 { | |
| DataStore, | |
| PersistentModel, | |
| PersistentModelConstructor, | |
| ProducerModelPredicate, | |
| SortPredicate, | |
| ProducerPaginationInput | |
| } from '@aws-amplify/datastore' | |
| import { useCallback, useEffect, useState } from 'react' |
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
| func BuildImage(dockerBuildCtxDir, tagName string) error { | |
| ctx, cancel := context.WithTimeout(context.Background(), time.Duration(300)*time.Second) | |
| defer cancel() | |
| dockerFileTarReader, err := tarDirectory(dockerBuildCtxDir) | |
| //this above method will create a tar file from the directory passed in. The return has to be of type io.Reader | |
| if err != nil { | |
| log.Printf("Error in taring the docker root folder - %s", err.Error()) | |
| return err | |
| } | |
| buildArgs := make(map[string]*string) |