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
void _listPattern(Object obj) { | |
switch (obj) { | |
case [var a]: | |
print(['a', a]); | |
case [var a, var b]: | |
print(['a, b', a, b]); | |
} | |
} | |
void _mapPattern(Map<String, dynamic> obj) { |
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
package main | |
import ( | |
"log" | |
"syscall" | |
) | |
func main() { | |
// socket.listen()でサーバー側のカーネルを接続待ち状態にする |
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 satori, { SatoriOptions } from "satori"; | |
import { SITE } from "@config"; | |
import { html2png, html } from "@astro-content/html2png"; | |
const loadGoogleFont = async ({ | |
family, | |
weight, | |
}: { | |
family: string; | |
weight?: number; |
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
MultiProvider( | |
providers: [ | |
Provider(create: (_) => TodosRepository()), | |
], | |
child: MultiProvider( | |
providers: [ | |
StateNotifierProvider<TodosController, Todos>( | |
create: (_) => TodosController(), | |
), | |
], |