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
// =================================================================== | |
// Created By Kaz Ozzy(fa11enprince) | |
// テキトーに使ってください。 | |
// Rev1. 2014/06/13 | |
// Rev2. 2014/07/19 | |
// 重大なバグ修正(乱数生成部) | |
// =================================================================== | |
#ifdef _WIN32 | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <ctype.h> |
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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
const int CardNumber = 13; | |
const int JokerIndex = 13; | |
enum SuitElement | |
{ |
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
package mail; | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.UnsupportedEncodingException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Properties; |
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
package mail; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import javax.mail.MessagingException; | |
public class MailTest { | |
private static final String MAIL_TEMPLATE = "mail.template"; | |
public static void main(String[] args) { |
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
mail.host = smtp.gmail.com # smtp.hostと同じものを設定 | |
mail.smtp.host = smtp.gmail.com | |
mail.smtp.port = 587 | |
mail.smtp.auth = true | |
mail.smtp.starttls.enable = true | |
mail.encoding = ISO-2022-JP | |
mail.template = ./src/resources/mail_template | |
mail.template.encoding = UTF-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
{toname}さん | |
迷惑メール作成お疲れ様です。 | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? | |
ねえ、今どんな気持ち? |
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 <iostream> | |
#include <string> | |
#include <regex> | |
int main() | |
{ | |
std::vector<std::string> test = { | |
"Windows 8", | |
"Windows8", | |
"Microsoft Windows8", |
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
// @author Kaz Ozzy (id: fa11enprince) | |
// @update 2014/07/11 | |
// @version 1.2 | |
// ver 1.0 初版 | |
// ver 1.1 ゲームオーバー時処理追加 | |
// ver 1.2 クラス設計見直し | |
// publicのisMovable()をFieldクラスからPieceクラスに移動し、privateに | |
// TetrisクラスのgetNextPiece(), getField()が不要なので削除 | |
// | |
// 参考 |
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
#!/usr/bin/perl | |
binmode(STDOUT, ":utf8"); # utf-8でCSVファイルを作っているための対策 | |
use DBI; | |
$dbh = DBI->connect("dbi:CSV:", undef, undef, { | |
f_ext => ".csv/r", | |
RaiseError => 1, | |
}) or die "Cannot connect: $DBI::errstr"; | |
my $sth = $dbh->prepare("select * from english_name"); | |
$sth->execute; | |
$sth->bind_columns(\my ($eng_name, $eng_nick_name, $sex, $jpn_name)); |
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 <iostream> | |
#include <sstream> | |
#include <string> | |
#include <climits> | |
using namespace std; | |
template <typename T> | |
string numToString(const T &num) | |
{ |
OlderNewer