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
| image = download (imagePath); | |
| processedImage = process (image); | |
| upload (processedImage); | |
| text = download (textPath); | |
| processedText = process (text); | |
| upload (processedText); |
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
| download1 (imgPath, processImage, uploadImage); //processImage and uploadImage are callback functions | |
| download2 (txtPath, processText, uploadText); //processText and uploadText are callback functions |
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
| firstThis (data, callBack){ | |
| data = 1 | |
| callBack (data) | |
| } | |
| firstThis (x, anyFunction); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
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
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
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
| Provider | Type | Cost ($/hr) | Compute | |
|---|---|---|---|---|
| Github Actions | NA | 0.48 | 2 CPUs & 7 GB | |
| AWS | On Demand | 0.101 | 2 CPUs & 8 GB (m5.large) | |
| AWS | Spot (cheap compute) | 0.0202 | 2 CPUs & 8 GB (m5.large) |
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
| apiVersion: actions.summerwind.dev/v1alpha1 | |
| kind: RunnerDeployment | |
| metadata: | |
| name: general-runner | |
| namespace: actions-runner-system | |
| spec: | |
| template: | |
| spec: | |
| metadata: | |
| labels: |
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
| packer { | |
| required_plugins { | |
| amazon = { | |
| version = ">= 0.0.2" | |
| source = "github.com/hashicorp/amazon" | |
| } | |
| } | |
| } | |
| variable "IMAGE" { |
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
| # Install the ECR Credential Helper that automatically authenticates with ECR. | |
| sudo yum install amazon-ecr-credential-helper -y | |
| # Configure Docker to use the credential helper. | |
| mkdir ~/.docker/ | |
| cat > ~/.docker/config.json << EOF | |
| { | |
| "credsStore": "ecr-login" | |
| } | |
| EOF |
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
| # Install the ECR Credential Helper that automatically authenticates with ECR. | |
| sudo yum install amazon-ecr-credential-helper -y | |
| # Configure Docker to use the credential helper. | |
| mkdir ~/.docker/ | |
| cat > ~/.docker/config.json << EOF | |
| { | |
| "credsStore": "ecr-login" | |
| } | |
| EOF |
OlderNewer