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 "erb" | |
require "optparse" | |
proposal_file = nil | |
requester = nil | |
request_title = nil | |
crowdsourcing_site_name = nil | |
options = OptionParser.new |
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
# MIT License | |
# ----------- | |
# | |
# Copyright (c) 2019 FUNABARA Masao | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the |
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
# MIT License | |
# ----------- | |
# | |
# Copyright (c) 2019 FUNABARA Masao | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the |
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 'find' | |
target_dir = ARGV[0] | |
all_string = [] | |
Find.find(target_dir) do |file| | |
if File.extname(file) == ".html" | |
content = File.open(file).read |
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
FROM masoo/ubuntu-rbenv:3.0 | |
MAINTAINER FUNABARA Masao | |
RUN \ | |
cd ~/.rbenv && \ | |
git pull origin master && \ | |
cd ~/.rbenv/plugins/ruby-build && \ | |
git pull origin master && \ | |
cd ~/.rbenv/plugins/rbenv-gem-rehash && \ |
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
# Pull base image. | |
FROM ubuntu:17.04 | |
MAINTAINER FUNABARA Masao | |
# Install Ruby | |
RUN \ | |
DEBIAN_FRONTEND=noninteractive apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs && \ |
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 'ruby/csharp_script' | |
csharp_script = Ruby::CSharpScript::CSharpScript.new | |
code = <<"EOS" | |
using System; | |
for (int i=0; i<10; i++) { | |
Console.WriteLine("C#: " + i.ToString(" 0")); |
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
FROM masoo/ubuntu-rbenv-ruby:2.3.1 | |
MAINTAINER FUNABARA Masao | |
RUN \ | |
sudo apt-get install -y nodejs && \ | |
zsh -c "curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -" | |
RUN \ | |
zsh -c "source ~/.zshrc && gem install github-pages" |
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 'pp' | |
require 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
class Sample | |
{ | |
public int x; |
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 'win32ole' | |
csharp_script = WIN32OLE.new('ruby.csharp_script.CsharpScript') | |
code = <<"EOS" | |
new int[] { 1, 3, 5, 7, 9 } | |
EOS | |
result = csharp_script.EvaluateAsync(code) | |
p result |
NewerOlder