Skip to content

Instantly share code, notes, and snippets.

View angrytoast's full-sized avatar

Gary Gao angrytoast

View GitHub Profile
https://www.google.com/maps/dir/Princeton,+NJ/Cambridge,+OH/Columbia,+MO/Burlington,+CO/Rawlins,+WY/Burley,+ID/Pendleton,+OR/Portland,+OR/Shoreline,+WA/@35.8049235,-112.6686337,4.9z/data=!4m56!4m55!1m5!1m1!1s0x89c3e6c172d059f1:0x3fcd49934a13d6c2!2m2!1d-74.6672226!2d40.3572976!1m5!1m1!1s0x8837b5e7d9a4c5d5:0x484050a1274b3a7a!2m2!1d-81.5884561!2d40.031183!1m5!1m1!1s0x87dcabf3bb8182c9:0xa011692dbabd6f20!2m2!1d-92.3340724!2d38.9517053!1m5!1m1!1s0x870cb291012a6035:0x61dc0f7bc348cce2!2m2!1d-102.2693563!2d39.3061082!1m5!1m1!1s0x875c4e954ff4de09:0x3c20a46abf95fc13!2m2!1d-107.2386627!2d41.7910697!1m5!1m1!1s0x54ab367193e8d4a9:0x220a1bc2f13ecc5!2m2!1d-113.7927948!2d42.5357428!1m5!1m1!1s0x54a2e143d6f4685b:0xa1431081cc39651c!2m2!1d-118.7885967!2d45.672075!1m5!1m1!1s0x54950b0b7da97427:0x1c36b9e6f6d18591!2m2!1d-122.6783853!2d45.515232!1m5!1m1!1s0x54901138c4a47567:0xf18942c77e7f2b9a!2m2!1d-122.3456972!2d47.7559659!3e0?entry=ttu
https://www.google.com/maps/dir/Princeton,+NJ/Akron,+OH/Beloit,+WI/Sioux+Falls,+SD/Rapid+City,+SD/Bozeman,+MT/Spokane,+WA/Shoreline,+WA/@43.3824308,-109.0675806,5z/data=!3m1!4b1!4m50!4m49!1m5!1m1!1s0x89c3e6c172d059f1:0x3fcd49934a13d6c2!2m2!1d-74.6672226!2d40.3572976!1m5!1m1!1s0x8830d7958b2efab7:0x29c96c95fd266d04!2m2!1d-81.5190053!2d41.0814447!1m5!1m1!1s0x8808a12005cd0adf:0x3c7e3fa7f48922cb!2m2!1d-89.0317765!2d42.5083482!1m5!1m1!1s0x878eb498e0bdacd7:0xde95ff3aa8b2fccf!2m2!1d-96.731265!2d43.5460223!1m5!1m1!1s0x877d42a59ebba5fb:0xc471615a3e93b7c7!2m2!1d-103.2310149!2d44.0805434!1m5!1m1!1s0x5345444c4fba8813:0x63f5d064f73b60aa!2m2!1d-111.037259!2d45.6793119!1m5!1m1!1s0x549e185c30bbe7e5:0xddfcc9d60b84d9b1!2m2!1d-117.4235318!2d47.6579711!1m5!1m1!1s0x54901138c4a47567:0xf18942c77e7f2b9a!2m2!1d-122.3456972!2d47.7559659!3e0?entry=ttu
@angrytoast
angrytoast / backspace char prefix
Created August 17, 2023 23:17
U+0008 backspace control character test
foobar
diff --git a/src/WebformEntityReferenceManager.php b/src/WebformEntityReferenceManager.php
index b99eb96e4..5c53f495d 100644
--- a/src/WebformEntityReferenceManager.php
+++ b/src/WebformEntityReferenceManager.php
@@ -82,6 +82,13 @@ class WebformEntityReferenceManager implements WebformEntityReferenceManagerInte
*/
protected $fieldNames = [];
+ /**
+ * Cache of paragraph field names by entity type and bundle.
@angrytoast
angrytoast / test.html
Created October 19, 2022 19:39
test.html
<div class="">
<div class="grid--7"><img alt="" data-entity-type="" data-entity-uuid="" loading="lazy" src="https://www.tableau.com/sites/default/files/2022-04/Desktop%20Hero%20Graphic.png"></div>
<div class="grid--5 text--left">
<hr class="spacer spacer--three mobile-hide"><h3 class="text--benton-bold">Tableau Desktop</h3>
<h1 class="text--benton-light">Insights at the speed of business</h1>
<p><a class="cta" href="/products/desktop">Explore Desktop</a><a class="cta cta--secondary" href="/products/desktop/download">Start a Free Trial</a></p>
</div>
</div>
@angrytoast
angrytoast / apple-sharlotka-gateau.md
Last active December 29, 2020 01:15
Combination apple sharlotka gateau
@angrytoast
angrytoast / tibetan-noodle-copy.md
Last active August 29, 2020 03:04
Copycat Tibetan noodle stirfry

Raw materials

  • 1/2 large onion
  • 1/4 head cabbage
  • 1 medium head broccoli
  • 2 carrots
  • ginger, ~1 inch
  • garlic, at least 5 cloves
  • chili peppers (we had dried chinese ones)
  • ~1 lb noodles (we had store bought ones, rounded and about ~1/16" diameter; lomein type noodles would work best)
  • 2 tsp salt (or to taste)

Ingredients

  • Konbu kelp, ~8x4" piece
  • 2 cloves garlic
  • ~1 tsp rice vinegar
  • ~1 tsp sesame oil
  • ~2 tsp soy sauce
  • water

Make

  • Boil konbu for stock, ~15 minutes
@angrytoast
angrytoast / cucumber-salad.md
Created June 23, 2020 04:01
Cucumber sunomono salad

Ingredients

  • 3x persian cucumbers (~5 inches length) or 1x english hothouse
  • ~ 2 tsp rice vinegar
  • ~ 1 tsp sesame oil
  • salt

Make

  • Half the cucumbers lengthwise, thin slice them. Aim for something like 1/16th inch
  • Put them in a bowl and salt liberally, ~ 1 tbsp-ish
  • Wait 10 minutes
@angrytoast
angrytoast / simple-scones.md
Last active April 21, 2020 18:28
simple scones, not too sweet, eat with jam

Ingredients

  • 2.5 cups all-purpose flour
  • 1/3 cup sugar
  • 1.5 teaspoon baking powder
  • 1 teaspoon salt
  • 0.5 teaspoon baking soda
  • 0.5 cup butter cut in small pieces
  • 0.75 cup milk (used coconut milk, but heavy cream is probably traditional)

Directions