- Gitでソースコード管理している。
- 会社のGithubアカウントがある。
- 外部に公開されている技術ブログがある。
- IDEよりVimやEmacsを使うことが奨励されている。
- 社員が勉強会に参加することを奨励している。
- オープンソースコミュニティに貢献している。
- 音楽を聞きながら仕事できる。
- Rubyで開発できる。
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
speculation = fs.read(jsonPath) | |
data = """ | |
speculation = #{speculation} | |
""" | |
page.evaluateJavaScript data |
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
#-*- coding: utf-8 -*- | |
class FizzBuzz | |
def fizzbuzz(num) | |
return "FizzBuzz" if num % 15 == 0 | |
return "Buzz" if num % 5 == 0 | |
return "Fizz" if num % 3 == 0 | |
num.to_s | |
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
dir = Dir::entries(Dir::pwd) | |
dir.each do |d| | |
unless /^\./ =~ d | |
f = File::stat(d) | |
p [d, f.size, f.uid, f.gid, f.atime, f.mtime, f.ftype] | |
end | |
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
require "fileutils" | |
dir = Dir::entries(Dir::pwd) | |
dir.each do |d| | |
unless /(^\.|#{__FILE__})/ =~ d | |
f = File::stat(d) | |
puts "#{d} is #{(Time.now - f.mtime).div(24*60*60)} days old." | |
puts "Would you like to remove this file/directory? (y/n)" | |
answer = gets.chomp | |
if answer == "y" |
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
perl -pe 's/.+;//' ~/.zsh_history | awk 'BEGIN {FS="|"} {print $1}' | sort | uniq -c | sort -nr | head -10 |
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
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
require "rubygems" if RUBY_VERSION < '1.9' | |
require "json" | |
require "oauth/cli/twitter" | |
access_token = OAuth::CLI::Twitter.get_access_token(:file => ENV['HOME'] + '/.favoritter') | |
def twitter_ary(statuses) |
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
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
require "fileutils" | |
# dir = File::dirname(__FILE__) + '/bin' | |
dir = "/usr/local/rvm/gems/ruby-1.9.2-p290/bin" | |
files = Dir::entries(dir) | |
files.each do |f| | |
unless f =~ /^\.+$/ |
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
zsh: /usr/local/rvm/gems/ruby-1.9.2-p290/bin/rake: bad interpreter: /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby: no such file or directory | |
rake aborted! | |
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) | |
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile' | |
(See full trace by running task with --trace) |
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
ServerAliveInterval 100 | |
Host * | |
ControlMaster auto | |
ControlPath /tmp/%r@%h:%p | |