Skip to content

Instantly share code, notes, and snippets.

:atom:
writing code everyday

Junya Ogura juno

:atom:
writing code everyday
View GitHub Profile
@juno
juno / design-documents.md
Created Jul 5, 2020
Awesome design documents on internet.
@juno
juno / devdocs.json
Last active Feb 4, 2020
My exported preferences for DevDocs.
View devdocs.json
{
"analyticsConsentAsked": "1",
"hideIntro": "1",
"docs": "crystal~0.31/css/dom/dom_events/eslint/html/immutable/javascript/jest/jquery/pony/react/redis/ruby~2.6/rails~6.0/rails~5.2/rust/sass",
"hideDisabled": "1",
"tips": "KeyNav",
"analyticsConsent": "1",
"layout": "_max-width",
"theme": "auto"
}
@juno
juno / custom.json
Last active Apr 23, 2020
My Karabiner Elements configuration
View custom.json
{
"title": "My Customize for Dvorak",
"rules": [
{
"description": "Ctrl+i to Tab",
"manipulators": [
{
"description": "Dvorakでは物理キーgがiとなる",
"type": "basic",
"from": {
@juno
juno / 📊 Weekly development breakdown
Last active Aug 5, 2020
📊 Weekly development breakdown
View 📊 Weekly development breakdown
Ruby 16 hrs 27 mins ██████████████▎░░░░░░ 68.0%
JSX 2 hrs 9 mins █▊░░░░░░░░░░░░░░░░░░░ 8.9%
Text 1 hr 39 mins █▍░░░░░░░░░░░░░░░░░░░ 6.8%
Other 1 hr 27 mins █▎░░░░░░░░░░░░░░░░░░░ 6.0%
ERB 54 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.7%
@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
You can’t perform that action at this time.