The Azure Resource Manager template is for deploying
- New Web App instance of PHP 7.0 under Free plan
- Then install the site extension Composer to the Web App
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| gem 'sinatra' | |
| gem 'application_insights', github: "Microsoft/ApplicationInsights-Ruby" |
| using CsvHelper; | |
| using MongoDB.Bson; | |
| using MongoDB.Driver; | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Threading; | |
| namespace CSVTest | |
| { |
| irb(main):001:0> puts 'おはようございます'.dajarize | |
| おはようございマスキングテープ | |
| おはようございマスク | |
| おはようございマスタング | |
| おはようございマスターピース | |
| おはようございマスカットナイト | |
| おはようございマスカラ | |
| おはようございマスカレード | |
| おはようござい増田貴久 | |
| おはようござい増田有華 |
| require 'csv' | |
| data_file = ARGV.shift | |
| File.foreach(data_file).each_with_index do |row, n| | |
| begin | |
| CSV.parse_line(row) | |
| rescue CSV::MalformedCSVError => e | |
| STDERR.puts "#{n}: #{e.to_s}" | |
| next |
| 2016-02-06T18:10:44.893+0900 I CONTROL [main] ***** SERVER RESTARTED ***** | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] MongoDB starting : pid=46957 port=27017 dbpath=/usr/local/var/mongodb 64-bit host=P23722.local | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] db version v3.2.1 | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] git version: a14d55980c2cdc565d4704a7e3ad37e4e535c1b2 | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] allocator: system | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] modules: none | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] build environment: | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] distarch: x86_64 | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] target_arch: x86_64 | |
| 2016-02-06T18:10:44.910+0900 I CONTROL [initandlisten] options: { config: "/usr/local/etc/mongod.conf", net: { bindIp: "127.0.0.1" }, storage: { dbPath: "/usr/local/var/mongodb" }, systemLog: { destination: "file", logAppend: true, path |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. | |
| Fetch(url string) (body string, urls []string, err error) |
| -module(func). | |
| -export([comb/2, multi/2]). | |
| multi(X, []) -> [X]; | |
| multi(X, [H|T]) -> multi1(X, [H|T], []). | |
| multi1(_, [], Result) -> Result; | |
| multi1(X, [H|Tail], []) -> multi1(X, Tail, [X|H]); | |
| multi1(X, [H|Tail], Result) -> | |
| multi1(X, Tail, [[X|H] | Result]). |
| module SSHKit | |
| module Formatter | |
| class Owata < SSHKit::Formatter::Abstract | |
| def write(obj) | |
| return unless obj.is_a?(SSHKit::Command) | |
| return unless obj.finished? | |
| original_output << "#{obj.command} \(^o^)/ オワタ\n" | |
| end |