Skip to content

Instantly share code, notes, and snippets.

View whsieh's full-sized avatar
🤔

Wenson Hsieh whsieh

🤔
View GitHub Profile
From 6ac48d12ab1e3089186f68343ba9149aa7c5e804 Mon Sep 17 00:00:00 2001
From: Eryn Wells <eryn_wells@apple.com>
Date: Fri, 8 Jul 2022 16:51:00 -0700
Subject: [PATCH] Should be able to copy editable strong password on iOS
https://bugs.webkit.org/show_bug.cgi?id=242544 rdar://96259620
Reviewed by NOBODY (OOPS!).
Add a flag to EditorState to track when selection is in an autofilled and
viewable field. Consult this flag in WKContentView when we're deciding what
@whsieh
whsieh / terrible_code.rb
Last active August 29, 2015 14:20
Topic seeding
# Seed religion survey questions.
topic = Topic.find_by_name "Religion"
survey_question = topic.survey_questions.create :text => "Are your beliefs aligned with any mainstream religion (e.g. Christianity, Judaism, Buddhism, Islam, Hinduism, etc.)", :index => 1
responses = [{
:text => "Yes",
:summary_text => "I am religious.",
:index => 0
},