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
cask_args appdir: '/Applications' | |
tap 'caskroom/cask' | |
# brew 'memcached' | |
# brew 'mongodb' | |
brew 'ag' | |
brew 'automake' | |
brew 'cmake' |
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
import sys | |
import os | |
import datetime | |
import subprocess | |
from keyhac import * | |
def configure(keymap): | |
# Global keymap which affects any windows | |
keymap_global = keymap.defineWindowKeymap() |
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
if defined? BetterErrors | |
BetterErrors.editor = proc { |full_path, line| | |
full_path = full_path.sub(Rails.root.to_s, '/path/to/rails/root') | |
"atm://open?url=file://#{full_path}&line=#{line}" | |
} | |
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
#!/bin/sh | |
export PATH="/usr/local/bin:$PATH" | |
echo 'Splanet' | |
echo '---' | |
curl -s http://splapi.retrorocket.biz/gachi/now | jq -r '.result | .[] | [.rule, (.maps | join(", "))] | join(": ") + "| color=blue"' | |
curl -s http://splapi.retrorocket.biz/gachi/next_all | jq -r '.result | .[] | [.rule, (.maps | join(", "))] | join(": ") + "| color=blue"' | |
WAG_SESSION='K25YUzJVYUxXTGU2YzJaSjRpWUNuR3VzTlM4ZXZPclJvdEFjdWk0Q2RYVVZGRFNGYVdUQ1hVRkJJT0luY295UG5WUzJPLzM4QkhLZDJJN25JRWdjK3cwRjRRWHNTcUVINHhIVE5aREQ0ckNJU2JZMVVZa0NOdFFkbWFqa1MzODhFQTR5cHcvY1dMNmRCRTBZemQ0SS82bkpnQTkzK2RqSVM0dDc5anV1aVhHUHFEYjQ5RDZFMFA3eXpGNllrdFdoUlpQWU9ZdHNMNnhYbEtKN1dFN0J6QUF5VzRvbUNpSVRIaFlFQStuYWhqcko5V0ZHc1BPTjVRTUJjcEY1SFVGcDMzeURieHJoOXhQQzJSTWZyQ0xxY2U2cG1rNzBaYW9KZjZaMkJTemZYUnVONmRsTEY1RUlsdlkvTVJtVnpack5uanJEVm9HRG5BU1VYaXZIUUVtcjkyZXMyYUtjeUtjOCtkenNjTzIrQkx4NUpmMjc1NjRDSEJqcDZodWNmOFV5LS1vdHVVTHA1TkRoU2d5QnZOeDFhVUNRPT0%3D--7bd8f9569ddf68feb80eb726197c9c8534e795b7' | |
curl -s 'https://splatoon.nintendo.net/friend_list/index.json' -H "Cook |
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
inherit_gem: | |
onkcop: 'config/rubocop.yml' | |
# target_version: | |
# rubocop v0.35.1 | |
# 自動生成されるものはチェック対象から除外する | |
AllCops: | |
Include: | |
- '**/Rakefile' |
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
javascript:var width = "900px";Array.prototype.forEach.call(document.querySelectorAll(".list-card"), function(node) {node.style.maxWidth = width});Array.prototype.forEach.call(document.querySelectorAll(".list-wrapper"), function(node) {node.style.width = width}); |
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
# Install Homebrew (skip if it's already installed) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# Install rbenv(if you use zsh, replace .bash_profile with .zprofile) | |
brew install rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
brew install ruby-build | |
brew install rbenv-gemset |
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/bash | |
DOT_FILES=( .zshrc .zprofile .aliases .aliases_mac .bashrc .bash_profile .bundle .gitconfig .gitignore .gemrc .inputrc .tigrc .vimrc .vimrc_bundle. .pryrc ) | |
for dotfile in ${DOT_FILES[@]} | |
do | |
ln -svf $HOME/Dropbox/dotfiles/$dotfile $HOME/$dotfile | |
done | |
ln -svf ~/Dropbox/setting_files/.atom ~/.atom |
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
def save_image(url) | |
# ready filepath | |
fileName = File.basename(url) | |
dirName = "/var/tmp/hoge/" | |
filePath = dirName + fileName | |
# create folder if not exist | |
FileUtils.mkdir_p(dirName) unless FileTest.exist?(dirName) | |
# write image adata |
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
input = [ | |
# [ id, input, expected ], | |
[ 0, "4*5+6&7|8", "44" ], | |
[ 1, "15*5", "75" ], | |
[ 2, "15+5", "20" ], | |
[ 3, "15&5", "5" ], | |
[ 4, "15|5", "15" ], | |
[ 5, "30*15*5", "2250" ], | |
[ 6, "30*15+5", "600" ], | |
[ 7, "30*15&5", "150" ], |