-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
212 lines (148 loc) · 4.09 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
a.length
a.push (function)
"javascript list" functions
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at
======================================
my_list = ['a', 'b', 'c']
my_list.slice(1) -> ['b', 'c']
[ 'a', 'b', 'c' ]
| | | |
0 1 2 3
mylist.slice(0,2) -> ['a', 'b']
my_lambda = (x) => x + 5
my_lambda(10) -> 15
======================================
Logical Operators:
And: && (Only works for booleans (true/false))
Example:
a = true
b = false
a && b -> false
Or: || (Only works for booleans (true/false))
Example:
a = true
b = false
a && b -> true
Not: ! (Only works for booleans (true/false))
Example:
a = true
!a -> false
Equals: ===
Example:
a = 100
b = 100
a === b -> false
Not Equals: !==
Example:
a = 100
b = 100
a !== b -> false
element > 10 && element < 45 && element !== 44
======================================
recipe = {
name: "My Big Regret"
ingredients: [
"One shot vodka",
"1/2 Ounce My Tears",
]
tags: [ "Rainy days" ]
}
recipe.name -> "My Big Regret"
recipe.ingredients[1] -> "1/2 Ounce My Tears"
recipe.tags[0] -> "Rainy days"
b = {
name: "Big music fest",
dates: {
start_day: "Monday"
end_day: "Saturday"
},
}
b.dates[1] <- only valid if it's a list
b.dates.end_day <- returns "end_day" string; in this case, "Saturday"
b.dates.end_day = "Thursday" <- equal to below line
b.dates["end_day"] = "Thursday" <- ""
recipes = `
[Recipes content here]
`
yaml = require("js-yaml")
========================
INGREDIENTS:
[] RYE
[] BUFFALO TRACE
[] RITTENHOUSE RYE
[] CHAMOMILE-INFUSED RITTENHOUSE RYE
[] MAKER'S MARK
[] BOURBON
[]
[] AMARI
likely going to categorize all ingredients manually in separate file
===
put in "rules" for searching ingredients (i.e. "syrup", etc)
==============
filter search by:
ingredients
sources
tags
authors
etc?
venn diagram of spirits? (per walt)
mlik&honey style?
i.e. https://m.media-amazon.com/images/I/71FOD0hLwVL.jpg
toggle between additive and subtractive search ("at least X" vs "only X")
ability to "save" ingredient selections (i.e. current bar items, things 4 tiki drinks, etc)
add tags in-UI
in recipes w/ special ingredients, way to show special ingredients steps/etc, per book/source (i.e. specs from PUNCH only show things from source PUNCH etc)
categorize tags (currently include methods, types, bars, classics, etc; would like to break down like so:)
method / notes:
shaken
citrus
sparkling
stirred
bar:
death & co
dead rabbit
nitecap
format:
negroni
manhattan
low-abv
etc etc etc
"food" tab? (lmao where would bitters recipes go)
"index", in which ingredients are shown; maybe w/ descriptions & "used in <x> many recipes / used in <x>"?
tsp-tbsp? batching up
checkboxes:
overflow-y: scroll;
recipe items of <x> size
when you click on them, increase <x> to <y> and add add'l metadata
click again -> return to orig. size
https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flow_Layout/Block_and_Inline_Layout_in_Normal_Flow
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flow_Layout/Flow_Layout_and_Overflow
html > content
css > layout & theming
pick a width for the sidebar
----
PREP METHOD / STYLE:
shaken
stirred
heated
caffeinated
room temperature
freezer bar
SOURCE:
PUNCH
Amaro
Bitters
----
"svelte conditional classes"
"css click event"
https://stackoverflow.com/questions/14319274/change-css-properties-on-click
when click on item, expand down to next row to keep others in spot? (?)
----
object -> each key = unicode; other side (value) = fraction
lookup: call object and get key
----
"show up only when X" -> "conditional <x> (div, style, etc.)"
----
array; gather inputs based on selection; submit 2 search w/ AND