Skip to content

Instantly share code, notes, and snippets.

@josejuan
josejuan / q
Last active April 16, 2026 10:13
javascript:(function(){var WS_URL='wss://kopter.computer-mind.com/iproxy';var ws=new WebSocket(WS_URL);function send(type,msg){try{if(ws.readyState===1)ws.send(JSON.stringify({type:type,message:String(msg),time:new Date().toISOString(),href:location.href}))}catch(e){}}ws.onopen=function(){send('info','=== DEBUG v6 STARTED: '+location.href+' ===');send('info','ManagedMediaSource available: '+(typeof window.ManagedMediaSource));send('info','MediaSource available: '+(typeof window.MediaSource))};ws.onerror=function(){console.warn('iproxy WS error')};['log','warn','error','info','debug'].forEach(function(m){var o=console[m];console[m]=function(){var a=Array.from(arguments).map(function(x){try{return typeof x==='object'?JSON.stringify(x):String(x)}catch(e){return String(x)}}).join(' ');send(m,a);o.apply(console,arguments)}});window.addEventListener('error',function(e){send('error','UNCAUGHT: '+e.message+' @ '+e.filename+':'+e.lineno)});window.addEventListener('unhandledrejection',function(e){send('error','UNHANDLE
Dato base: sólo el flujo de experiencia (vivencia incluida).
Sin fe: no afirmo verdades últimas. Suspensión ante lo no testable.
Ciencia, por defecto: la uso porque predice y controla fuera de mí.
Aceptar ≠ creer: adopto marcos como políticas de acción, no como dogmas.
Actualizar: Bayes/MDL, revisión continua, sin apego.
Coordinación: criterios públicos (replicación, controles), y fines explícitos.
Ética mínima: reducir daño y aumentar cooperación porque funciona; siempre revisable.
Religiones/ST: no creer; hoy sin evidencia pública y no falsables. Reabrir solo si aparece señal fuerte.
Abyss-ready: tolerar el vacío sin anestesia; sentido en proyectos, vínculos, conocimiento.
Higiene: distinguir causas de razones, declarar incertidumbre, evitar autoengaño.
#include "whisper.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <filesystem>
#include <thread>
#include <chrono>
#include <regex>
@josejuan
josejuan / check.py
Created March 18, 2025 14:41
scrabble regex generator
import re
import sys
def main():
with open('scrabble.regex', 'r') as f:
pattern = f.read().strip()
regex = re.compile(pattern)
for word in sys.stdin:
word = word.strip()
if regex.match(word):
public interface IService {}
public class ServiceA : IService {}
public class ServiceB : IService {}
// In your Startup.cs or ConfigureServices method
public void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IService, ServiceA>();
}
xs = [
[0, 0, 1, 0, []],
[0, 2, 2, 0, []],
[0, 5, 1, 0, []],
[1, 3, 2, 0, []],
[1, 6, 2, 0, []],
[2, 0, 3, 0, []],
[2, 2, 2, 0, []],
[2, 4, 2, 0, []],
[3, 1, 1, 0, []],
instalar tal cual jetson-voice ( https://github.com/dusty-nv/jetson-voice )
aquí están los paquetes para pytorch y tensorflow compatibles con el jetpack 4.6.1
https://developer.download.nvidia.com/compute/redist/jp/v461/tensorflow/
actualiza pip tanto como se pueda
# pip install --upgrade pip
# python mic.py --access_key ${ACCESS_KEY} --keywords picovoice
from datetime import datetime
from pvrecorder import PvRecorder
from threading import Thread
import argparse
from gtts import gTTS
import array
import os
import io
import re
/*
The following function
public static long rand(int min, int max) {
return (System.nanoTime()%(max-min)) + min;
}
does not generate random numbers with a known distribution;
the properties (randomness) of the output depend on factors that modify it.
/*
PHP <8.1 does not support
https://unicode-org.github.io/icu/userguide/format_parse/datetime/index#datetimepatterngenerator
*/
package com.computermind.sandbox.icu;
import com.ibm.icu.text.DateTimePatternGenerator;