Skip to content

Instantly share code, notes, and snippets.

View BatchApplication.java
package com.example.batch;
import java.util.Properties;
import javax.batch.operations.JobOperator;
import javax.sql.DataSource;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.converter.JobParametersConverter;
import org.springframework.batch.core.explore.JobExplorer;
@rixwwd
rixwwd / nginx.conf
Created Jun 5, 2019
Nginx reverse proxy settings for fn server.
View nginx.conf
user nginx;
worker_processes 1;
error_log /dev/stderr warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
View tfidf.rb
#!/usr/bin/env ruby
# coding: UTF-8
require 'logger'
require 'mecab'
@logger = Logger.new(STDOUT)
@logger.level = Logger::INFO
# ドキュメントの単語数をカウントする。