This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'minitest' | |
gem 'activerecord', require: 'active_record' | |
gem 'mysql2' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
id=$(gh pr list --search "involves:@me" | cut -f 1-2 | fzf --reverse | cut -f 1) | |
gh pr view ${id} --web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activerecord' | |
gem 'sqlite3' | |
end | |
require 'active_record' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
require "pathname" | |
require "time" | |
require "uri" | |
abort "[USAGE]: hatena2md <exported file> <output dir>" if ARGV.length < 2 | |
exported_file_path = ARGV[0] | |
output_dir = Pathname.new(ARGV[1]) | |
output_dir.mkpath unless output_dir.exist? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Functional Component": { | |
"prefix": "_functional", | |
"body": [ | |
"import * as React from \"react\";", | |
"", | |
"export default () => (", | |
" ${1:component}", | |
");" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
aws ssm get-parameters-by-path \ | |
--path "/myapp/" \ | |
--with-decryption \ | |
--query "Parameters[*].[Name,Value]" \ | |
--output text | | |
while read line | |
do | |
name=$(echo ${line} | cut -f 1 -d ' ' | sed -e 's/\/myapp\///g') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g prefix C-t | |
bind-key C-v split-window -h -c "#{pane_current_path}" | |
bind-key C-s split-window -v -c "#{pane_current_path}" | |
bind-key -r C-k select-pane -U | |
bind-key -r C-j select-pane -D | |
bind-key -r C-l select-pane -U | |
bind-key -r C-h select-pane -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Basic settings | |
set nocompatible | |
" Edit | |
set fileencodings=ucs-bom,utf-8,iso-2022-jp,sjis,cp932,euc-jp,cp20932 | |
set tabstop=4 | |
set softtabstop=0 | |
set shiftwidth=4 | |
set expandtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class Observer: NSObject { | |
private let recipe: Recipe | |
init(recipe: Recipe) { | |
self.recipe = recipe | |
} | |
deinit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let utcFormatter = DateFormatter() | |
utcFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ" | |
utcFormatter.locale = Locale(identifier: "en_US_POSIX") | |
utcFormatter.timeZone = TimeZone(abbreviation: "UTC") | |
let jstFormatter = DateFormatter() | |
jstFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ" | |
utcFormatter.locale = Locale(identifier: "en_US_POSIX") |
NewerOlder