Skip to content

Instantly share code, notes, and snippets.

View kingjbbrooks's full-sized avatar

kingjbbrooks

View GitHub Profile
@kingjbbrooks
kingjbbrooks / node-python-fastai.md
Created November 9, 2020 02:35 — forked from zcaceres/node-python-fastai.md
Starter code to use NodeJS with a Python layer for the model.

Deploying a Deep Learning Image Classification Model with NodeJS, Python, and Fastai

TL|DR: Use this to easily deploy a FastAI Python model using NodeJS.

You've processed your data and trained your model and now it's time to move it to the cloud.

If you've used a Python-based framework like fastai to build your model, there are several excellent solutions for deployment like Django or Starlette. But many web devs prefer to work in NodeJS, especially if your model is only part of a broader application.

My friend Navjot pointed out that NodeJS and Python could run together if we could send remote procedure calls from NodeJS to Python.

@kingjbbrooks
kingjbbrooks / GSoC 2018 - Brandon Makin - WebRTC in Godot
Created July 22, 2020 05:23 — forked from BrandonMakin/GSoC 2018 - Brandon Makin - WebRTC in Godot
GSoC 2018 Final Submission - Brandon Makin - WebRTC in Godot
My project was to allow users of the Godot game engine to create multiplayer games by connecting players via WebRTC using Godot's existing multiplayer APIs.
Godot's core can be extended by adding modules - essentially plugins that are compiled with the engine. I created a WebRTC module that can be found here:
https://github.com/BrandonMakin/godot/tree/webrtc_static_final/modules/webrtc
That folder - modules/webrtc/ - represents my work for Google Summer of Code. SConstruct, config.py, are to help the build system compile and were created by my mentor Fabio Alessandrelli. register_types.h and register_types.cpp are there to expose the WebRTCPeer and NetworkedMultiplayerWebRTC classes to Godot's internal scripting and were created by Fabio Alessandrelli and modified by me, Brandon Makin. The rest of the code uses WebRTC's PeerConnectionInterface to implement Godot's multiplayer API. webrtc_peer.h and webrtc_peer.cpp create the WebRTCPeer class, a class that uses Godot's lower-level PacketPeer API.
@kingjbbrooks
kingjbbrooks / infosec_newbie.md
Created June 23, 2018 11:29 — forked from mubix/infosec_newbie.md
How to start in Infosec
/*
* Chemical equation balancer
*
* Copyright (c) 2014 Project Nayuki
* All rights reserved. Contact Nayuki for licensing.
* http://www.nayuki.io/page/chemical-equation-balancer-javascript
*/
"use strict";