Skip to content

Instantly share code, notes, and snippets.

How the UX Team Works at Marley Spoon

Foundations

Foundations for consistent vision, direction, and decision-making:

  • UX team principles
  • Product principles
  • Design system(s)
  • Content framework

Foundations for working effectively:

import pandas as pd
import sys
from datetime import datetime, timedelta
import pytz
# Check if the correct number of arguments was passed
if len(sys.argv) != 2:
print("Usage: python filter_csv.py <path_to_csv_file>")
sys.exit(1)
@quinnkeast
quinnkeast / sum data.py
Last active May 17, 2024 08:54
Sum data
import pandas as pd
import sys
from datetime import datetime, timedelta
import pytz
# Check if the correct number of arguments was passed
if len(sys.argv) != 2:
print("Usage: python filter_csv.py <path_to_csv_file>")
sys.exit(1)
@quinnkeast
quinnkeast / convert and filter.py
Created May 17, 2024 08:51
Convert and filter apple health data by device and time range
import pandas as pd
import sys
from datetime import datetime, timedelta
import pytz
# Check if the correct number of arguments was passed
if len(sys.argv) != 2:
print("Usage: python filter_csv.py <path_to_csv_file>")
sys.exit(1)
Sourcegraph Cloud is the easiest way for organizations to get started with Sourcegraph.
└── Small-to-medium organizations can search across their code together on Sourcegraph Cloud.
└── Individual users can search across their private code on Sourcegraph Cloud.
└── Sourcegraph team members can search across their private code on Sourcegraph Cloud.
└── Individual users can search across their public code on Sourcegraph Cloud.
const card = { cost: [{count: 2, type: 'r'}, {count: 2, type: 'any'}, {count: 1, type: 'w/r', hybrid: true}] };
const availableMana = [{count: 4, type: 'r'}, {count: 2, type: 'w'}, {count: 1, type: 'w/r', hybrid: true}];
function hasEnoughMana(cost, availableMana) {
// If it requires more mana than is available in the first place
return cost.reduce((total, obj) => total + obj.count)) > cost.reduce((total, avail) => total + avail.count);
}
function hasRequiredMana(cost, availableMana) {
// Return if the available mana matches the required mana