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
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; } |
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
#!/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")' |
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
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()); | |
} |