git init
or
| # This script tags a untagged ECR Images using its diggest | |
| ECR_REPO=my-ecr-repo-name | |
| IMAGE_DIGEST="sha256:ab6DSA4f1f940df430062009fdfb02d3ede74b48e39ada939047c2e7d0ee3ac50d8" | |
| TAG=my-tag | |
| # --- | |
| MANIFEST=$(aws ecr batch-get-image --repository-name $ECR_REPO --image-ids imageDigest=$IMAGE_DIGEST --query 'images[].imageManifest' --output text) | |
| aws ecr put-image --repository-name $ECR_REPO --image-tag $TAG --image-manifest "$MANIFEST" |
| import curses | |
| import time | |
| import sys | |
| import requests | |
| # Constants | |
| CURRENCY='USD' | |
| REQUESTS_PER_MINUTE=10 | |
| REQUEST_URI='https://api.coinmarketcap.com/v1/ticker/' |
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for `%s`\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "%s> " "$command" |
| subroutine matrix_multiply(first_matrix, first_transposed, second_matrix, second_transposed, result_matrix) | |
| !This subroutine multiplies two matrices using the Intel MKL xGEMM multiplication routines | |
| !The routines can be a little tricky, so I've made it a little easier to use them consistently | |
| !first_matrix and second_matrix are the input matrices | |
| !first_transposed and second_transposed are integers indicating (with a 1 or 0) whether or not | |
| !the respective matrix is transposed | |
| !The resulting matrix is stored in result_matrix, but you'll have to allocate that outside the routine | |
| !The sGEMM below can be changed to dGEMM for double precision without any other changes to the | |
| !subroutine call. You'll then have to change the 'real' variables to 'double precision'. | |
| real function fmincg(length, nn_params, input_layer_size, hidden_layer_size, num_labels, inputdata, y, lambda) | |
| implicit none | |
| ! Copyright (C) 2001 and 2002 by Carl Edward Rasmussen. Date 2002-02-13 | |
| ! (C) Copyright 1999, 2000 & 2001, Carl Edward Rasmussen | |
| ! | |
| ! Permission is granted for anyone to copy, use, or modify these | |
| ! programs and accompanying documents for purposes of research or | |
| ! education, provided this copyright notice is retained, and note is | |
| ! made of any changes that have been made. |
| import select | |
| import socket | |
| import sys | |
| import objc | |
| from PyObjCTools import AppHelper | |
| objc.loadBundle("CoreBluetooth", globals(), | |
| bundle_path=objc.pathForFramework(u'/System/Library/Frameworks/IOBluetooth.framework/Versions/A/Frameworks/CoreBluetooth.framework')) |
| integer function djb_hash(str) result(hash) | |
| implicit none | |
| character(len=*),intent(in) :: str | |
| integer :: hash | |
| integer :: i | |
| hash = 5381 | |
| do i=1,len(str) |
| function convolve(x, h) | |
| implicit none | |
| !x is the signal array | |
| !h is the noise/impulse array | |
| real, dimension(:), allocatable :: convolve, y | |
| real, dimension(:) :: x, h | |
| integer :: kernelsize, datasize | |
| integer :: i,j,k | |