Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab gists with given topic

Registrati

Entra


Tutti Nuovi Registrati Entra

All gists matching topic phoenix

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
gaiety's Avatar

gaiety / ecto-search-simple-word-similarity.ex

0 mi piace
0 forks
1 files
Ultima volta attivo 7 months ago
ecto elixir phoenix search
1 defp items_search(search) do
2 dynamic(
3 [item],
4 fragment(
5 "word_similarity(?, CONCAT(?, ' ', ?)) > 0.6",
6 ^search,
7 item.name,
8 item.description
9 )
10 )
gaiety's Avatar

gaiety / Phoenix (Elixir) + LitElement + TailwindCSS

0 mi piace
0 forks
1 files
Ultima volta attivo 7 months ago
Inline import the compiled TailwindCSS and Phoenix LiveView ViewHook and make it available to components
elixir lit phoenix tailwindcss
1 import {LitElement, unsafeCSS} from 'lit'
2 import type {ViewHook} from 'phoenix_live_view'
3 import styles from '../../../priv/static/assets/app.css?inline'
4
5 declare global {
6 interface HTMLElement {
7 LitLiveHook?: ViewHook
8 }
9 }
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 46ms⋅

Italiano
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ Links ⋅ Portfolio ⋅ Git