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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <limits.h> | |
#define INIT_MAXSIZE 200 /* 配列の大きさの初期値 */ | |
/* 大きさnの配列aと配列bを筆算した結果を配列cに格納する */ | |
int add(int* a, int* b, int* c, int n) | |
{ | |
int i, row = 0, buf = 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>your.group.id</groupId> | |
<artifactId>YourArtifactId</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.processing</groupId> | |
<artifactId>core</artifactId> |
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
void setup() { | |
createImageBrightnessCSV(); | |
exit(); | |
} | |
void createImageBrightnessCSV() { | |
PImage pimage = loadImage("sample.jpeg"); | |
int[] nums = new int[256]; | |
pimage.loadPixels(); |
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
#!/bin/bash | |
# Tomcat8: Start/Stop Tomcat 8 | |
# | |
# chkconfig: - 90 10 | |
# description: Tomcat is a Java application Server. | |
. /etc/init.d/functions | |
. /etc/sysconfig/network |
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
dependencies { | |
compile 'org.slf4j:slf4j-log4j12:1.7.21' | |
} |
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
fun main(args: Array<String>) { | |
println("walk = 4 : ${walk(4)}") | |
println("walk = 5 : ${walk(5)}") | |
println("bike = 4 : ${bike(4)}") | |
println("bike = 5 : ${bike(5)}") | |
println("bus = 4 : ${bus(4)}") | |
println("bus = 5 : ${bus(5)}") | |
println("car = 4 : ${car(4)}") | |
println("car = 5 : ${car(5)}") | |
println("accident = 4 : ${accident(4)}") |
OlderNewer