From Rust Community Wiki

I Am...[edit]

Find me on Discord as jgreenemi#8858

Handy Pages for Miraheze and MediaWiki[edit]

Handy Links[edit]

Handy Syntax References[edit]

Code Highlighting[edit]

import boto3
import json
import logging
import os
from pprint import pprint

def parse_training_config(training_config_path=''):
    Pull in a training config and return its contents.
        # Default to the existing training config file in the Lambda function if a specific filename wasn't passed in.
        if not training_config_path:
            training_config_path = 'config/training-config.json'
            config = json.load(open(training_config_path))

            client_s3 = boto3.client('s3')
            s3_response = client_s3.get_object(

            config = json.loads(s3_response['Body'].read().decode('utf-8'))

        return config

    except Exception as e:
        msg = 'parse_config failure: {}'.format(e)
        return False
pub mod findcrosses {
    use std::collections::{HashMap, HashSet};
    use std::iter::FromIterator;

    use num::range_step_inclusive;

    use crate::utils::vecutils::format_a_vec;

    pub fn interpet_step_as_instruction(instr_string: String) -> Instruction {
        let mut instr_string = instr_string;
        let direction_letter = instr_string.remove(0);
        let direction = match direction_letter {
            'U' => Ok(Direction::UP),
            'D' => Ok(Direction::DOWN),
            'L' => Ok(Direction::LEFT),
            'R' => Ok(Direction::RIGHT),
            _ => Err("Unexpected character?")
        return Instruction {
            direction: direction.unwrap(),
            magnitude: instr_string.trim().parse().unwrap(),