Skip to content

Instantly share code, notes, and snippets.

<field name="code">&lt;div&gt;&lt;div style=&quot;left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;&quot;&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/l3vP9vd_Bcs?feature=oembed&quot; style=&quot;border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;&quot; allowfullscreen scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;lt;div&lt;div&gt;&lt;div style=&quot;left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;&quot;&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/l3vP9vd_Bcs?feature=oembed&quot; style=&quot;border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;&quot; allowfullscreen scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;gt;&lt;div&gt;&lt;div style=&quot;left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;&quot;&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/l3vP9vd_Bcs?feature=oembed&quot; style=&quot;border: 0; top: 0;
field
<row>
<field name="video_id">3676</field>
<field name="title">Todd Duncan - Reverse Tabata</field>
<field name="description"></field>
<field name="search">1</field>
<field name="owner_type"></field>
<field name="owner_id">5956</field>
<field name="parent_type" xsi:nil="true" />
<field name="parent_id" xsi:nil="true" />
343 KidFit Aaron | 20 Min 1 1 NULL NULL 2014-11-12 21:27:51 2016-11-12 21:27:51 41 0 1 Rxave7XF6lc 1582 5 26 1 0 1201 0 everyone 0
349 Quick Tips: Fats Quick Tips: Fats 1 1 NULL NULL 2014-11-14 21:11:54 2014-11-14 21:11:54 35 1 iframely 04bAk19BvSw 1600 5 27 1 0 58 0 everyone 0
5742 Healing Hatha Yoga - Cathy Sullivan 1 7849 NULL NULL 2018-04-18 19:51:57 2018-04-18 19:51:58 150 0 1 l3vP9vd_Bcs 11763 5 17 1 0 3168 0 everyone 0
.background-image-holder.fadeIn{:style => "transform: translate3d(0px, 469.5px, 0px); background: image-url(\"app/assets/images/cover11.jpg\");"}
%img.background-image{:alt => "Background Image", :src => "app/assets/images/cover11.jpg", :style => "display: none;"}/
%section.page-title.page-title-4.bg-secondary
.container
.row
.col-md-6
%h3.uppercase.mb0.bold.number
= area_name
.col-md-6.text-right
%ol.breadcrumb.breadcrumb-2
%li
= link_to "Back"
class GraphicUploader < Shrine
include ImageProcessing::MiniMagick
plugin :activerecord
plugin :cached_attachment_data # for retaining the cached file across form redisplays
plugin :restore_cached_data # re-extract metadata when attaching a cached file
plugin :determine_mime_type
plugin :remove_attachment
def generate_location(io, context = {})
name = super # the default unique identifier
def generate_location(io, context = {})
name = super # the default unique identifier
@new_location = ""
if io.is_a?(File)
ioo = io.to_path
initial_location = io.to_path
@new_location = ioo.match(/(.*\/).*/)[1]
else
binding.pry
@staycreativedesign
staycreativedesign / foo.txt
Created September 6, 2018 14:25
how can I add <p> tags to these line breaks?
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget ullamcorper nibh, id pretium lacus. Vivamus porta, risus tincidunt efficitur faucibus, enim urna malesuada lectus, id luctus turpis lorem quis neque. Cras nibh erat, ornare ut magna et, consectetur tempor massa. Phasellus ut congue ligula, feugiat pretium purus. Pellentesque pretium iaculis rhoncus. Praesent convallis urna non egestas pellentesque. Nunc id erat vel augue hendrerit volutpat. Nullam eget nisl vel nulla pharetra vestibulum nec sit amet ipsum. Nulla lacinia varius quam, ac aliquet velit auctor sit amet. Proin et malesuada metus. Donec quis odio congue, iaculis magna sed, auctor nibh. Sed rutrum, sem at interdum tristique, ante velit venenatis dui, ac porttitor lectus diam nec diam. Donec tortor elit, hendrerit commodo porttitor sed, hendrerit id arcu. Aenean tincidunt, orci ac feugiat sollicitudin, leo quam lobortis augue, eu faucibus ante urna nec lacus.
Phasellus gravida leo non ornare lobortis.
Aliquam vel commodo lacus.