Skip to content

Instantly share code, notes, and snippets.

View rikusen0335's full-sized avatar

Soshi Homma rikusen0335

View GitHub Profile
@mollifier
mollifier / zshrc_useful.sh
Last active April 9, 2024 06:29
少し凝った zshrc
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
@jackielii
jackielii / OpenWithSublimeText3.bat
Last active March 13, 2024 17:38 — forked from mrchief/LICENSE.md
Add "Open with Sublime Text 3" to Windows Explorer Context Menu (including folders)
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@smison
smison / vagrant_up.bat
Last active August 9, 2019 03:21
ホストOS起動時に自動でvagrant upするbat
cd /d %~dp0
call vagrant up
REM 参考資料
REM http://qiita.com/goldbook@github/items/6445b4fa6bf5704a28bb
@weotch
weotch / vue-video.md
Created February 3, 2016 22:35
Notes on using <video> with Vue.js
  • When you are ready to play a video, insert the markup into the DOM with autoplay=auto preload on the tag. Don’t add the markup early and load() or play() it later. If you have the markup in there when the Vue component compiles, it will trigger multiple video loads
  • When listening when to show the video (like fade it in), listen for the timeupdate event, not canplaythrough. This ensures that the video will already be playing when you show it. In Safari, the canplaythrough plays too soon and will pause on the first frame for a bit (edited)
  • When you animate the video in, never have it display:none or in Safari it will pause on the first frame. Set the opacity to 0 and then fade it in when ready, for instance
  • Make sure webm is before mp4, it helps FF out a lot
@umamichi
umamichi / Electron 入門.md
Last active October 13, 2023 17:22
Electron 入門
@ldez
ldez / gmail-github-filters.md
Last active July 2, 2024 12:25
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@jagrosh
jagrosh / Growing A Discord Server.md
Last active February 17, 2024 04:29
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@akm
akm / file0.go
Created August 28, 2017 05:05
Goでの三項演算子っぽい書き方 ref: http://qiita.com/akm/items/1842f7c5b9755829886a
package main
import "fmt"
func main() {
foo := map[bool]string{true: "OK", false: "NG"}[2 > 1]
fmt.Printf("foo: %v\n", foo)
}
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active June 11, 2024 06:48
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@mrjosh
mrjosh / fix-steam-microphone-permission-macOS.md
Last active June 19, 2021 19:00
How to: Fix Steam Voice Chat in macOS Mojave and Catalina

How to fix steam microphone permission macOS

Step 1: Disable The System Integrity

  • Disable The System Integrity for access the relevant system database.

Reboot your Mac and hold Cmd+R on startup. This will bring up the Recovery Mode. Open Utility -> Terminal from the menu bar and type csrutil disable Reboot.

Step 2: Manually add permission for Steam to access the microphone.