Skip to content

Instantly share code, notes, and snippets.

View chrwang's full-sized avatar
:shipit:
beebobble

Chris Wang chrwang

:shipit:
beebobble
View GitHub Profile
@chrwang
chrwang / converge.yml
Created October 5, 2023 14:50
Molecule Bug Reproducer: idempotence failures
---
- name: "converge"
hosts: "all"
tasks:
- name: "this task should be idempotent"
ansible.builtin.command: "echo hello"
changed_when: false
- name: "this task should not be idempotent"
ansible.builtin.command: "touch /tmp/test"
changed_when: true
@chrwang
chrwang / keybase.md
Created July 19, 2017 23:58
Username changed on github, reproving keybase

Keybase proof

I hereby claim:

  • I am chrwang on github.
  • I am kisaayano (https://keybase.io/kisaayano) on keybase.
  • I have a public key ASChFbVsDcVQpgXm5oUqL3_T9gMXcoybPoi131Bg-ENmDAo

To claim this, I am signing this object:

def read_parallel_1d(path, pattern='_eval_', typef='aggr', verbosity=False):
"""
Reads all files in the folder path. Opens the files whose names match the
regex pattern. Returns lists of Q, I(Q), and ID. Path can be a
relative or absolute path. Uses Pool and map to speed up IO.
typef is one of 'json' or 'aggr'. JSON mode reads in all and only json files
in the folder specified by path. aggr mode reads in aggregated data files.
See sasmodels/generate_sets.py for more about these formats.