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
root@ytnk-VirtualBox:~# systemctl show tomcat8|grep ExecStop | |
ExecStop={ path=/etc/init.d/tomcat8 ; argv[]=/etc/init.d/tomcat8 stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class FlatMapSample { | |
public static void main(String[] arg) { | |
List<Integer> listA = Arrays.asList(1, 3, 5); | |
List<Integer> listB = Arrays.asList(2, 4, 6, 8); |
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
public enum Gender { | |
MALE, FEMALE; | |
} |
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
import org.junit.Assert; | |
import org.junit.Test; | |
import java.util.List; | |
import static org.mockito.ArgumentMatchers.anyInt; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.when; | |
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
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.mockito.Mock; | |
import java.util.List; | |
import static org.mockito.ArgumentMatchers.anyInt; | |
import static org.mockito.Mockito.when; | |
import static org.mockito.MockitoAnnotations.initMocks; |
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
import org.junit.Assert; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.Mock; | |
import org.mockito.junit.MockitoJUnitRunner; | |
import java.util.List; | |
import static org.mockito.ArgumentMatchers.anyInt; | |
import static org.mockito.Mockito.when; |
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
import org.junit.Assert; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.mockito.Mock; | |
import org.mockito.junit.MockitoJUnit; | |
import org.mockito.junit.MockitoRule; | |
import java.util.List; |
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
import java.util.Arrays; | |
public class ArrayManupilation { | |
static long arrayManipulation(int n, int[][] queries) { | |
long[] arr = new long[n+1]; | |
for (int[] query : queries) { | |
for(int i = query[0];i <= query[1]; i++) { | |
arr[i] += query[2]; | |
} | |
} |
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
public class ArrayManupilation { | |
static long arrayManipulation(int n, int[][] queries) { | |
long[] arr = new long[n+1]; | |
int a, b, k; | |
for (int [] query : queries) { | |
a = query[0]; | |
b = query[1]; | |
k = query[2]; |
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 ExcelsController < ApplicationController | |
def show | |
end | |
def create | |
file = params[:file] | |
# ファイルを開く | |
workbook = RubyXL::Parser.parse file.path | |
# 編集する | |
workbook[0].add_cell 0, 0, 'changed' |
OlderNewer