Skip to content

Instantly share code, notes, and snippets.

そば太郎 sobataro

Block or report user

Report or block sobataro

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
@sobataro
sobataro / aws-admin.css
Created Jul 2, 2018
AWS 管理画面の使い勝手を向上する user css
View aws-admin.css
/* ヘッダの余白を狭めてアイコンをたくさん表示できるようにする */
#nav-logo {
margin-left: 10px !important;
margin-right: 10px !important;
}
.nav-menu {
padding-left: 3px !important;
padding-right: 6px !important;
}
#nav-shortcutBar li {
@sobataro
sobataro / widen_docbase.js
Last active Aug 13, 2018
DocBase の邪魔な左右のツールバーを消すブックマークレット
View widen_docbase.js
javascript:(function(){document.getElementsByClassName('js-main-menu')[0].remove();document.getElementsByClassName('js-content-activities')[0].remove();document.getElementsByClassName('main-layout__content')[0].style["left"]="0";document.getElementsByClassName('main-layout__content')[0].style["width"]="100%";document.getElementsByClassName('post-detail')[0].style["max-width"]="100%";window.dispatchEvent(new Event('resize'))}())
@sobataro
sobataro / personal_sobataro.json
Last active Jan 23, 2018
karabiner elements で「英数キー押しっぱなし => Ctrl_L」「かなキー押しっぱなし => Alt_L」を実現する設定ファイル (~/.config/karabiner/assets/complex_modifications/ に置く)
View personal_sobataro.json
{
"title": "Change japanese_kana",
"rules": [
{
"description": "Change japanese_eisuu to left_ctrl if pressed with other keys (Post japanese_eisuu when pressed alone)",
"manipulators": [
{
"from": {
"key_code": "japanese_eisuu",
"modifiers": {
@sobataro
sobataro / aws-console.css
Last active Jan 23, 2018
AWS Console UserCSS
View aws-console.css
/* ヘッダの余白を狭めてアイコンをたくさん表示できるようにする */
#nav-logo {
margin-left: 10px !important;
margin-right: 10px !important;
}
.nav-menu {
padding-left: 3px !important;
padding-right: 6px !important;
}
View lesser_grapheme_cluster_counter.rb
#! /usr/bin/env ruby
#load 'unicode.rb' # ActiveSupport::Multibyte::Unicode.unpack_graphemes
def lesser_graphemes_counter(str)
codepoints = str.unpack("U*")
variation_selectors = codepoints.count { |c| (0xFE00..0xFE0F).include?(c) }
skintone_modifiers = codepoints.count { |c| (0x1F3FB..0x1F3FF).include?(c) }
regional_indicators = codepoints.count { |c| (0x1F1E6..0x1F1FF).include?(c) }
zero_width_joiners = codepoints.count(0x200D)
@sobataro
sobataro / emoji_list.txt
Last active May 2, 2019
a list of emoji, emoji with TPVS, emoji with EPVS
View emoji_list.txt
# format:
# emoji emoji_with_TPVS emoji_with_EPVS # description
#⃣ #︎⃣ #️⃣ # U+23 U+20E3 keycap emoji
*⃣ *︎⃣ *️⃣ # U+2a U+20E3 keycap emoji
0⃣ 0︎⃣ 0️⃣ # U+30 U+20E3 keycap emoji
1⃣ 1︎⃣ 1️⃣ # U+31 U+20E3 keycap emoji
2⃣ 2︎⃣ 2️⃣ # U+32 U+20E3 keycap emoji
3⃣ 3︎⃣ 3️⃣ # U+33 U+20E3 keycap emoji
4⃣ 4︎⃣ 4️⃣ # U+34 U+20E3 keycap emoji
@sobataro
sobataro / emoji_list.rb
Last active Dec 17, 2016
prints a list of emoji, emoji with TPVS, emoji with EPVS
View emoji_list.rb
#! /usr/bin/env ruby
class Emoji
attr_accessor :codepoint
def initialize(codepoint)
@codepoint = codepoint
end
def to_s
You can’t perform that action at this time.