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
// | |
// AttributedString.swift | |
// | |
// Created by fm.tonakai on 2019/04/08. | |
// | |
import UIKit | |
public struct AttributedString: ExpressibleByStringLiteral, ExpressibleByStringInterpolation, CustomStringConvertible { | |
public struct StringInterpolation: StringInterpolationProtocol { |
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
// | |
// RDFile.swift | |
// RDFileUtil | |
// | |
// Created by KatagiriSo on 2017/11/09. | |
// Copyright © 2017年 rodhosSoft. All rights reserved. | |
// | |
import Foundation |
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
// | |
// RDFileUtil.swift | |
// RDFileUtil | |
// | |
// Created by KatagiriSo on 2017/11/09. | |
// Copyright © 2017年 rodhosSoft. All rights reserved. | |
// | |
import Foundation |
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 Foundation | |
import UIKit | |
import RxSwift | |
import RxCocoa | |
class AmountViewControlelr : UIViewController { | |
@IBOutlet var amount:UILabel! | |
@IBOutlet var optionAmount:UILabel! | |
@IBOutlet var optionAmount2:UILabel! |
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
// | |
// perceptron2.cpp | |
// RDPerceptronSwift | |
// | |
// Created by KatagiriSo on 2017/10/24. | |
// Copyright © 2017年 RodhosSoft. All rights reserved. | |
// | |
#include "perceptron2.hpp" | |
#include <iostream> |
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
// | |
// main.swift | |
// Reg | |
// | |
// Created by KatagiriSo on 2017/10/17. | |
// Copyright © 2017年 RodhosSoft. All rights reserved. | |
// | |
import Foundation |
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 <utility> | |
#include <array> | |
template <auto...> | |
struct value_list | |
{}; | |
template <class T, auto... Keys> | |
struct map_ | |
{ |
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 Data.Set | |
-- aをNumに制限Numのインスタンスにしばる | |
mySum :: Num a => [a] -> a | |
mySum list = list !! 0 | |
data Point = Pt Int Int deriving Show |
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
main = do | |
print $ factorize(1000) | |
prime :: Int -> Bool | |
prime n = length([x | x <- [1..n], n `mod` x == 0 ]) == 2 | |
primes :: Int -> [Int] | |
primes n = [x | x <- [1..n], prime x] | |
factor :: Int -> Int -> Bool |
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
main = do | |
print "Hello, World!" | |
-- training data とはfeature vector とラベルの組である。 |
NewerOlder