Skip to content

Instantly share code, notes, and snippets.

View brunophilipe's full-sized avatar

Bruno Philipe brunophilipe

View GitHub Profile
@dhh
dhh / tracker_blocking.rb
Last active July 27, 2023 14:19
Current list of spy pixels named'n'shamed in HEY, as of April 23, 2020
module Entry::TrackerBlocking
extend ActiveSupport::Concern
included do
has_many :blocked_trackers
end
email_service_blockers = {
"ActiveCampaign" => /lt\.php(.*)?l\=open/,
"AWeber" => "openrate.aweber.com",
var pathForContextualMenuPointer: UIBezierPath {
let combinedShape = UIBezierPath()
combinedShape.move(to: CGPoint(x: 12.5, y: 0))
combinedShape.addCurve(to: CGPoint(x: 25, y: 12.5), controlPoint1: CGPoint(x: 19.4, y: 0), controlPoint2: CGPoint(x: 25, y: 5.6))
combinedShape.addLine(to: CGPoint(x: 25, y: 12.5))
combinedShape.addLine(to: CGPoint(x: 25, y: 23.01))
combinedShape.addCurve(to: CGPoint(x: 23.02, y: 25), controlPoint1: CGPoint(x: 25, y: 24), controlPoint2: CGPoint(x: 24, y: 25))
combinedShape.addLine(to: CGPoint(x: 23.02, y: 25))
combinedShape.addLine(to: CGPoint(x: 12.5, y: 25))