- Gitでソースコード管理している。
- 会社のGithubアカウントがある。
- 外部に公開されている技術ブログがある。
- IDEよりVimやEmacsを使うことが奨励されている。
- 社員が勉強会に参加することを奨励している。
- オープンソースコミュニティに貢献している。
- 音楽を聞きながら仕事できる。
- Rubyで開発できる。
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 | |
# coding: utf-8 | |
require 'net/http' | |
require 'uri' | |
require 'rubygems' | |
require 'json' | |
USERNAME = 'morygonzalez' | |
puts 'input password:' |
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 'net/http' | |
require 'cgi' | |
require 'rubygems' | |
require 'hpricot' | |
class Proxy | |
def initialize | |
@url = nil |
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(typeof(models)=='undefined') | |
this.models = models = new Repository(); | |
var Pinboard = { | |
name : 'Pinboard', | |
ICON : 'http://pinboard.in/favicon.ico', | |
getCurrentUser : function() { | |
if(decodeURIComponent(getCookieString('pinboard.in', 'login')).match(/login=(.*?) /)) | |
return RegExp.$1; |
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
Re: add-apt-repository not working? not installed? | |
"sudo add-apt-repository ppa:<repository name>" this registers the ppa with APT and an entry is created in /etc/apt/sources.list and backs up to /etc/apt/sources.list.save. ff a key is required and available it is automatically downloaded and registered. | |
you must have "python-software-properties" installed before using this command |
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
#-*- 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 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
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 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
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 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
perl -pe 's/.+;//' ~/.zsh_history | awk 'BEGIN {FS="|"} {print $1}' | sort | uniq -c | sort -nr | head -10 |
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 | |
#-*- 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) |
OlderNewer