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 Cocoa | |
/** | |
* Neural Network | |
* | |
* …[Cell]━[Axon]┳[Dendrite]━[Cell]━[Axon]┳… | |
* ┣[Dendrite]━[Cell]━[Axon]┳… | |
* ⋮ | |
* ┗[Dendrite]━[Cell]━[Axon]┳… |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
import XCPlayground | |
class Executor { | |
// MARK: Execute stored procedure | |
let procedure: () -> () |
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
files=`ls "$1"` | |
for uuid in ${files[@]}; do | |
module=`ls "$1/${uuid}/Contents/Resources/DWARF/"` | |
echo "${uuid:0:8}: ${module}" | |
done |
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 | |
final class Device { | |
enum Model: String { | |
case iPhone6_1 = "iPhone6,1" | |
case iPhone6_2 = "iPhone6,2" | |
case iPhone7_1 = "iPhone7,1" | |
case iPhone7_2 = "iPhone7,2" | |
case iPhone8_1 = "iPhone8,1" | |
case iPhone8_2 = "iPhone8,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
CASE | |
WHEN model = 'iPhone6,1' THEN 'iPhone 5S (GSM)' | |
WHEN model = 'iPhone6,2' THEN 'iPhone 5S (Global)' | |
WHEN model = 'iPhone7,1' THEN 'iPhone 6 Plus' | |
WHEN model = 'iPhone7,2' THEN 'iPhone 6' | |
WHEN model = 'iPhone8,1' THEN 'iPhone 6s' | |
WHEN model = 'iPhone8,2' THEN 'iPhone 6s Plus' | |
WHEN model = 'iPhone8,4' THEN 'iPhone SE (GSM)' | |
WHEN model = 'iPhone9,1' THEN 'iPhone 7' | |
WHEN model = 'iPhone9,2' THEN 'iPhone 7 Plus' |
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 Accelerate | |
class TimeProfiler { | |
private var results: [Float] = [] | |
private var samples: Int = 0 | |
private let ignores: Int | |
/// 現在の試行回数 | |
var trials: Int { | |
results.count |