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
#! ruby | |
require 'csv' | |
## ファイル読み込み | |
# 人事提供ファイル | |
jinji_table = CSV.table(ARGV[0]) | |
# 認証基盤ファイル | |
ninshou_table = CSV.table(ARGV[1]) | |
## ファイル比較と配列作成 |
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
#! ruby -Ks | |
# -*- mode:ruby; coding:shift_jis | |
#class definition | |
class DepartmentData | |
attr_accessor :key_department_id | |
attr_accessor :department_name | |
attr_accessor :upper_department_id | |
def initialize(id, name, upper_id) | |
@key_department_id = id |
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.List; | |
public class FizzBuzzTest { | |
/** | |
* 引数の値までのFizzBuzzをList<String>で返却する | |
* FizzBuzz: | |
* 3で割り切れるものをFizz |
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.math.BigInteger; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.TreeSet; | |
public class FibonutchTest { | |
/** |
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.Collections; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
public class CharCountTest { | |
/** | |
* char型配列から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 LeapYearJudgeTest { | |
/** | |
* 閏年判定メソッド | |
* 閏年の定義 | |
* 1)西暦400で割り切れる年は閏年である | |
* 2)400で割り切れない、かつ100で割り切れる場合は閏年ではない | |
* 3)400で割り切れない、かつ100で割り切れない、かつ4で割り切れる年は閏年である | |
* 4)400で割り切れない、かつ100で割り切れない、かつ4で割り切れない場合は閏年ではない |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// | |
// CheckItemManager.swift | |
// KadaiCheck | |
// | |
import UIKit | |
import CoreData | |
class CheckItemManager: NSObject { | |
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
// | |
// PersonManager.swift | |
import UIKit | |
import CoreData | |
class PersonManager: NSObject { | |
//AppDelegateの初期設定 | |
var appDelegate = UIApplication.sharedApplication().delegate as? AppDelegate |
NewerOlder