Skip to content

Instantly share code, notes, and snippets.

View BrodaNoel's full-sized avatar
🏠
Solving problems I created

Broda Noel BrodaNoel

🏠
Solving problems I created
View GitHub Profile
@BrodaNoel
BrodaNoel / gist:ac59baf595b27e2f98651a5336c28b3a
Created March 3, 2026 23:39
Qwen3.5:0.8b totally broken after saying "hola"
```bash
➜ all git:(main) ✗ ollama run qwen3.5:0.8b
>>> hola
Thinking...
Thinking Process:
1. **Analyze the Input:**
* Input: "hola" (English word with an accent).
* Language: Spanish, specifically Spanish with a non-standard or standard mix. Wait, looking closer: "hola". This is a common greeting. It could also be interpreted as an English-to-Spanish prompt
response or just the user greeting me in English. No, it says "hola" (Spanish) with an accent on 'a' (español).
import React from 'react';
import { View, TouchableOpacity } from 'react-native';
import duix from 'duix';
class Login extends React.Component {
onLoginClick = () => {
// here you do something to login the user
// ...
// then redirect to the Home page
import React from 'react';
import { View, TouchableOpacity } from 'react-native';
import duix from 'duix';
class Home extends React.Component {
onLogOutClick = () => {
// here you do something to logout the user
// ...
// then redirect to the Login page again
import React, { Component } from 'react';
import duix from 'duix';
// Pages
import Loading from './src/pages/Loading';
import Login from './src/pages/Login';
import Home from './src/pages/Home';
import Contact from './src/pages/Contact';
// ...more dependencies...
const DEFAULT_PAGE = 'Loading';
const unsubscribe = duix.subscribe('x', (x) => console.log(x));
unsubscribe();
duix.subscribe('user', (user) => {
console.log(user);
});
// or
duix.subscribe('user', (newUserValue, prevUserValue) => {
console.log('New User value is:', newUserValue);
console.log('Previous User value was:', prevUserValue);
});
const user = duix.get('user');
// or
const isLogged = duix.get('isUserLogged');
// or whatever
duix.set('user', { name: 'Noel' });
// or
duix.set('isUserLogged', true);
// or whatever
// src/components/Conditional.jsx
const Conditional = (props) => {
return(
!!props.if && props.children
);
}
export default Conditional;
// Implementation:
// src/components/Conditional.jsx
const Conditional = (props) => {
return(
!!props.if && props.children
);
}
export default Conditional;
// Implementation: