Skip to content

Instantly share code, notes, and snippets.

View yujonglee's full-sized avatar

yujonglee yujonglee

View GitHub Profile
2025-10-30T10:50:54.773784Z INFO detect::mic::macos: adding_system_listener_success
2025-10-30T10:50:54.773934Z INFO detect::mic::macos: adding_device_listener_success
2025-10-30T10:50:55.105353Z INFO tauri_plugin_tracing::ext: [String("[LocalPersister]"), String("BEGIN"), Null]
2025-10-30T10:50:55.139217Z WARN tauri_plugin_tracing::ext: [String("[tiptap warn]: Duplicate extension names found: ['clipboardTextSerializer']. This can lead to issues.")]
2025-10-30T10:50:55.157584Z INFO tauri_plugin_tracing::ext: [String("[AutoEnhance] Skip: No language model available")]
2025-10-30T10:50:55.161043Z INFO tauri_plugin_tracing::ext: [String("[LocalPersister]"), String("SELECT t.name tn,c.name cn FROM pragma_table_list()t,pragma_table_info(t.name)c WHERE t.schema='main'AND t.type IN('table','view')AND t.name IN($1)ORDER BY t.name,c.name"), Array [String("main")]]
2025-10-30T10:50:55.193129Z INFO tauri_plugin_tracing::ext: [String("[LocalPersister]"), String("END"), Null]
2025-10-30T10:50:55.204438Z INFO tauri
defmodule CanaryWeb.SettingsSubdomainLive do
use CanaryWeb, :live_view
def render(assigns) do
~H"""
<div>
<.form :let={f} for={@subdomain_form} class="flex flex-col gap-4" phx-submit="subdomain-submit">
<input type="hidden" name={f[:account_id].name} value={@current_account.id} />
<input
name={f[:name].name}
Text-to-Table: A New Way of Information Extraction
Xueqing Wu1 , Jiacheng Zhang2 , Hang Li2
University of Illinois Urbana-Champaign1
ByteDance AI Lab2
xueqing8@illinois.edu
zhangjiacheng.grit,lihang.lh@bytedance.com
Abstract
arXiv:2109.02707v2 [cs.CL] 16 Mar 2022
arXiv:1706.03762v5 [cs.CL] 6 Dec 2017
Attention Is All You Need
Ashish Vaswani∗
Google Brain
avaswani@google.com
Llion Jones∗
Google Research
llion@google.com
@yujonglee
yujonglee / vector_set.rs
Created April 19, 2022 09:54
vector_set.rs
// Idea from https://stackoverflow.com/questions/53755017/can-i-randomly-sample-from-a-hashset-efficiently
use std::collections::HashSet;
pub struct VecSet<T> {
set: HashSet<T>,
vec: Vec<T>,
}
impl<T> VecSet<T>
@yujonglee
yujonglee / flatKey.ts
Last active March 20, 2022 02:40
flatKey.ts
export const flatKey = (input: object, keys: string[]): any => {
if (typeof input !== "object") {
return input;
}
if (Array.isArray(input)) {
return input.map((element) => flatKey(element, keys));
}
return Object.entries(input).reduce((acc, [key, value]) => {
<script>
export let values;
</script>
<slot {values}/>
<!-- https://svelte.dev/repl/fbe11bd5d3b84dfc91bdba645e4b69e2?version=3.44.3 -->
<script lang="ts">
import {onMount} from "svelte";
export let query: string;
let isMatched = false;
const mediaQueryList = window.matchMedia(query);
const mqlListener = ({matches}: MediaQueryList): void => {isMatched = matches;};
@yujonglee
yujonglee / psl-sdl.ts
Created December 22, 2021 05:04
PSL VS SDL
enum SDL {
ID = 'ID',
Int = 'Int',
Float = 'Float',
String = 'String',
Boolean = 'Boolean',
}
enum PSL {
Int = 'Int',
@yujonglee
yujonglee / rule.ts
Last active December 22, 2021 04:52
Rule type in graphql-schema-generator
type Rule = {
matcher: (field: DMMF.Field, model: DMMF.Model) => boolean;
transformer: (field: DMMF.Field, type: DMMF.Field['type']) => DMMF.Field['type']);
};