Skip to content

Instantly share code, notes, and snippets.

😈
writing code everyday

Junya Ogura juno

😈
writing code everyday
Block or report user

Report or block juno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@juno
juno / circleci-config.yml
Created Sep 6, 2019
CircleCI config step to install bundler which compatible BUNDLED_WITH in Gemfile (workaround for bundler 2)
View circleci-config.yml
steps:
# ...
- run:
name: "Configure Bundler"
command: |
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
source $BASH_ENV
gem install bundler
@juno
juno / keymap.diff
Last active Jan 11, 2019
qmk macro definition for refocusing to page from omnibar (Chrome): https://docs.qmk.fm/#/feature_macros
View keymap.diff
diff --git a/keyboards/crkbd/keymaps/juno/keymap.c b/keyboards/crkbd/keymaps/juno/keymap.c
index 487850951..4893837e9 100644
--- a/keyboards/crkbd/keymaps/juno/keymap.c
+++ b/keyboards/crkbd/keymaps/juno/keymap.c
@@ -32,7 +32,8 @@ enum custom_keycodes {
RAISE,
ADJUST,
BACKLIT,
- RGBRST
+ RGBRST,
@juno
juno / build.md
Last active Oct 20, 2018
Setting up QMK firmware for Meishi keyboard.
View build.md

Add remote repo:

~ ❯❯❯ cd ~/src/qmk_firmware
~/s/qmk_firmware ❯❯❯ git remote add biacco42 https://github.com/Biacco42/qmk_firmware.git

Fetch feature/meishi branch from remote then checking-out it:

@juno
juno / prove.md
Created Jan 27, 2018
Prove for keybase.
View prove.md

Keybase proof

I hereby claim:

  • I am juno on github.
  • I am junya (https://keybase.io/junya) on keybase.
  • I have a public key ASC-2wMUGk2qMKvnr_uLT3N-Uo2lASFifGK9z0ZyAi9eQgo

To claim this, I am signing this object:

@juno
juno / test.rb
Last active Jan 4, 2018
Test case for "bad value for range" error in activerecord 5.2.0.beta2 with PostgreSQL RANGE type. https://github.com/rails/rails/issues/31612
View test.rb
# frozen_string_literal: true
PG_DATABASE_NAME = "test_ar_range"
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
@juno
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
driven_by(
:selenium,
using: :chrome,
screen_size: [1400, 900],
options: {
desired_capabilities: {
chromeOptions: {
args: %w[headless disable-gpu],
prefs: {
'modifyheaders.headers.name' => 'Accept-Language',
@juno
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
juno / rice.ja.md
Created Apr 21, 2017
Summary of Intercom's RICE: Simple prioritization for product managers (in Japanese).
View rice.ja.md

RICE

RICE: Simple prioritization for product managers - Inside Intercom https://blog.intercom.com/rice-simple-prioritization-for-product-managers/

  • Reach (指定期間内で何人が影響を受けるか)
    • その機能に触れる・利用するユーザー数
    • できるだけ現実的な数字をとる
  • Impact (一人ひとりにどれくらい影響を及ぼすか)
    • 3(とても高い)/2(高い)/1(普通)/0.5(低い)/0.25(最小)
You can’t perform that action at this time.