If you’ve came this far: You’re still not done learning ;) But at least now you get paid to learn.

We expect “non-technical” employees to solve problems with tech/code.

This page is a list of knowledge we expect employees to acquire over time, and also a list of practical coding challenges which can be used to both automate useful tasks in the business and be educational for the employee.

You should know/understand

Challenges:

Coding challenges (for internal employee training)

For all of these AI can be used to understand the problem and generate the code.

Filtering of CSV

Export csv of all products from Shopify, make a script that reads the csv and print out the title of all products where the description, body html, contains “https://famme.no”

Make both a version of the script that just finds any csv in the Downloads folder and does the filtering on all CSVs and a version of the script that takes command line argument: python filter_csv.py --file=products.csv

Why? To find products using absolute links instead of relative for internal linking.

Video editing

Make a bash oneliner to edit out first 10 seconds of a video named test.mp4 and save it as test_edited.mp4

Probably need to install ffmpeg, brew install ffmpeg on mac.

Group by on a column in CSV to add counts

In databases you can use group by like select count(*), column from table group by column to get a count of each unique value in a column.

In python you can either use some data science library like pandas for a similar syntax, or do it “manually” with a dictionary / loop.

In the Warehouse & CS base we have a complaints table

Create a python script that reads the csv file you get by clicking “Download CSV” after clicking on the view. If you don’t find it just google “How to download CSV of airtable view” and you will find the answer.

When you have the CSV file, for example for a specific factory’s defect (depending upon view), your script should read the CSV and print out the count of each unique value in the column “product”.

Example output:

Lunge Scrunch Leggings: 10
Motion Leggings: 5

download images from urls in a csv

Use the same CSV as above. Download all the images from the “attachment” column in the CSV and put them in ~/Downloads/complaints_images, the folder should be created by the script if it does not exist.

Finding discounted products: X%+ off products

Read the CSV of all products from Shopify, and print out the title of all products where the price is X% or more off the compare at price. X should be a command line argument.

To run the script: python find_discounted_products.py --file=products.csv --min_discount=20

This should print out all products where the price is 20% or more off the compare at price.

Using the domain.com/products.json endpoint and group products by product type

Make a script that reads the json from the endpoint and prints out the count of each product type.

Example output:

Leggings: 10
Tops: 5

Use the requests library in python to get the json from the endpoint. The url is https://famme.no/products.json

Also open https://famme.no/products.json in the browser and see if you can understand the structure of the json.