Skip to content

Instantly share code, notes, and snippets.

View Quenty's full-sized avatar
🎉
Follow me on Twitter @Quenty

James Onnen Quenty

🎉
Follow me on Twitter @Quenty
View GitHub Profile
local _G,_VERSION,assert,collectgarbage,dofile,error,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,xpcall,coroutine,math,string,table,game,Game,workspace,Workspace,delay,Delay,LoadLibrary,printidentity,Spawn,tick,time,version,Version,Wait,wait,PluginManager,crash__,LoadRobloxLibrary,settings,Stats,stats,UserSettings,Enum,Color3,BrickColor,Vector2,Vector3,Vector3int16,CFrame,UDim,UDim2,Ray,Axes,Faces,Instance,Region3,Region3int16=_G,_VERSION,assert,collectgarbage,dofile,error,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,xpcall,coroutine,math,string,table,game,Game,workspace,Workspace,delay,Delay,LoadLibrary,printidentity,Spawn,tick,time,version,Version,Wait,wait,PluginManager,crash__,LoadRobloxLibrary,settings,Stats,stats,UserSettings,Enum,Color3,BrickColor,Vector2,Vector3,Vector3int16,CFram
@Quenty
Quenty / ScrapeRobloxModelSales.js
Created November 14, 2015 19:39
Scrapes ROBLOX model sales for a user.
// Will pull off items on a page and repeat until it runs out of pages.
var numberOfPagesToScrape = 10;
function scrapePage(page) {
var count = 0, salesTotal = 0;
$(page).find("div.CatalogHoverContent div:contains(Sales)").has(".CatalogItemInfoLabel").each(function(index, object) {
var sales = $(object).find(".HoverInfo");
sales.each(function(index, actualSalesObject) {
var sold = parseInt($(actualSalesObject).text().replace(/,/g, ''))
salesTotal += sold;
local HttpService = game:GetService("HttpService")
local API = HttpService:JSONDecode(HttpService:GetAsync("http://anaminus.github.io/rbx/json/api/latest.json"))
local ValidClasses = {}
for _, Description in pairs(API) do
if Description.type == "Property" and Description.ValueType == "Content" then
local Properties = ValidClasses[Description.Class] or {}
table.insert(Properties, Description.Name)
ValidClasses[Description.Class] = Properties
end
@Quenty
Quenty / WFYB_Changelog_1.22.17.md
Created May 20, 2017 02:23
Whatever Float your Boat's Changelog V1.22.17md

Summmary

  • Added Balloons, Level 150
  • Added Redsteel Armour Plate, Level 120
  • Steel armour no longer float
  • Added named boats (Shows in save slots)
  • Blueprints now save
  • Owners no longer pay for repairs
  • Can now warp to pushed boats
  • Opening menu no longer kills your character
  • Menu shortcut: M
  1. Open up web.groupme.com
  2. Scroll up on some chat making sure to load a lot chat messages (maximize likable messages)
  3. Push F12 to open up developer console
  4. Paste the following code from below "Liking all unliked items"
  5. ???
  6. Profit!

Liking all unliked items

This is basically a Roblox OOP system that I've been using.

The documentation is in LuaDoc, and is sometimes included

First module:

--- Represents a basic class
local Class = {}
Class.__index = Class
Class.ClassName = "Class" -- I set a ClassName in the metatable to make debugging easier and to make it clear this is a class
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local BaseClass = LoadCustomLibrary("BaseClass")
local MakeMaid = LoadCustomLibrary("Maid").MakeMaid
-- Intent:
-- @author Quenty
@Quenty
Quenty / KeyboardDark.lua
Created January 14, 2018 03:58
Generated output
--- Generated KeyboardDark with Python
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Spritesheet = require("Spritesheet")
local KeyboardDark = setmetatable({}, Spritesheet)
KeyboardDark.ClassName = "KeyboardDark"
KeyboardDark.__index = KeyboardDark
@Quenty
Quenty / statename_to_abbr.py
Last active January 5, 2022 18:50
State name to abbreviation python dictionary
statename_to_abbr = {
# Other
'District of Columbia': 'DC',
# States
'Alabama': 'AL',
'Montana': 'MT',
'Alaska': 'AK',
'Nebraska': 'NE',
'Arizona': 'AZ',
local ToolTip = {}
ToolTip.__index = ToolTip
function ToolTip.new()
local self = setmetatable({}, ToolTip)
return self
end
function ToolTip:Show()