- @cobyism
- GitHub
- 9.7M devs
- 23.3M projects
- 293 employees
- 65% remote
- 北米と西欧がメイン、アジアも日本中国台湾フィリピンあたり
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 ruby | |
require "RMagick" | |
list = [] | |
10.times do |i| | |
list << "lena_#{i}.png" | |
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/bash | |
base_dir=`pwd` | |
wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
tar zxfv mecab-0.996.tar.gz | |
cd mecab-0.996 | |
./configure --enable-utf8-only | |
make | |
make check |
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
tell application "iTunes" | |
set trackLyrics to lyrics of current track | |
return trackLyrics | |
end tell |
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
FROM ruby:2.2.0 | |
RUN bundle config --global frozen 1 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
ADD Gemfile /usr/src/app/ | |
ADD Gemfile.lock /usr/src/app/ | |
RUN bundle install --without test development --system |
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 ruby | |
# | |
# Example usage | |
# - Test only changed model files & specs from master | |
# $ bundle exec rspec $(script/changed-specs model master) | |
# | |
require "open3" | |
require "shellwords" |
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 ruby | |
require "fileutils" | |
require "open3" | |
def ghq_name_of(repository_url) | |
case repository_url | |
when %r(\Agit@) | |
repository_url.gsub(%r(\Agit@), "").sub(":", "/").gsub(%r(\.git\z), "") | |
when %r(\Agit://) |