This file contains 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
name: dev | |
channels: | |
- main | |
dependencies: | |
- python=3.11 | |
- blas=*=openblas | |
- ipython | |
- numpy | |
- openai | |
- orjson |
This file contains 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
name: fenics18 | |
channels: | |
- conda-forge | |
dependencies: | |
- python=3.7 | |
- ipython | |
- fenics=2018 | |
- mshr=2018 | |
--- | |
name: fenics19 |
This file contains 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
P1. | |
Let A is the former and B is the latter. | |
(a) No. r1r1r1r1r2r1 is in B but not in A. | |
(b) No. r1r2r2 is in A but not in B. | |
(c) No. empty string is in B but not in A. | |
(d) Yes. A is all strings that contains at least one r2 or one r1; B is the same. | |
(e) Yes. Let's prove all strings s is in A. Consider the length of the string `s`: | |
0: s = empty. s is in r1*r2* obviously. |
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: coffee | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: coffee | |
template: |
This file contains 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
#!/usr/bin/env python | |
# stolen from http://stackoverflow.com/questions/27590039/running-ansible-playbook-using-python-api | |
import os | |
import sys | |
from collections import namedtuple | |
from ansible.parsing.dataloader import DataLoader | |
from ansible.vars import VariableManager | |
from ansible.inventory import Inventory |