Skip to content

Instantly share code, notes, and snippets.

View kentarofujiy's full-sized avatar
🏠
Working from home

Kentaro Fujiy kentarofujiy

🏠
Working from home
View GitHub Profile
@kentarofujiy
kentarofujiy / index.html
Created January 16, 2024 14:48
wvOgLJp
<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">&nbsp;</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">&nbsp;</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>
<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">&nbsp;</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">&nbsp;</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>
@kentarofujiy
kentarofujiy / index.html
Created February 28, 2023 09:38
testelpaline
<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>
@kentarofujiy
kentarofujiy / webpacker_rails.md
Created March 30, 2021 20:18 — forked from maxivak/webpacker_rails.md
Webpack, Yarn, Npm in Rails
@kentarofujiy
kentarofujiy / st2vim_themes.py
Created June 19, 2020 02:52 — forked from jojonas/st2vim_themes.py
Converter for Sublime Text themes to VIM themes
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
@kentarofujiy
kentarofujiy / gist:78ff1fb384c3b44f49f8d62c10142011
Created January 6, 2020 19:39 — forked from arjunvenkat/gist:1115bc41bf395a162084
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

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.

default: &default
adapter: postgresql
encoding: unicode
template: template0
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: sihusa_development
@kentarofujiy
kentarofujiy / index.html
Last active November 3, 2019 22:54
owl-pop
<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>
<?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 ) {