User.flag_mapping
User.flag_options
User.flag_columns
class User < ApplicationRecord | |
has_many :posts | |
accepts_nested_attributes_for :posts, allow_destroy: true | |
has_one :profile | |
accepts_nested_attributes_for :profile | |
end | |
# To create nested records through the parent: |
<div style="background: white; text-align: center; padding-top: 1em; padding-bottom: 1em;"> | |
<img src="{{qr_label}}" width="160" /> | |
<div>{{qr_code}}</div> | |
</div> |
#!/bin/bash
# brightness: Change all monitors brightness in software.
# by hackerb9, 2019,2021
# Examples: brightness 75; brightness -10; brightness +10
# Usage:
# brightess [n] [+n] [-n]
# n An integer from 0 to 100 specifies a brightness level.
# +n Increase brightness by n.
In order for developers to build feature for users to upload videos directly to Vimeo, account owner needs to create a 'developer app' that comes with Personal Access Token and Secret Keys (we usually just call all these "API Keys"), and pass that to programmers.
Vimeo also requires owner to specifically request for permission to do direct video upload, this request might take up to 5 days for approval, so please prepare it as early as possible.
Note: For direct video upload, the vimeo account needs to be of Pro, Business, Premium or Enterprise tier
- Visit https://developer.vimeo.com/apps/new
- Click 'Create An App'
- Fill in App name and description
require 'prawn' | |
arr = HallSession | |
.joins(:check_in_sessions, :hall) | |
.group('check_in_sessions.hall_session_id, auditorium_halls.name, hall_sessions.start_at, hall_sessions.end_at, hall_sessions.id') | |
.select('auditorium_halls.name as hall_name, hall_sessions.start_at, hall_sessions.end_at, COUNT(*) as c') | |
.order('hall_name, start_at, end_at') | |
.map do |ci| | |
[ |
-
Download the HTML file from here: https://bit.ly/2FwrMCN
-
Style the site to make it look like this:
Now that you understand the basics of HTML and CSS, let's put that to test by building a webpage that looks like this:
Some of the resources you might need:
- Font - Solway Google Font
- Book Image - https://images-eu.ssl-images-amazon.com/images/I/410%2BtmN-P%2BL.jpg
- Navbar and Footer color -
#3a3a3a
- Middle section background color:
lightgray
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXVp7MwDPWKNM/O2kBN0+tOvIZG3aIMJnJ7vZcq2ANJy0zCNs7JbYAC7/LKN9L3vVT2E/PEZuIufVeIaq67DtuyuBxa+Dt9o9f91VVnScAJdS5NYMU2BN7whprzpVU+d0Dem9PONV+eSCn3DmexQEQrow2lRk3Ls7oUmB0sNtxeruVPuDNxyyqCCO8ajd60rro0R/YQZ5hcwqhXqaHZejXdqL4UJ4Xk5BIanfwPxoteHXCuPgvseMQ7P/1uS/6ryG8MZPxvBkBFAuy0EbKOwDNDOJEpawLn+iKAQjakmne774GG7bE8VQrPQuNfku2FeJiDzMNPoZ36ucJz8+bUmbz [email protected] |
- Takes
input
string and return multiple matching addresses withplace_id
- Can use
lat,lng
location +radius
to create bias result - result is different than
/textsearch
- ex: no result for
ไลฟ์ สุทธิสาร
- Can process request like 'cafe near me'