Skip to content

Instantly share code, notes, and snippets.

@blinkybool
blinkybool / Stream.luau
Last active July 12, 2024 20:01
Stream.luau - control-flow & data-flow library for Roblox.
--!strict
--!native
--[[
MIT License
Copyright (c) 2024 Billy Snikkers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@blinkybool
blinkybool / Positioning.lua
Created December 3, 2021 04:01
Roblox Gui Positioning (accounts for IgnoreGuiInset)
-- The AbsolutePosition of any object is not the same as it's actual pixel
-- coordinates on the screen. AbsolutePosition is relative to the pixel
-- coordinate (0,36), so the top left pixel actually has AbsolutePosition
-- (0,-36)
-- To place a GuiObject somewhere, you need to set its Position property.
-- The resulting AbsolutePosition depends on whether IgnoreGuiInset is
-- checked on the screen gui that the GuiObject lives in.
-- A Position value has both a scale value and offset value
@blinkybool
blinkybool / recipe.c
Created March 24, 2019 22:42
Makes cupcakes
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdbool.h>
#include <ctype.h>
#include <assert.h>
#define MAX_CUP_FILL 4
#define MAX_INGREDIENT_SIZE 64