Versions.tf:
terraform {
required_providers {
newrelic = {
version = "~> 99.0.0"
source = "newrelic/newrelic"
}
}
required_version = ">= 0.13"
Versions.tf:
terraform {
required_providers {
newrelic = {
version = "~> 99.0.0"
source = "newrelic/newrelic"
}
}
required_version = ">= 0.13"
I hereby claim:
To claim this, I am signing this object:
# note - excludes __ and _ items | |
['author', | |
'contributors', | |
'coordinates', | |
'created_at', | |
'destroy', | |
'entities', | |
'favorite', | |
'favorite_count', | |
'favorited', |
$path_to_my_envs = "CHANGE ME" # <-- Change this to the windows system path to your virtualenvs. Mine is "C:\users\jaymcgrath\git\envs\" | |
# Each env should be named in the format "llama_env" | |
# For example, issuing the command "env llama" would activate the virtualenv at $path_to_my_envs + "llama_env" | |
function Activate-Env { | |
$envname = $args[0] | |
$commandstr = $path_to_my_envs + $envname + "_env\scripts\activate.ps1" | |
& $commandstr | |
} |
[str(x) * int(bool(x % 3 and x % 5)) + "Fizz" * int(not bool(x % 3)) + "Buzz" * int(not bool(x % 5)) for x in range(1,101)] | |
# works, but could probably be condensed | |
# Condensed version, non list comp | |
for i in range(1,101):print('Fizz'*(0==i%3)+'Buzz'*(0==i%5)or i) | |
refactored as a list comp: | |
['Fizz'*(0==i%3)+'Buzz'*(0==i%5)or i for i in range(1,101)] |
""" | |
Given a farm with rabbits and chickens, you count 35 heads and 94 legs. How many of each animal do you have? | |
Assume all rabbits and chickens have 4 and 2 legs respectively. | |
""" | |
from itertools import combinations_with_replacement | |
print([x for x in combinations_with_replacement([2,4],35) if sum(x) == 94]) |