Skip to content

Instantly share code, notes, and snippets.

View andrew-a-dev's full-sized avatar

Andrew Amato andrew-a-dev

  • Vox Media
  • Remote
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrew-a-dev on github.
  • I am andrew_a_dev (https://keybase.io/andrew_a_dev) on keybase.
  • I have a public key whose fingerprint is 870C 5C87 EA16 3F02 4008 5446 D196 DEAC 4953 221F

To claim this, I am signing this object:

> def check_aspect_ratio(hymnal_ad_id)
> a = HymnalAd.find(hymnal_ad_id)
> [Ad.find(a.cdn_identifier).class.desktop_aspect_ratio,
> a.desktop_aspect_ratio]
> end
=> :check_aspect_ratio
> check_aspect_ratio 238
=> [1.6898954703832754, 1.6898954703832754]
List of names of image fields, for ads resaved/republished in the last 3 months:
$TEMPLATE_IMAGE[sm_image]
background
background_image
bottom_bar
box_1_img
box_2_img
box_3_img
box_4_img
["Athena (Accordion)",
[["Slide 1 Image", "slide_1"],
["Slide 2 Image", "slide_2"],
["Slide 3 Image", "slide_3"],
["Slide 1 Small Image", "slide_1_small"],
["Slide 2 Small Image", "slide_2_small"],
["Slide 3 Small Image", "slide_3_small"],
["Logo", "logo"]]]
["Athena (Carousel)",
[["Background Image", "lrg_image"],

Why is this sometimes wrong?

Junk drawer

Specifically the "last published on... by..." can be old or incorrect.

This is how it gets populated, for that view:

hymnal_ads_controller.rb L268

[
[
{
"episode_title": "Why millennials dread motherhood",
"podcast_title": "Today, Explained",
"author": "Vox",
"id": 87034333,
"url": "audio://megaphone.concert/c668dab4-74f0-11ee-9c9a-43bc115c2bc7/c916764a-74f0-11ee-9c9a-4b4cf236096b",
"updated_at": "2023-12-15T19:18:56.797Z"
},
[
[
{
"episode_title": "Sunset Mesa",
"podcast_title": "Criminal",
"author": "Vox Media Podcast Network",
"podcast_id": "f547b046-5de4-11ec-acc5-733706bb297f",
"id": 89714860,
"url": "audio://megaphone.concert/f547b046-5de4-11ec-acc5-733706bb297f/18c6b592-352d-11ed-85ef-7b16f8a9cc68",
"updated_at": "2024-01-11T18:40:01.494Z"
https://pagesix.com/2024/01/08/entertainment/raquel-leviss-blasts-tom-sandoval-for-playing-the-victim/spotim-user
https://www.177milkstreet.com/search?q=Roasted%20tomatoes%20
https://www.beaumontenterprise.com/hardincountynews/article/All-Points-Environmental-773967.php
https://www.bigrapidsnews.com/news/article/harbor-beach-schools-names-new-superintendent-18598191.php
https://www.chron.com/news/politics/article/wisconsin-judge-rules-that-absentee-voting-van-18598421.php
https://www.ctinsider.com/business/article/Capital-Region-Rite-Aid-stores-make-switch-to-12630307.php
https://www.ctpost.com/food/article/Recipe-Warm-Pear-and-Green-Bean-Salad-2270366.php
https://www.darientimes.com/gametimect/football/article/ethan-long-notre-dame-commit-brunswick-18596242.php
https://www.expressnews.com/business/article/wisconsin-lumber-company-fined-nearly-300-000-18598423.php
https://www.foodnetwork.com/kitchen/orange-and-maple-roasted-butternut-squash-/p/1
[
{
"episode_title": "Sunset Mesa",
"podcast_title": "Criminal",
"author": "Vox Media Podcast Network",
"podcast_id": "f547b046-5de4-11ec-acc5-733706bb297f",
"id": 89714860,
"url": "audio://megaphone.concert/f547b046-5de4-11ec-acc5-733706bb297f/18c6b592-352d-11ed-85ef-7b16f8a9cc68",
"updated_at": "2024-01-11T18:40:01.494Z"
},
1781688 brainly.com
366486 www.foodnetwork.com
50580 www.houstonchronicle.com
47368 www.ctinsider.com
47004 www.sfchronicle.com
39963 www.sfgate.com
30913 www.chron.com
28688 www.nhregister.com
26103 www.timesunion.com
25490 www.ctpost.com