Skip to content

Instantly share code, notes, and snippets.

View Yiling-J's full-sized avatar
🎯
This is the way

Yiling-J

🎯
This is the way
  • Shanghai
  • 21:00 (UTC +08:00)
View GitHub Profile
<!DOCTYPE html><html data-app="tasty_ui" data-env="prod" lang="en" class="enhanced-ux"><head><meta charSet="utf-8"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="Copyright BuzzFeed, Inc. All rights reserved."/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1, user-scalable=yes"/><meta name="referrer" content="unsafe-url"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Tasty"/><meta name="theme-color" content="#79DCF1"/><meta name="description" content="Whip up a healthier twist on a classic favorite with this Veggie Fried Rice recipe. Packed with colorful veggies and savory flavors, you&#x27;ll be craving seconds in no time!"/><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"/><meta property="og:url" content="https://tasty.co/recipe/healthier-veggie-fried-rice"/><meta property="og:type" con
@Yiling-J
Yiling-J / cached_property.py
Created February 11, 2023 14:11
cached_property
from functools import cached_property
from threading import Thread
from random import randint
import threading
import time
_NOT_FOUND = object()
class cached_property_new(cached_property):
@Yiling-J
Yiling-J / remove_duplicate.sql
Last active February 28, 2020 04:03
mysql comma-separated string remove duplicate(using mysql 5.7)
-- this will return no duplicate json array, then you can use replace to get normal string
SELECT JSON_KEYS(JSON_MERGE(concat('{"', Replace('martini,martini,coffee,espresso', ',', '":1,"'), '":1}'), concat('{"', Replace('martini,martini,coffee,espresso', ',', '":1,"'), '":1}')))