Skip to content

Instantly share code, notes, and snippets.

writing code (almost) every weekday

Junya Ogura juno

writing code (almost) every weekday
View GitHub Profile
juno / system_test_driven_by_headless_chrome.rb
Created Nov 13, 2017
Rails 5.1 System Test driven by headless chrome.
View system_test_driven_by_headless_chrome.rb
using: :chrome,
screen_size: [1400, 900],
options: {
desired_capabilities: {
chromeOptions: {
args: %w[headless disable-gpu],
prefs: {
'' => 'Accept-Language',
juno / qiita_slide_preview_scrollbar.css
Created Sep 13, 2017
Always show scrollbar in Qiita's slide preview area while using Chrome/Safari on Mac.
View qiita_slide_preview_scrollbar.css
.slide_preview::-webkit-scrollbar {
background: #eee;
width: 7px;
.slide_preview::-webkit-scrollbar-button {
background: #666;
height: 5px;
width: 5px;
.slide_preview::-webkit-scrollbar-piece {
juno /
Created Apr 21, 2017
Summary of Intercom's RICE: Simple prioritization for product managers (in Japanese).


RICE: Simple prioritization for product managers - Inside Intercom

  • Reach (指定期間内で何人が影響を受けるか)
    • その機能に触れる・利用するユーザー数
    • できるだけ現実的な数字をとる
  • Impact (一人ひとりにどれくらい影響を及ぼすか)
    • 3(とても高い)/2(高い)/1(普通)/0.5(低い)/0.25(最小)
  • It’s a golden age for rich, meaningful markup.
  • We nest div inside div inside div, and we give every div a stack of classes—but when we look in the CSS, our classes provide little insight into what we’re actually trying to define.

Clearing a few things up

  • We write and without a moment’s hesitation. Looking at Github, one can find plenty of examples of . But why? You can’t have more than one main element, so you already know how to reference it directly.
  • We have no excuse for not expecting our fellow developers to know and understand them.
  • An end-user may not notice or care if you stick a form class on your form element, but you should. You should care about bloating your markup and slowing down the user experience. You should care about readability.
  • Start semantic

juno /
Last active Mar 21, 2021
My favorite ( small business | profitable | bootstrapped ) companies. 💕
  • Basecamp
    • Founded: 1999
    • Location: Chicago and remote
    • Team: ~50
    • Customers: Over 100,000 companies
    • Wikipedia
  • Aetrion LLC.
    • Founded: 2010
    • Team: 12
    • Product: DNSimple
juno /
Created Apr 5, 2016
Memo for Foursquare's place ratings.

Foursquare place ratings

FoursquraeのVenueには10段階のRating(評価)が設定され、評価はいくつかのシグナルをもとに算出される。 ソーシャルなデータから抽出された以下のようなものがシグナルとして用いられる。

  • Likes / Dislikes
  • Positive Tips / Negative Tips
  • ロイヤルカスタマーを多く抱えているかどうか
  • VenueをLikeしたユーザーの信頼度や専門性など
juno /
Last active Dec 27, 2018
My Atom editor setup.

My Atom editor setup


Atom Shell Commands

  • Launch Atom and select "Atom - Install Shell Commands" menu to install atom and apm commands
  • Add /usr/local/bin to PATH environment varibale
juno /
Last active Oct 25, 2016
I need to install these fonts to my new mac.