Skip to content

Instantly share code, notes, and snippets.

View albertogiunta's full-sized avatar

Alberto Giunta albertogiunta

View GitHub Profile
import Katana
import Ramen
import SBundle
import Storages
import Tempura
final class DependenciesContainer: RamenAppDelegate, SBundleProvider, Provider, <#Other app specific protocols#> {
// MARK: - Basic Dependencies Container requirements
let dispatch: StoreDispatch
import Foundation
// MARK: Katana
public protocol State {}
public protocol AnyStateUpdater {}
public protocol AnySideEffect {}
public protocol AnySideEffectContext {
func getAnyState() -> State
}
import { searchWeatherLocation } from "utils/sourceSuggestionFetchers";
import { v4 as uuidv4 } from "uuid";
/*
Generic props with sensible defaults, they should stay in their own file
The input params could be composed even more, by creating a couple more
that capture the various possible sensible configurations
*/
interface ISourceProps {
@albertogiunta
albertogiunta / gist:69a9dd1c74f57948c70cbb5bcaa5d8c5
Created May 29, 2023 16:31
Tom Scott video - SRT subtitles
1
00:00:00,120 --> 00:00:02,193
- This is test one.
2
00:00:08,189 --> 00:00:10,859
The Catesby Tunnel in
Northamptonshire, England
3