Skip to content

Instantly share code, notes, and snippets.

View TheNextGuy32's full-sized avatar

Oliver Barnum TheNextGuy32

  • Austin, Texas
View GitHub Profile
These are the issues that will probably come up in creating something. In general, to succeed at
business, one must overcome these issues, and _create_ these issues for their competitors in order to
have a competitive moat around their project.
The Issue of Manufacturing
Scale up to large scale production. Build more than a prototype. Exhaustively hit every edge case.
Create the end to end solution. Spend the capital required to scale to the market size.
The Issue of Sales
An idea has to be sold to customers. You must market at the scale of your niche, whether that means
{
"Bad": {
"Bored": ["Indifferent", "Apathetic"],
"Busy": ["Pressured", "Rushed"],
"Stressed": ["Overwhelmed", "Out of control"],
"Tired": ["Sleepy", "Unfocussed"]
},
"Fearful": {
"Scared": ["Helpless", "Frightened"],
"Anxious": ["Overwhelmed", "Worried"],
@TheNextGuy32
TheNextGuy32 / ItemImporter.gd
Created October 31, 2024 16:28
Can you help me write idiomatic Godot code?
extends Node3D
var base_url: String = "http://127.0.0.1:5000"
var roblox_user_id: String = "427590401"
func _ready():
var http_request = HTTPRequest.new()
add_child(http_request)
http_request.request_completed.connect(_on_get_owned_items_completed)
var url = base_url + "/items/moderation_status?moderationStatus=APPROVED&pageSize=16"
@TheNextGuy32
TheNextGuy32 / gist:d10cf6095c5cc24143558ecbf7a4ca11
Created December 30, 2023 21:11
ls -l of unpacked imagemagick
total 0
drwxr-xr-x 18 MYUSERNAME staff 576 Nov 23 2020 bin
drwxr-xr-x 3 MYUSERNAME staff 96 Nov 23 2020 etc
drwxr-xr-x 3 MYUSERNAME staff 96 Nov 23 2020 include
drwxr-xr-x 16 MYUSERNAME staff 512 Nov 23 2020 lib
drwxr-xr-x 5 MYUSERNAME staff 160 Nov 23 2020 share
@TheNextGuy32
TheNextGuy32 / convertCurDirLuaFilesToTs.py
Created October 26, 2023 02:07
Convert all lua files in directory to ts
import openai
import math
import os
def convertLuaFileContentsToTypeScript(luaFileContents):
conversation = [{
"role": "user", "content": "Convert the following Lua code to typescript. To provide context for the above prompt, I will send you text in parts. When I am finished, I will tell you ALL PARTS ARE SENT. Do not answer until you have received all the parts."
}]
# luaFileContents = luaFileContents[0:min(len(luaFileContents), int(4096/2))]
messageCount = math.ceil(len(luaFileContents) / 2490)
@TheNextGuy32
TheNextGuy32 / ViolentAI.lua
Created October 17, 2023 05:47
An example of roblox code
local Utility = game.ReplicatedStorage:WaitForChild("Utility")
local GetReplicatedStorage = require(Utility:WaitForChild("GetReplicatedStorage"))
local Get = require(GetReplicatedStorage("Get", Utility))
local class = Get("Lib/middleclass")
local ECS = Get("Lib/ECS")
local ViolentAI = class("ViolentAI", ECS.Component)
function ViolentAI:initialize()
self.name = "ViolentAI"
return function(path, beginWith)
if path == nil then
return nil
end
local paths ={}
local i=1
if path == nil then
return nil
end
@TheNextGuy32
TheNextGuy32 / ExampleClass.lua
Last active February 22, 2021 03:17
Next Day Games Quick Start
local GetReplicatedStorage = require(game.ReplicatedStorage:WaitForChild("GetReplicatedStorage"))
local class = require(GetReplicatedStorage("middleclass"))
local ClassName= class("ClassName")
local CSF = require(GetReplicatedStorage("Events/ClientServerFacilitator"))
local EventType = require(GetReplicatedStorage("Events/EventType"))
function ClassName:initialize(loggingController)
if loggingController == nil then
@TheNextGuy32
TheNextGuy32 / Event.txt
Last active July 2, 2020 06:24
Stellaris Event File Json Parse Example
################################
#
# Galactic Community Events
#
###############################
namespace = galcom
# Proposal to form the Galactic Community (HIDDEN)
event = {
@TheNextGuy32
TheNextGuy32 / Templative.rb
Last active April 1, 2020 05:57
Python brew package can't install python pillow, produces output
class Templative < Formula
include Language::Python::Virtualenv
desc "Templates"
homepage "https://github.com/..."
url "https://github.com/.../0.0.0.tar.gz"
sha256 "..."
depends_on "cairo"
depends_on ...