View AgoraActorHelper.cpp
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. |
View gist:72906b2796c6d16621659fab00e5b25c
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" |
View rustyv8jscallback.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
/* | |
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 |
View avfoundation rust webcam
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
// the below is a rust port of https://gist.github.com/bellbind/6954679 | |
// capture image from webcam(e.g. face time) | |
// some helpful examples | |
// https://kyle.space/posts/cocoa-apps-in-rust-eventually/ | |
// msg_send | |
// https://github.com/SSheldon/rust-objc/blob/master/examples/example.rs |
View gist:33015bffe4989a6ebe20a68dbb17c499
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
// See the Figma https://www.figma.com/file/pzq5EhzdxXvhpBoFlB8MDd/Money-Savings-App?node-id=5%3A3 | |
// And see the app https://glitch.com/edit/#!/web3-time-lock | |
pragma solidity >=0.4.22 <0.7.0; | |
contract FutureBank { | |
address private owner; | |
mapping (address => uint256) private balances; | |
mapping (address => uint256) private locktime; |
View simplefirebasesetup
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 outline of building an web service with these constraints: | |
- some kind of cloud hosting; ie; visibile anywhere on the internet, no fretting over back end unix installs | |
- presents a user editable fillable form on a web page | |
- saves that user supplied form data to persistent state on the server | |
- signs the user supplied information with a private key | |
- does some secure server side transactionally bound database actions | |
- returns a result to the user | |
I've been using firebase lately and I'd definitely do it this way if I was asked to do a quick one off. |
View gist:2e9e45211b90abe30284f233386e5b62
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
### Keybase proof | |
I hereby claim: | |
* I am anselm on github. | |
* I am anselmhook (https://keybase.io/anselmhook) on keybase. | |
* I have a public key whose fingerprint is 47D8 81E1 7770 619D F180 C796 238F A172 01DE BFE1 | |
To claim this, I am signing this object: |
View categories.txt
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
- categories | |
- support | |
- hardware | |
- 3d trackers | |
- rendering | |
- animation | |
- datastore | |
- cloud service | |
- account management |
View gps_sound_game.html
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
<!-- see the writeup at https://medium.com/@anselm/playing-with-gps-spatialized-web-audio-f86e45d31d10 --> | |
<canvas id="mycanvas" width=512 height=512> | |
</canvas> | |
<script> | |
// a small database of all the objects | |
let artifacts = [ |
View import_some_data_to_parse.js
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 http = require('http'); | |
function pushme(mydata,mytable) { | |
var postData = JSON.stringify( mydata ); | |
var options = { | |
hostname: 'localhost', | |
port: 1337, | |
path: '/parse/classes/'+mytable, |
NewerOlder