ccievchant_lignes.fic
- Songtekst one record per line (UTF16 little endian) [9-266]
- VerseID [277-278]
ccievchant.fic
Records start with 10 01 00 ?? 1F F2 5D
| import yaml, { safeLoad } from 'js-yaml' | |
| import fs from 'fs' | |
| console.log('') | |
| console.log('--- file parsing ---') | |
| const channelPath = './data/old/' | |
| const channelsFiles = fs.readdirSync(channelPath).filter(name => name[0] != '.') | |
| const filesProgress = [] | |
| const channelFields = new Map() |
| EHLO domain.com. | |
| AUTH LOGIN | |
| ZGFtaWFhbkBpY2xvdWQuY29t | |
| <App Specific Password here> | |
| mail from:<sender@domain.com> | |
| rcpt to:<receiver@doman.com> | |
| DATA | |
| From: Sender <sender@domain.com> | |
| Subject: Simple Mail Transfer |
| import Foundation | |
| let minimumFileSize = 24_000_000 | |
| let separator = [UInt8](repeating: 0, count: 50) | |
| let arwPrefix: [UInt8] = [0x49, 0x49, 0x2A, 0, 0x08, 0, 0, 0, 0x15, 0, 0xFE, 0, 0x04, 0, 0x01, 0, 0, 0, 0x01, 0, 0, 0, 0x03, 0x01, 0x03, 0, 0x01, 0, 0, 0, 0x06, 0] | |
| let disc = try Data(contentsOf: URL(fileURLWithPath: "path-to-drive-image")) | |
| var cursor = disc.startIndex |
| import struct CoreGraphics.CGSize | |
| import struct CoreGraphics.CGPoint | |
| import struct CoreGraphics.CGFloat | |
| extension CGSize: SIMD { | |
| public typealias MaskStorage = SIMD2<CGFloat.NativeType.SIMDMaskScalar> | |
| public subscript(index: Int) -> CGFloat { | |
| get { | |
| index == 0 ? width : height |
| import Foundation | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var model = Model() | |
| var body: some View { | |
| ZStack { | |
| CustomCollectionView(lastSelectedIndex: $model.index) | |
| IndexPreviewer(model: model) |
| import SwiftUI | |
| extension View { | |
| func float<Content: View>(above: Content) -> ModifiedContent<Self, Above<Content>> { | |
| self.modifier(Above(aboveContent: above)) | |
| } | |
| } | |
| struct Above<AboveContent: View>: ViewModifier { | |
| let aboveContent: AboveContent |
| function splitCellVertically(state, dispatch) { | |
| if (!isInTable(state)) { return false } | |
| const rect = selectedRect(state); | |
| const selectionWidth = rect.right - rect.left | |
| const selectionHeight = rect.bottom - rect.top | |
| if (selectionWidth > 1 || selectionHeight > 1) {return false} | |
| if (dispatch) { | |
| const tr = state.tr | |
| const ref = rect | |
| const row = rect.bottom |