Skip to content

Instantly share code, notes, and snippets.

View unlocomqx's full-sized avatar
🏠
Working from home

Tuni-Soft unlocomqx

🏠
Working from home
  • Module Dev - Tuni-Soft
  • [object Object]
View GitHub Profile
{
"nodes": [
{
"parameters": {
"jsonMode": "expressionData",
"jsonData": "={{ $json.data }}",
"textSplittingMode": "custom",
"options": {}
},
"id": "38837bb1-6a07-4a22-b400-072aac4af3ac",
{
"nodes": [
{
"parameters": {
"modelName": "models/gemini-2.5-pro",
"options": {}
},
"id": "a32c839f-144b-47a0-b6a4-bd619e645c81",
"cid": "Ikx1Y2FzIFBleXJpbiI",
"name": "Gemini 2.5 Flash",
{
"nodes": [
{
"parameters": {},
"id": "aa837d1f-f1ab-4d17-8709-ebf99161fc1c",
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
80
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
environment:
TZ: Australia/Brisbane
ports:
- '88:80'
- '81:81'
- '444:443'
import cookies from 'browser-cookies';
import { browser } from '$app/environment';
let { erase, get, set } = cookies;
export class LocalStore<T> {
value = $state<T>() as T;
key = '';
constructor(key: string, default: T) {
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-368,
1024
],
{
"nodes": [
{
"parameters": {
"jsCode": "const matches = / \\- (\\d+)/.exec($input.first().json.subject)\nreturn [{threadId: matches?.[1]}]"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-128,
<select [value]="selectedState()" (change)="onStateChange($event)">
<option *ngFor="let state of states()" [value]="state">
{{ state }}
</option>
</select>
<select
[value]="selectedCity()"
(change)="onCityChange($event)"
[disabled]="isPending()">
import { Component, signal, computed, effect, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { toSignal } from '@angular/core/rxjs-interop';
import { from, switchMap, startWith } from 'rxjs';
@Component({
selector: 'app-chained-selects',
standalone: true,
imports: [CommonModule, FormsModule],
<script setup>
import { ref, watch, onMounted, computed } from 'vue';
// --- STATE (Equivalent to Svelte's $state / React's useState) ---
const states = ref([]);
const selectedState = ref('');
const cities = ref([]);
const selectedCity = ref('');
// --- LOADING STATE (Mimics Svelte's implicit $effect.pending()) ---