git clone https://gist.github.com/b8c57c198793b7e7b835ae3255f0037c.git
cd b8c57c198793b7e7b835ae3255f0037c
docker run --rm -v $PWD:/app -w /app ruby:2.4.1 ruby main.rb
docker run --rm -v $PWD:/app -w /app ruby:2.4.0 ruby main.rb
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
| # | |
| # 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' |
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
| 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 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
| class A | |
| def hi | |
| puts 'hi' | |
| end | |
| end | |
| A.new.hi |
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
| source 'https://rubygems.org' | |
| gem 'mongo_mapper' | |
| gem 'bson_ext' | |
| gem 'activemodel', '< 5' |
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
| 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 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
| class X < BasicObject | |
| MAP = { | |
| fizz: 3, | |
| buzz: 5 | |
| } | |
| def initialize(n) | |
| @n = n | |
| @result = nil | |
| end |
wget https://gist.githubusercontent.com/mtsmfm/cb1db1389eeede827936c069bdd85fda/raw/9af1965716fc1635800002fb9b715b9aef98376c/initialize_example
cat initialize_example | bundle exec language_server-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
| FROM ruby:2.4.2 | |
| RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
| RUN apt-get update && apt-get install less nodejs -y | |
| RUN npm install -g phantomjs-prebuilt | |
| RUN gem install poltergeist | |
| WORKDIR /app | |
| COPY . . | |
| ENTRYPOINT ruby test.rb |
$ helm install stable/kubernetes-dashboard -f https://gist.github.com/mtsmfm/b7c7829efd3fe674cb603580e418d83a/raw/118747d17530f2b0a68323e2f1872572d81687a8/dashboard.yml