This file contains hidden or 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
function copyToClipboard(text) { | |
let copyArea = document.createElement("textarea"); | |
copyArea.textContent = text; | |
let bodyElment = document.getElementsByTagName("body")[0]; | |
bodyElm.appendChild(copyArea); | |
copyArea.select(); | |
let result = document.executeCommand("copy"); | |
bodyElm.removeChild(copyArea); |
This file contains hidden or 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
.container { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
This file contains hidden or 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/sh | |
echo ========================================= | |
date | |
clamscan / \ | |
--infected \ | |
--recursive \ | |
--max-filesize=200M \ | |
--max-scansize=200M \ | |
--log=/var/log/clamav/clamscan.log \ | |
--move=/var/log/clamav/virus \ |
This file contains hidden or 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/sh | |
result=`find ./app/helpers -type f | xargs cat | awk '/def /{print $2}' | sed -e "s/(.*//g" | sort | uniq -c -d` | |
# TODO: result handling |
This file contains hidden or 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
gem 'rails' | |
gem 'puma' | |
# 1. Add localhost gem. | |
group(:development) do | |
gem 'localhost' | |
end |
This file contains hidden or 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
# .local.vimrc | |
let g:ale_ruby_rubocop_executable = 'bin/rubocop' | |
let g:ale_filename_mappings = { | |
\ 'rubocop': [ | |
\ ['/Users/kseki/rails-project', '/opt'], | |
\ ], | |
\} |
This file contains hidden or 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
#!/usr/bin/env fish | |
function fzf_tmuxnator_start | |
tmuxinator list -n | tail -n +2 | fzf | read -l result; and tmuxinator start "$result" | |
end |