This file contains hidden or 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
| .intel_syntax noprefix # Set dialect to Intel (AT&T default for GAS) | |
| .global main | |
| .format: | |
| .asciz "%2d\n" | |
| main: | |
| mov rdi, [rsi + 8] # argv[1] | |
| call atoi # > eax |
This file contains hidden or 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
| --[[ | |
| @name Cluster | |
| @desc Clustering algorithm. Originally authored by @BadccVoid. Optimizations? | |
| @example_usage Cluster.Query({Vector3.new(), Vector3.new()}):Within(20):GetCenters() --> { Vector3.new() } | |
| @example_usage Cluster.Query({Vector3.new(), Vector3.new()}):Within(4):GetClusters() --> { { Vector3.new(), Vector3.new() } } | |
| ]] | |
| -- Source | |
| local Cluster = {} | |
| Cluster.__index = Cluster | |
| function Cluster.Query(Points) |
This file contains hidden or 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
| local ToolbarMenuStrings = {"Hello", "World", "Menu", "Bar", "Has", "Awesome", "MenubarSupport"} | |
| local Used = {} | |
| function Eval(Str) | |
| local Index = 0 | |
| local Current = Str:gsub('%U', '') | |
| if (#Current == 0) then | |
| Current = Str:gsub('%u', '') | |
| end | |
| while (Index < #Current+1) do | |
| Index = Index + 1 |
NewerOlder