Skip to content

Instantly share code, notes, and snippets.

public class MealData {
public List<Meal> meals { get; set; }
public class Meal {
public String idMeal { get; set; }
public String strMeal { get; set; }
public Object strDrinkAlternate { get; set; }
public String strCategory { get; set; }
public String strArea { get; set; }
public String strInstructions { get; set; }
#!/usr/bin/env bash
set -euo pipefail
# usage, must be run from project root: ./diffpackager.sh 998c47bdb4950e31a8c6792181542eae06a53d65
OIFS="$IFS"
IFS=$'\n'
if [ $# -lt 1 ]
then
echo 'Usage: ./diffpackager.sh <your commit hash to diff from> <your commit has to diff to>(optional, if not specified, defaults to "HEAD")'
@tsalb
tsalb / sigh.cls
Last active August 26, 2020 20:35
Sanity check your org's CRUD
String DEBUG_TEMPLATE = 'C:[C] R:[R] U:[U] D:[D] MA:[MA] RA:[RA] | [PROFILE_NAME] | [OBJECT_NAME]';
String TRUE_TEMPLATE = '[X]'; // do not use space, horizontal char alignment will be off
String FALSE_TEMPLATE = '[_]'; // same
Integer PROFILE_NAME_MAX_LENGTH;
// Grab the max chars of each, so we can get an evenly formatted / spaced output later
List<Integer> nameLengths = new List<Integer>();
for (Profile profile : [SELECT Name FROM Profile]) {
nameLengths.add(profile.Name.length());
}