A Pen by Kentaro Fujiy on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe class="framedesk" src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-47.151290680591245,-22.852351440433285)/-47.1513,-22.8522,16.56,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> | |
<div class="spacer"> </div> | |
<iframe class="framedesk" src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-44.047877831165415,-19.916523243159254)/-44.0479,-19.9165,16.58,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> | |
<div class="spacer"> </div> | |
<iframe class="framedesk" src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-49.827540696806075,-6.08731387429283)/-49.8275,-6.0873,16.58,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-47.151290680591245,-22.852351440433285)/-47.1513,-22.8522,16.56,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> | |
<div class="spacer"> </div> | |
<iframe src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-44.047877831165415,-19.916523243159254)/-44.0479,-19.9165,16.58,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> | |
<div class="spacer"> </div> | |
<iframe src="https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/pin-l+315cab(-49.827540696806075,-6.08731387429283)/-49.8275,-6.0873,16.58,0/1140x400?access_token=pk.eyJ1Ijoia2VudGFyb2Z1aml5IiwiYSI6ImNqYzJjemZkMDBkZDIzNHI1MTdvOHE0eGgifQ.lFB0RUWtS_pJQR9Ne4QlFA"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid bg-top"> | |
<div class="row"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-6 col-md-6 col-sm-12"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-5 col-md-5 col-sm-12 py-5 px-0"> | |
<img src="https://sotreq.sotreq.com.br/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBkdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--67c2295f2807fa1a5586da2d0e179459605504a6/logo-ponsse.png" alt="Logo Ponsse" height="84" class="pr-4"> | |
</div> |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import sys | |
import argparse | |
import os.path | |
import textwrap | |
import re | |
from pprint import pprint | |
import xml.etree.ElementTree as ET |
First, Create a folder inside of lib
called seeds
Put your CSV file example.csv
into the lib/seeds
folder. In the example below, the file is called real_estate_transactions.csv
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: postgresql | |
encoding: unicode | |
template: template0 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
development: | |
<<: *default | |
database: sihusa_development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="owl-carousel owl-theme"> | |
<div> | |
<a class="image-popup-vertical-fit" href="https://images.unsplash.com/photo-1567816632324-6c5e972d33e3?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" title="This image fits only horizontally."> | |
<img src="https://images.unsplash.com/photo-1567816632324-6c5e972d33e3?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" /> | |
</a> | |
</div> | |
<div> | |
<a class="image-popup-vertical-fit" href="https://images.unsplash.com/photo-1567816632324-6c5e972d33e3?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" title="This image fits only horizontally."> | |
<img src="https://images.unsplash.com/photo-1567816632324-6c5e972d33e3?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ" /> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//set up pods::find parameters to limit to 5 items | |
$param = array( | |
'limit' => 5, | |
); | |
//create pods object | |
$pods = pods('pod_name', $params ); | |
//check that total values (given limit) returned is greater than zero | |
if ( $pods->total() > 0 ) { |
NewerOlder