This file contains hidden or 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
/** | |
* Sample code to handle file system | |
*/ | |
import java.io.File | |
/** | |
* Get all sub file objects in the directory. | |
*/ | |
fun sample1(path: String): Array<File> { |
This file contains hidden or 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
// Gradle dependencies section must contains following jar | |
// compile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.319' | |
val credential = BasicAWSCredentials( | |
"ACCESSKEY", | |
"SECRETKEY") | |
// building s3client | |
// I set Region to `Regions.AP_SOUTH_1` | |
// because when I used other region, error rose. |
This file contains hidden or 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 <regex.h> | |
#define PATTERN_COUNT 1 | |
#define WORD_MAX_LENGTH 30 | |
#define FILE_MAX_SIZE 100000 | |
#define WORD_MAX_COUNT 10000 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<p><strong>パスワードジェネレータ</strong>です。</p> | |
<p>"記号を含める"を YES にすると、括弧などの記号も含めてパスワードを生成します。数字は半角で入力してネ!</p> | |
<form> | |
<p> |
This file contains hidden or 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
pragma solidity ^0.4.23; | |
// SafeMath | |
library SafeMath { | |
function mul(uint256 a, uint256 b) internal pure returns (uint256) { | |
if (a == 0) { | |
return 0; | |
} | |
uint256 c = a * b; | |
assert(c / a == b); |
This file contains hidden or 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
o | |
/ \ | |
o o | |
| | | | | |
0 1 2 3 |
This file contains hidden or 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 <string.h> | |
#include <errno.h> | |
#include <postgresql/libpq-fe.h> | |
#include <postgresql/9.5/server/postgres.h> | |
struct DbConfig { | |
char host[30]; | |
char dbName[30]; | |
char userName[30]; |
This file contains hidden or 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
PDOException in Connector.php line 55: | |
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client |
This file contains hidden or 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
package com.example.app | |
import java.io.BufferedReader | |
import java.io.InputStreamReader | |
import java.net.HttpURLConnection | |
import java.net.URL | |
import java.security.cert.X509Certificate | |
import javax.net.ssl.* | |
import java.security.cert.CertificateException |
This file contains hidden or 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
package com.improve_future.sample | |
import java.io.Closeable | |
import java.sql.DriverManager | |
import java.sql.Statement | |
import java.text.SimpleDateFormat | |
class Connection(private val coreConnection: java.sql.Connection) : | |
java.sql.Connection by coreConnection, Closeable { |