Accent Types アクセントの種類|Numbers 数字|Counters 数え方|Suffixes|Verbs 動詞|Adjectives 形容詞|Prefixes|〜もの|Special Common Exceptions|Regions, Cities & Places|Names|Trends
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
#import <objc/runtime.h> | |
#import <objc/message.h> | |
// Compile-time selector checks. | |
#define PROPERTY(propName) NSStringFromSelector(@selector(propName)) | |
// A better assert. NSAssert is too runtime dependant, and assert() doesn't log. | |
// http://www.mikeash.com/pyblog/friday-qa-2013-05-03-proper-use-of-asserts.html | |
// Accepts both: |
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
override func scrollViewDidScroll(scrollView: UIScrollView) { | |
super.scrollViewDidScroll(scrollView) | |
for cell in self.tableView.visibleCells { | |
let hiddenFrameHeight = scrollView.contentOffset.y + self.tableView(tableView, heightForHeaderInSection: 0) - cell.frame.origin.y | |
if hiddenFrameHeight >= 0 || hiddenFrameHeight <= cell.frame.size.height { | |
self.maskCell(cell, fromTopWithMargin: hiddenFrameHeight) | |
} | |
} |
促音(そく\おん・そくおん)
・っ or ッ sound
促音便(そくお\んびん)
・At the end of the 連用形(勝ち、食い、帰り) when the 動詞 comes next to a て・た・たり、 a 促音(っ) is introduced in between.
・This only occurs with the following endings「ち」「ひ・い」「り」
Comment if you would like to see a resource added to the list.
あいうえおフォニックス (🇬🇧 English, Web, Free)
English phonetics video series made for a Japanese audience.
https://youtube.com/channel/UCX2tvXwAItLs5RhFFSGn9LQ
Dogen: Japanese Phonetics Series (🇯🇵 Japanese, Web, Paid)
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
import Foundation | |
enum NeedlemanWunsch { | |
enum Origin { | |
case top | |
case left | |
case diagonal | |
} |
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
import Foundation | |
enum Match: Equatable { | |
case indexAndValue(Int, Character) | |
case missing | |
} | |
enum Hirschberg { | |
static func align<T>(input1 seq1: [T], input2 seq2: [T], match: Int = 5, substitution: Int = -3, gap: Int = -2, offset1: Int = 0, offset2: Int = 0) -> (output1: [Match<T>], output2: [Match<T>]) where T: Equatable { |
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
import Combine | |
import SwiftUI | |
/// A view that asynchronously loads and displays an image. | |
/// | |
/// Loading an image from a URL uses the shared URLSession. | |
struct AsyncImage<Content> : View where Content : View { | |
final class Loader: ObservableObject { | |
@Published var data: Data? = nil |