wget https://gist.githubusercontent.com/mtsmfm/cb1db1389eeede827936c069bdd85fda/raw/9af1965716fc1635800002fb9b715b9aef98376c/initialize_example
cat initialize_example | bundle exec language_server-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
class X < BasicObject | |
MAP = { | |
fizz: 3, | |
buzz: 5 | |
} | |
def initialize(n) | |
@n = n | |
@result = nil | |
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
class ProgressBar | |
def initialize(total_count) | |
@total_count = total_count | |
@current_count = 0 | |
@start_at = Time.now | |
end | |
def increment | |
@current_count += 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
source 'https://rubygems.org' | |
gem 'mongo_mapper' | |
gem 'bson_ext' | |
gem 'activemodel', '< 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
class A | |
def hi | |
puts 'hi' | |
end | |
end | |
A.new.hi |
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
I want to say "It is interesting for me the difference how to pass fragments | |
between relay and apollo because we write attribute which component exactly needs on component directly | |
on relay js" | |
https://github.com/relayjs/relay-examples/blob/master/star-wars/js/components/StarWarsShip.js#L24-L30 | |
Sorry for my poor explanation! |
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
# | |
# Generate OPML file of your GitHub org members' public activity | |
# You can import OPML file from https://feedly.com/i/cortex | |
# | |
# Usage: ruby main.rb $GITHUB_API_TOKEN $GITHUB_ORG_NAME | |
# | |
require 'net/http' | |
require 'uri' | |
require 'json' |
https://shinjukurb.connpass.com/event/47157
大富豪をExtreme Fish Bowlで作成します。
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
version: '2' | |
services: | |
web: | |
build: . | |
nginx: | |
image: nginx | |
ports: | |
- 8080:80 | |
command: | |