- 週に数時間程度、他の仕事と並行して
- 課題提出の評価と質問の回答
- 2週間に一度のビデオチャット(全員集合)
- フルリモート
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 | |
require 'nokogiri' | |
require 'mongo' | |
require 'open-uri' | |
require 'pp' | |
def extract_threads | |
l = open('http://hayabusa3.2ch.net/appli/subback.html').read.force_encoding('cp932').encode('utf-8') | |
n = Nokogiri::HTML.parse(l) | |
n.css('#trad a').select { |node| node.children[0].to_s =~ /.*スレ/ }.map { |node| node['href'].split('/')[0].to_i } |
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
source 'https://rubygems.org' | |
gem 'graphql-client' # 0.12.1 |
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
[10] pry(main)> [[10, 120], [20, 190], [10, 110], [20, 220], [10, 130], [20, 180]].sort_by(&:first) | |
=> [[10, 120], [10, 130], [10, 110], [20, 220], [20, 190], [20, 180]] | |
[12] pry(main)> [[10, 120], [20, 190], [10, 110], [20, 220], [10, 130], [20, 180]].each.with_index.sort_by { |a, i| [a.first, i] } | |
=> [[[10, 120], 0], | |
[[10, 110], 2], | |
[[10, 130], 4], | |
[[20, 190], 1], | |
[[20, 220], 3], | |
[[20, 180], 5]] |
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
def run(cmd) | |
puts(cmd) | |
system(cmd) | |
puts 'Finished. ' + Time.now.to_s | |
end | |
def run_single_spec (*spec) | |
spec = spec.join(' ') | |
run "rspec -bX #{spec}" | |
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
sudo apt-get install -y \ | |
build-essential \ | |
openssl \ | |
libreadline6 \ | |
libreadline6-dev \ | |
curl \ | |
git-core \ | |
zlib1g \ | |
zlib1g-dev \ | |
libssl-dev \ |
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
NoMethodError: | |
undefined method `content' for "foo=bar&hoge=piyo":String | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/gems/webmock-1.6.2/lib/webmock/http_lib_adapters/httpclient.rb:122:in `build_request_signature' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/gems/webmock-1.6.2/lib/webmock/http_lib_adapters/httpclient.rb:14:in `do_get_with_webmock' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/gems/webmock-1.6.2/lib/webmock/http_lib_adapters/httpclient.rb:6:in `do_get_block_with_webmock' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/bundler/gems/httpclient-ff7c779fe301/lib/httpclient.rb:850:in `block in do_request' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/bundler/gems/httpclient-ff7c779fe301/lib/httpclient.rb:937:in `protect_keep_alive_disconnected' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/bundler/gems/httpclient-ff7c779fe301/lib/httpclient.rb:849:in `do_request' | |
# /home/hudson/.rvm/gems/ruby-1.9.2-p0@platform/bundler/gems/httpclient-ff7c77 |
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
module ActiveAdmin | |
module Views | |
module Pages | |
class Base | |
def build_main_content_wrapper | |
div id: "main_content_wrapper" do | |
div id: "main_content" do | |
para <<-'EOS'.html_safe | |
<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> |
NewerOlder