Skip to content

Instantly share code, notes, and snippets.

@kenwebb
kenwebb / README.md
Last active January 13, 2025 15:54
Meal Planner

Meal Planner

Please make me a meal planner that includes 5 dinner recipes. I have the following ingredients: "frozen broccoli, canned black beans, canned chick peas, tomato sauce, chicken pieces, mild curry paste, peanut butter, soy sauce, frozen vegetables, rice, olive oil, crackers".

DuckDuckGo AI

  • four AI engines

  • my query:

  • and results:

@kenwebb
kenwebb / xholonWorkbook.xml
Created January 3, 2025 22:45
Tensors and TensorFlow.js
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Fri Jan 03 2025 17:44:33 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Tensors and TensorFlow.js
Description:
Url: http://www.primordion.com/Xholon/gwt/
@kenwebb
kenwebb / README.md
Last active December 27, 2024 13:53
How to charge a sodium ion battery

Explain how I can charge a 3v 3500mAh sodium ion battery using a 5v solar cell.

To charge a 3V 3500mAh sodium-ion battery using a 5V solar cell, you'll need a charging circuit to regulate the voltage and current from the solar cell to ensure safe and efficient charging. Here’s how you can do it step-by-step:


1. Understand the Charging Requirements

  • Nominal Battery Voltage: 3V
  • Battery Capacity: 3500mAh (3.5Ah)
  • Solar Cell Output: 5V (check the actual current output under typical sunlight conditions)
@kenwebb
kenwebb / index.html
Last active December 29, 2024 02:19
Experimenting with GPT and LLM using JavaScript
<!doctype html>
<!-- file:///home/ken/nodespace/gpt-tokenizer/index.html -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="author" content="Ken Webb et al" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://unpkg.com/gpt-tokenizer"></script>
<script>
@kenwebb
kenwebb / xholonWorkbook.xml
Last active December 20, 2024 02:48
SysDyn with JSO(N) and Acorn
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Thu Dec 19 2024 21:48:19 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: SysDyn with JSO(N) and Acorn
Description:
Url: http://www.primordion.com/Xholon/gwt/
@kenwebb
kenwebb / xholonWorkbook.xml
Last active December 16, 2024 17:49
JavaScript - Abstract Syntax Tree (AST) 2
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Mon Dec 16 2024 12:49:09 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: JavaScript - Abstract Syntax Tree (AST) 2
Description:
Url: http://www.primordion.com/Xholon/gwt/
@kenwebb
kenwebb / READMEksw.txt
Last active December 16, 2024 12:43
JavaScript - Abstract Syntax Tree (AST)
Ken Webb
10 Dec 2024
READMEksw.txt
I am trying to download and install the acorn parser.
https://github.com/acornjs/acorn
cd ~/nodespace
mkdir acorn
cd acorn
@kenwebb
kenwebb / xholonWorkbook.xml
Last active December 9, 2024 10:52
Rechenmann Modeling Language
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Mon Dec 09 2024 05:51:13 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Rechenmann Modeling Language
Description:
Url: http://www.primordion.com/Xholon/gwt/
@kenwebb
kenwebb / xholonWorkbook.xml
Last active December 6, 2024 18:53
China Bans Rare Mineral Exports to the U.S.
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Fri Dec 06 2024 13:53:25 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: China Bans Rare Mineral Exports to the U.S.
Description:
Url: http://www.primordion.com/Xholon/gwt/
@kenwebb
kenwebb / xholonWorkbook.xml
Last active December 6, 2024 11:31
Industrial Dynamics - Appendix C
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Fri Dec 06 2024 06:30:38 GMT-0500 (Eastern Standard Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Industrial Dynamics - Appendix C
Description:
Url: http://www.primordion.com/Xholon/gwt/