Skip to content

Instantly share code, notes, and snippets.

View faizaankhan's full-sized avatar
🐢
Slow and Steady

Faizaan Ahmed Khan faizaankhan

🐢
Slow and Steady
View GitHub Profile
@faizaankhan
faizaankhan / react.md
Last active November 13, 2019 11:56
REACT SYLLABUS
# At this time, Sablon doesn't support to keep original ratio of image.
# We develop these classes for extending this functionality.
module Sablon
module Content
class ImageOriginalRatio < Struct.new(:name, :data, :properties)
# keep this attribute in case of Image (not ImageOriginalRatio).
attr_accessor :local_rid
attr_reader :rid_by_file
MEASURES = { pixel: 'px', centimeter: 'cm', inch: 'in'}

Keybase proof

I hereby claim:

  • I am faizaankhan on github.
  • I am faizaankhan (https://keybase.io/faizaankhan) on keybase.
  • I have a public key ASBsrohDkAwSEBvfLrqxcxFYxdC-llkaalbos2DRL05WXgo

To claim this, I am signing this object: