Skip to content

Instantly share code, notes, and snippets.

View tonymadbrain's full-sized avatar
🚀

Anton tonymadbrain

🚀
View GitHub Profile
'use strict'
const AWS = require('aws-sdk')
AWS.config.region = 'us-east-1'
const ecrRegistryId = process.env.ECR_REGISTRY_ID
const ecrRegistryName = process.env.ECR_REGISTRY_NAME
const ecsName = process.env.ECS_NAME
const ecs = new AWS.ECS()
const ecr = new AWS.ECR()
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp
* ----------------------------------------------------------------------------
*/
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION W
The MIT License (MIT)
Copyright (c) 2016 Antony Ryabov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
черный принц
ингридиенты:
1 яйцо
1 стакан сахара
1 банка сгущенки
1 стакан кефира (сметаны)
0.5 чайной ложки соды
1 стакан муки (зависит от теста)
200 гр. масла
шоколад, кокосовая стружка, орешки
черный принц
ингридиенты:
1 яйцо
1 стакан сахара
1 банка сгущенки
1 стакан кефира (сметаны)
0.5 чайной ложки соды
1 стакан муки (зависит от теста)
200 гр. масла
шоколад, кокосовая стружка, орешки
def main(arr,x)
total = 0
cur = 0
arr = arr.split(',')
n = arr.length
arr.each do |a|
total+=1 if a == x
end
if total == 0
return -1
total = 0
cur = 0
puts "Enter numbers separated by commas and press 'Enter'"
array = gets.chomp
puts "Enter X:"
X = gets.chomp
A = array.split(',')
n = A.length
A.each do |a|
total+=1 if a == X