Skip to content

Instantly share code, notes, and snippets.

View rikukissa's full-sized avatar
🍔

Riku Rouvila rikukissa

🍔
View GitHub Profile
openapi: 3.0.0
info:
title: User API
version: 1.0.0
description: A simple user API
servers:
- url: https://api.example.com
paths:
/events:
get:
export function useEventAction<P extends DecorateMutationProcedure<any>>(
trpcProcedure: P
) {
const eventConfigurations = useEventConfigurations()
const allOptions = {
...trpcProcedure.mutationOptions(),
...queryClient.getMutationDefaults(trpcProcedure.mutationKey())
}
@rikukissa
rikukissa / diff-copy-files.ipynb
Created November 22, 2024 12:42
Get the list of changed copy items
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[core]
quotepath = false
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[color]
ui = true
[color "branch"]
current = yellow black
local = yellow
@rikukissa
rikukissa / repos.md
Last active September 10, 2023 14:12
Should I have my UI and my API in separate repositories?

Should I have my UI and my API in separate repositories?


Keep the number of repositories as small as possible.
You can easily start with just one repository and move some code to another when needed. This is to make your life within the project as easy as possible. As most increments require changes both in the API and the UI, it makes sense to treat them as one


@rikukissa
rikukissa / POST.md
Last active July 21, 2019 20:03
No Code UI
title slug createdAt language preview comments
Rakenna oma mobiilisovellus. Ilman koodia!
no-code-ui
2019-07-18T20:04:29Z
fi
Nettisivun tai mobiilisovelluksen toteuttamiseen ei aina tarvita koodaria.
false

Rakenna oma mobiilisovellus. Ilman koodia!

@rikukissa
rikukissa / POST.md
Last active August 28, 2019 04:49
No Code
title slug createdAt language preview comments
Kiinnostaako No Code? Tule kurssille!
no-code
2019-07-10T10:28:47Z
fi
Vievätkö jatkuvasti toistuvat digitaaliset askareet aikaasi oikealta työltä? Mitä jos pystyisit itse automatisoimaan osan työtehtävistäsi?
false

Kiinnostaako No Code? Tule kurssille!

@rikukissa
rikukissa / POST.md
Last active February 10, 2025 23:38
React Hook prompting the user to "Add to homescreen" 🏠 #PWA #React
title slug createdAt language preview
React Hook prompting the user to "Add to homescreen"
react-hook-prompting-the-user-to-add
2018-11-29T20:35:02Z
en
Simple React Hook for showing the user a custom "Add to homescreen" prompt.

React Hook for showing custom "Add to homescreen" prompt