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
# Model
class Profile < ApplicationRecord
has_one_attached :avatar
accepts_nested_attributes_for :avatar_attachment, allow_destroy: true
end
# Controller
class ProfilesController < ApplicationController
before_action :set_profile, only: [:show, :edit, :update, :destroy]
@kentarofujiy
kentarofujiy / History|28a8d735|wpxC.json
Last active April 10, 2022 19:43
Google Translate Custom Styling
{
"editor.suggestSelection": "first",
"remote.SSH.remotePlatform": {
"165.227.100.91": "linux",
"192.168.15.18": "linux",
"seminovos-kentaro": "linux",
"142.93.108.210": "linux",
"servidor-home": "linux",
"sotreq-novosite-rails": "linux",
"sotreq-novosite-vue": "linux",
@kentarofujiy
kentarofujiy / index.css
Last active January 3, 2019 15:52
getjson
body {
background-color: #F8F8F8;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
font-weight: normal;
line-height: 1.2em;
margin: 15px;
}
h1, p, td, th, label, table {
<style id="jsbin-css">
#myVideo {
position: absolute;
width: 100%;
}
#myVideo2 {
position: absolute;
width: 100%;
}
#myVideo3 {
![Alt text](path.ext?raw=true)