This file contains hidden or 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
import csv | |
import os | |
import argparse | |
parser = argparse.ArgumentParser(description='Convert CSV Columns to a PHP KeyValue array') | |
parser.add_argument('-f', '--file', action='store', dest='file', default='exampe.csv', help="CSV file. Default: exmple.csv") | |
parser.add_argument('-k', '--key', action='store', dest='column_key', default='0', help="Key Column Number") | |
parser.add_argument('-v', '--value', action='store', dest='column_value', default='1', help="Value Column Number") | |
args = parser.parse_args() |
This file contains hidden or 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
const fetchMachine = Machine({ | |
id: 'submission-state-machine', | |
initial: 'draft', | |
context: {}, | |
states: { | |
draft: { | |
on: { | |
SUBMIT: { target: 'preModeration' }, | |
DELETE: { target: 'deleted' }, |
This file contains hidden or 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
const fetchMachine = Machine({ | |
id: 'submission-state-machine', | |
initial: 'draft', | |
context: {}, | |
states: { | |
draft: { | |
on: { | |
SUBMIT: { target: 'preModeration' }, |
This file contains hidden or 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
// Define the state machine | |
const stateMachine = Machine({ | |
id: 'projectIdeasOnBenevityStateMachine', | |
initial: 'new', | |
states: { | |
new: { | |
on: { | |
CENSORED: 'censored', | |
DRAFT: 'draft', |
OlderNewer