This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is a quick recipe for how to have a rust application invoke a javascript method using rusty v8 and do something useful. | |
The rusty v8 source code does show how to do a simpler version of calling rust from javascript in their examples folder - however I wanted an example that ferried some state through javascript back to Rust. In this way javascript can be used as a scripting layer with native code having enough context and information to do real work. Probably another way to do this would be to use a global pointer. | |
Here are some useful links: | |
https://github.com/denoland/rusty_v8/blob/main/examples/hello_world.rs | |
https://github.com/denoland/rusty_v8/blob/main/tests/test_api.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs") | |
var pdf_table_extractor = require("pdf-table-extractor"); | |
var fetch = require( 'node-fetch' ); | |
var excel = require( 'write-excel-file/node' ); | |
/////////////////////////////////////////////////////////////////////////////////////////////// | |
// fetch things from net | |
let urlbase = "https://www.bppe.ca.gov" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Example Agora bindings to Unreal 5.02 using materials rather than UImage. | |
Usage: | |
1) AgoraActorHelper should be compiled into your project. | |
2) Make a material and add it to your project anywhere. Click on that material to bring up the material wire editor. Add a texture parameter called "mytexture". | |
3) Make a blueprint that is a subclass of AgoraActorHelper. Instance this blueprint into a test level. | |
4) In that blueprint view make a cube. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I wanted to comment briefly on this LLM/SQL binding because (thinking about it) there are some deep ramifications for other projects. Basically - it's hugely empowering to think of LLMs as a bridge between natural language and DSLs (domain specific grammars). | |
As we know, everybody is talking about an "AI revolution" but it isn't always clear precisely or exactly how AI benefits organizations. We all appreciate that it can summarize, or write copy or so on, but that is more evolutionary rather than transformational. | |
What I now appreciate better (in toying around with this example code below) is that we as programmers have already built armatures for manipulating the world. And all we need are bridges to them. And that by itself is fairly transformational for human labor. | |
We've invented a ton of specialized, formal, actionable grammars that can translate what is effectively prose into actual physical actions. SQL is one example of a formal actionable grammar, but so is gcode (for driving 3d printers), an |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Babylon Template</title> | |
<style> | |
html, body { | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Babylon Template</title> | |
<style> | |
html, body { | |
overflow: hidden; |
OlderNewer