content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
// Voice types VO_DEATH = 1 VO_PAIN = 2 VO_TAUNT = 3 VO_ALERT = 4 VO_IDLE = 5 VO_EVAC = 6 // Class types for humans CLASS_SCOUT = 1 CLASS_COMMANDO = 2 CLASS_SPECIALIST = 3 CLASS_ENGINEER = 4 // Zed types CLASS_RUNNER = 1 CLASS_BANSHEE = 2 CLASS_CONTAGION = 3 CLASS_LEAPER = 4 // Event types EVENT_BONUS = 1 EVENT...
nilq/small-lua-stack
null
print("===== Main =====") print("HELLO WORLD")
nilq/small-lua-stack
null
-- Setup nvim-cmp. local cmp = require "cmp" local lspkind = require("lspkind") local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub( col, col):match("%s") ==...
nilq/small-lua-stack
null
--[[ ######################################################################### # # # camera.lua # # # # Simple Love2D ca...
nilq/small-lua-stack
null
package.path = package.path .. ";../../3rd/Penlight/lua/?.lua" local gaoi = require("gaoi") ---@type GAOI_SPACE local space = gaoi.create(20, 20, 4, 4) -- eid, etype, actype, wegiht, limit, x, y space:addObject(1, 1, 2, 1, 100, 1.0, 1.0) space:addObject(2, 2, 2, 1, 100, 1.0, 1.0) space:addObject(3, 2, 2, 1, 100, 1....
nilq/small-lua-stack
null
project_root = "../../../../.." include(project_root.."/tools/build") group("src") project("xenia-cpu-backend-x64") uuid("7d8d5dce-4696-4197-952a-09506f725afe") kind("StaticLib") language("C++") links({ "capstone", "xenia-base", "xenia-cpu", }) defines({ "CAPSTONE_X86_ATT_DISABLE", "CAP...
nilq/small-lua-stack
null
--[[ Name: "sh_autorun.lua". Product: "HL2 RP". --]] local MOUNT = MOUNT; -- Set some information. MOUNT.name = "Books"; MOUNT.author = "kuromeku"; -- Add a custom permit. kuroScript.game:AddCustomPermit("Readable Material", "3", "models/props_lab/bindergreenlabel.mdl"); -- Include some prefixed files. kuroScript.f...
nilq/small-lua-stack
null
---@class tts__Wait Wait = {} --- --- Schedules a function to be executed once, after a specified condition has been met. --- --- conditionFunc will be executed (possibly several times) until if eventually returns true, at which point the --- scheduled function (func) will be executed, and conditionFunc will no longer...
nilq/small-lua-stack
null
----------------------------------- -- Area: Horlais Peak -- Mob: Dragonian Berzerker -- KSNM30 -- TODO: Chaos Blade effect gets stronger after they use their respective 2-hour. -- 50% HP/MP reduction pre-2 hour and 75% HP/MP reduction post-2 hour. ----------------------------------- mixins = {require("scripts/m...
nilq/small-lua-stack
null
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; local COMMAND = Clockwork.command:New("StorageClose"...
nilq/small-lua-stack
null
test = require 'u-test' common = require 'common' function TestStringVerify_Handler() print("TestStringVerify_Handler") XblStringVerifyStringAsync() end function OnTestStringVerify() XblStringVerifyStringsAsync() test.stopTest() end test.TestStringVerify = function() common.init(TestStringVerify_...
nilq/small-lua-stack
null
--[[ Slide - gamemode/mapfixes/entities.lua Copyright 2017-2020 Lex Robinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
nilq/small-lua-stack
null
local Vector2 = require('geometry.vector2') --- Namespace for Xetrov-specific functionality and constants. local Xetrov = { DELTA = 1e-5, THRESHOLD = 0.025 } -- Returns the potential generated by a xetrov perturbation. function Xetrov.perturbation(space, point, source, align, range, gx, hx, offset) -- Determine t...
nilq/small-lua-stack
null
player_manager.AddValidModel( "PMC1_04", "models/player/PMC_1/PMC__04.mdl" ) list.Set( "PlayerOptionsModel", "PMC1_04", "models/player/PMC_1/PMC__04.mdl" )
nilq/small-lua-stack
null
local exports = {} local dnode = require('..') local utils = require('utils') local asserts = require('bourbon/lib/asserts') exports['test_double'] = function(test) local server = dnode:new({ z = function(f, g ,h) f(10, function(x) g(10, function(y) h(x, y) end) end) end }) local client = d...
nilq/small-lua-stack
null
--- Sneak is the @{Entity} definition for a sneaking character. -- Use is currently not known. -- -- Subclass of @{Entity}. -- @entity Sneak
nilq/small-lua-stack
null
NewGame = {} NewGame.__index = NewGame setmetatable(NewGame, { __index = NewGame, __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...) return self end, }) function NewGame:_init() self.background = love.graphics.newImage("media/menu/darkBackground.png") self.sfx = "menu...
nilq/small-lua-stack
null
local subpath = (...):match("(.-)[^%.]+$") local is = require (subpath.."is") local is_integer = is.integer local is_positive_integer = is.positive_integer local is_negative_integer = is.negative_integer local is_non_positive_integer = is.non_positive_integer local is_non_negative_integer = is.non_negative_integer lo...
nilq/small-lua-stack
null
-- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake5. -- -- -- Disable deprecation warnings for myself, so that older development -- versions will still be able to regenerate the scripts. -- premake.api.deprecations "off" -- -- Define the project. Put the release con...
nilq/small-lua-stack
null
local VolumetricFullConvolution, parent = torch.class('cudnn.VolumetricFullConvolution', 'nn.VolumetricFullConvolution') local ffi = require 'ffi' local find = require 'cudnn.find' local errcheck = cudnn.errcheck local checkedCall = find.checkedCall local Convolution = cudnn.SpatialConvolution -- if you change the...
nilq/small-lua-stack
null
package.path = "?.lua;test/lua/errors/?.lua" require 'args' -- arg type tests for string library functions -- string.byte banner('string.byte') checkallpass('string.byte',{somestring}) checkallpass('string.byte',{somestring,somenumber}) checkallpass('string.byte',{somestring,somenumber,somenumber}) checkallerrors('st...
nilq/small-lua-stack
null
local CorePackages = game:GetService("CorePackages") local CoreGui = game:GetService("CoreGui") local ContextActionService = game:GetService("ContextActionService") local Roact = require(CorePackages.Roact) local RoactRodux = require(CorePackages.RoactRodux) local Settings = script.Parent.Parent local SettingsState = ...
nilq/small-lua-stack
null
return function() require('bufferline').setup({ options = { right_mouse_command = 'bdelete! %d', left_mouse_command = 'buffer %d', show_buffer_close_icons = false, show_close_icon = false, enforce_regular_tabs = true, diagnostics = 'nvim_lsp', always_show_bufferline = fal...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) if C.Skins.BigWigs ~= true then return end -- BigWigs skin(by Affli) -- Init some tables to store backgrounds local freebg = {} -- Styling functions local createbg = function() local bg = CreateFrame("Frame") K.CreateBorder(bg, 1) return bg end local function freestyle(bar) ...
nilq/small-lua-stack
null
object_mobile_azure_cabal_troudge_ghoul_m_02 = object_mobile_shared_azure_cabal_troudge_ghoul_m_02:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_troudge_ghoul_m_02, "object/mobile/azure_cabal_troudge_ghoul_m_02.iff")
nilq/small-lua-stack
null
slot2 = "CheckInstallGamesBean" CheckInstallGamesBean = class(slot1) CheckInstallGamesBean.ctor = function (slot0) slot4 = AbstractBean ClassUtil.extends(slot2, slot0) slot0._installList = {} slot0._curInstallIndex = 1 end CheckInstallGamesBean.start = function (slot0) if (not IS_IOS_VERIFY or IS_IOS_VERIFY_AL...
nilq/small-lua-stack
null
local UIBase = require("lib.classes.UIBase") local Dimension = require("lib.datatypes.Dimension") local Vector2D = require("lib.datatypes.Vector2D") --[[ JUIScene class Inherits UIBase Internal properties: Dimension size Dimension position Hidden methods: ...
nilq/small-lua-stack
null
return { new = function() return setmetatable( { bal = 0, status = "open", }, { __index = { balance = function(self) return self.bal end, deposit = function(self, amt) ...
nilq/small-lua-stack
null
local coke = { [1] = {["name"] = "Champs de coke",["x"] = 0.0, ["y"] = 0.0, ["z"] = 0.0, ["cost"] = 5000}, [2] = {["name"] = "Traitement de coke #1",["x"] = 0.0 , ["y"] = 0.0 , ["z"] = 0.0 , ["cost"] = 5000}, [3] = {["name"] = "Traitement de coke #2",["x"] = 0.0 , ["y"] = 0.0 , ["z"] = 0.0 , ["cost"] = 5000}, [...
nilq/small-lua-stack
null
PLUGIN:set_global('Chatbox') -- Enums for message data structures. CHAT_ERROR = -1 CHAT_NONE = 0 CHAT_IMAGE = 1 CHAT_LINK = 2 CHAT_SIZE = 3 CHAT_ITALIC = 4 CHAT_BOLD = 5 require_relative 'cl_plugin' require_relative 'sv_plugin' require_relative 'cl_hooks' require_relative 'sv_hooks'
nilq/small-lua-stack
null
local Ac = require "Action" local Hurt = require "game.scene.fight.Hurt" local PickTarget = require "game.scene.fight.PickTarget" local If = Ac.If local Delay = Ac.Delay local Random = Ac.Random local Sequence = Ac.Sequence local CallFunc = Ac.CallFunc local And = Ac.And local Or = Ac.Or local Repeat = Ac.Repeat local...
nilq/small-lua-stack
null
-- -- LEW-19710-1, CCSDS SOIS Electronic Data Sheet Implementation -- -- Copyright (c) 2020 United States Government as represented by -- the Administrator of the National Aeronautics and Space Administration. -- All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
nilq/small-lua-stack
null
--[[ ~ Created by 129K ~ August 8, 2014 - August 15, 2014 --]] local Player = Game.Players.LocalPlayer local Character = Player.Character local CanDamage = false local Debounce = false local Debounce2 = false local CanDamage2 = false local Electric = false local Cam=workspace.CurrentCamera local mouse = Player:G...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_005 = object_tangible_loot_creature_loot_collections_shared_broken_lightsaber_hilt_005:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_005, "object/tangible/loot/creature/loot/collections/br...
nilq/small-lua-stack
null
-- 嗨,你好嗎? --[[GÆT]] ошибка =(
nilq/small-lua-stack
null
return { id1 = 4, id2 = 5, id3 = "ab1", num = 4, desc = "desc4", }
nilq/small-lua-stack
null
local direction = require("__flib__.direction") local shared = require("scripts.shared") local util = require("scripts.util") local linked_belt = {} function linked_belt.check_is_linked_belt(entity) return string.find(entity.name, "ee%-linked%-belt") end function linked_belt.start_connection(player, player_table,...
nilq/small-lua-stack
null
-- local -- PushUISize, PushUIColor, -- PushUIStyle, PushUIAPI, -- PushUIConfig, PushUIFrames = unpack(select(2, ...)) -- if not IsAddOnLoaded("Skada") then return end -- local _config = PushUIConfig.SkadaFrameDock -- if not _config then -- _config = { -- container = "PushUIFramesRight...
nilq/small-lua-stack
null
-- VARIABLES =================================================================== -- misc local callOnce = true local ballState = 1 -- 1 (Floating) / 2 (going away) / 3 (Waiting) / 4 (coming back) local sfx_BallPickup = "MerlionBallsPickup" -- Sequence(Going to random position on map) local sequenceState ...
nilq/small-lua-stack
null
-- rotate a list in-place print("Length of list:") l = io.read("n") list = {} for i=1,l do list[i] = i end function rotate_once() f = list[1] for i=2,#list do list[i-1] = list[i] end list[#list] = f end print("Rotate by:") k = io.read("n") for i=1,k do rotate_once() end print("Rotated list:") for i=1,l do ...
nilq/small-lua-stack
null
-- Custom Language to be added outside of gamemode's core file. local LANG = {} LANG.code = "en_??" -- your language id. LANG.Name = "English" -- example: "Bahasa Indonesia" LANG.NameEnglish = "English" -- Your Language but spoken in English, example: "Indonesian" LANG.Author = "YOUR NAME" -- Only accept STRING...
nilq/small-lua-stack
null
--[[ $Id$ Copyright © 2007-2022 the VideoLAN team Twitch Playlist importer for VLC media player 1.x 2.x 3.x Tested on VLC Player 3.0.16 To play videos need to paste twitch_multi.lua in C:\Program Files (x86)\VideoLAN\VLC\lua\playlist Modified: TRC4 <trc4@usa.com> STABLE Version Multi Streams Example URL: https...
nilq/small-lua-stack
null
function Local.Init(position) local pVec = obe.UnitVector( position.x * This:LevelSprite():getSize().x, position.y * This:LevelSprite():getSize().y ); This:LevelSprite():setPosition(pVec); end function Object:getType() return This:getType(); end function Object:getSprSize() return...
nilq/small-lua-stack
null
local keepScroll = false function onCreate() makeLuaSprite('bg','FUCKING high',0,0) setObjectCamera('bg', 'hud') addLuaSprite('bg') setGraphicSize('iconP1', 2, 2) keepScroll = getPropertyFromClass('ClientPrefs', 'middleScroll'); setPropertyFromClass('ClientPrefs', 'middleScroll', true); makeLuaText('ba...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS("emod_base") EMod.RegisterComponent(ENT, "E-Light",EMod.ComponentsTypes.Output,"Light", true, "EMod Official Pack") function ENT:EModSetup() self:AddPin(EMod.Plus,Vector(13.844569,7.978677,1.031252)) self:AddPin(EMod.Minus,Vector(13.900087,-7.974960,1.031258)) self:AddScheme(1, EMod....
nilq/small-lua-stack
null
local INF = 2147483647; function MaxDps:InitTTD(maxSamples, interval) self.ttd = {}; self.ttd.Windows = maxSamples or 8; -- Max number of samples -- Code variables self.ttd.GUID = nil; -- Remember GUID of mob you are tracking self.ttd.MaxValue = 0; -- Remember max HP for relative shift self.ttd.Last = GetTime()...
nilq/small-lua-stack
null
local is_array = require "api-umbrella.utils.is_array" local is_empty = require("pl.types").is_empty local function deep_merge_overwrite_arrays(dest, src) if not src then return dest end for key, value in pairs(src) do if type(value) == "table" and type(dest[key]) == "table" then -- Overwrite array valu...
nilq/small-lua-stack
null
module("luci.model.cbi.passwall.server.api.hysteria", package.seeall) function gen_config(user) local config = { listen = ":" .. user.port, protocol = user.protocol or "udp", obfs = user.hysteria_obfs, cert = user.tls_certificateFile, key = user.tls_keyFile, auth = (u...
nilq/small-lua-stack
null
function io.copy(pathFrom, pathTo) local fileFrom, err = io.open(pathFrom, "rb") if not fileFrom then return false, err end local fileTo, err = io.open(pathTo, "wb") if not fileTo then return false, err end fileTo:write(fileFrom:read("*all")) io.close(fileFrom) io.close(fileTo) return true end function io.e...
nilq/small-lua-stack
null
local red = Color(200, 20, 10, 150) local white = Color(200, 200, 200, 150) local amber = Color(255, 122, 0, 150) local light_table = { ModernLights = false, L_HeadLampPos = Vector(78, 20, 18.5), L_HeadLampAng = Angle(0, 0, 0), R_HeadLampPos = Vector(78, -20, 18.5), R_HeadLampAng = Angle(0, 0, 0), ...
nilq/small-lua-stack
null
tmsDescr={};tmsDescr['blue']={} tmsDescr['blue'][1]='A Hostile armored Platton on the road is attacking an allied Roadblock.' tmsDescr['blue'][2]='Artillery is shooting on allied postions.' tmsDescr['blue'][3]='Bombing a Bridge which is neccessary for the hostile supplyroutes.' tmsDescr['blue'][4]='An allied Outpos...
nilq/small-lua-stack
null
---@class WorldMarkers.DirectionArrow : zombie.iso.WorldMarkers.DirectionArrow ---@field public doDebug boolean ---@field private debugStuff WorldMarkers.DirectionArrow.DebugStuff ---@field private ID int ---@field private active boolean ---@field private isRemoved boolean ---@field private isDrawOnWorld boolean ---@fi...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local Vector = require('./vector') local Pendulum = {} Pendulum.__index = Pendulum function Pendulum.new(origin, armLength) local t = {} setmetatable(t, Pendulum) t.origin = origin:clone() t.location = Vector.new(0, 0) t.armLength = armLength t.angle = math.pi / 4 t.angularVelocity = 0 t.angularAccel...
nilq/small-lua-stack
null
----------------------------------------- -- LOCALIZED GLOBAL VARIABLES ----------------------------------------- local ZGV = _G.ZGV ZGV._ItemData = [[ ]]
nilq/small-lua-stack
null
local WHEEL = script.parent local MULTIPLIER = script:GetCustomProperty("MULTIPLIER") Task.Wait() WHEEL:RotateContinuous(Rotation.New(0, 60, 0), MULTIPLIER, true)
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) if C.Unitframe.Enable ~= true then return end local _, ns = ... local oUF = ns.oUF or oUF -- Lua API local _G = _G local wipe = wipe local ipairs = ipairs local pairs = pairs -- Wow API local UnitCanAttack = _G.UnitCanAttack local UnitPlayerControlled = _G.UnitPlayerControlled ...
nilq/small-lua-stack
null
local commands = {} local job = require('job') local window = require('window') local api = vim.api local fn = vim.fn local function validate_path(path) local result = false if fn.isdirectory(path) == 1 then result = true elseif fn.filereadable(path) == 1 then result = true end return result end function co...
nilq/small-lua-stack
null
local Station = require('motras_station') local Slot = require('motras_slot') local Box = require('motras_box') local t = require('motras_types') local c = require('motras_constants') local transf = require('transf') local BuildingUtils = require('motras_buildingutils') local function initializeScenario() ...
nilq/small-lua-stack
null
local addonName, addon = ... local fmt = string.format function addon:BuildNotification(spellID, sourceGUID, sourceName, nextRankLevel, petOwner) local spellLink = GetSpellLink(spellID) local abilityData = self.AbilityData[spellID] local contactName = petOwner and petOwner...
nilq/small-lua-stack
null
-------------------------------- -- @module GUIReader -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#GUIReader] setFilePath -- @param self -- @param #string strFilePath -- @return GUIReader#GUIReader self (return value: ccs.GUIReader) -----------...
nilq/small-lua-stack
null
local addonName, namespace = ... local util = namespace.util local EditBox = {} -- TODO: need better refactoring function EditBox:new(editBoxName, editBoxConfig) local newInstance = {} newInstance.name = util.generateGlobalValidUiName(editBoxName) local mainFrameName = newInstance.name .. "EditBoxMainFrame" ...
nilq/small-lua-stack
null
local math = require('math') local string = require("string") local table = require("table") local serpent = require("serpent") local ms3d = {} --require("ms3d") local tostring = tostring local base = _G module("primitives") Vector3={} function Vector3:new(o) o=o or {} base.setmetatable(o,self) self.__index=self...
nilq/small-lua-stack
null
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Engraved Tablet -- !pos -64 -11 -641 51 ----------------------------------- require("scripts/globals/keyitems") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if (player:hasKeyItem...
nilq/small-lua-stack
null
local runtime = 0 local onEvent do local os_time = os.time local math_floor = math.floor local runtime_check = 0 local events = {} local scheduled = {_count = 0, _pointer = 1} local paused = false local runtime_threshold = 40 local _paused = false local function runScheduledEvents() local count, pointer = s...
nilq/small-lua-stack
null
-- inspect something -- Taken from https://github.com/jamestthompson3/vimConfig/blob/eeef4a8eeb5a24938f8a0969a35f69c78643fb66/lua/tt/nvim_utils.lua#L106 function inspect(item) print(vim.inspect(item)) end local M = {} function M.executable(name) if vim.fn.executable(name) > 0 then return true end return ...
nilq/small-lua-stack
null
local sqlwrap = require("telescope._extensions.frecency.sql_wrapper") local MAX_TIMESTAMPS = 10 -- modifier used as a weight in the recency_score calculation: local recency_modifier = { [1] = { age = 240 , value = 100 }, -- past 4 hours [2] = { age = 1440 , value = 80 }, -- past day [3] = { age = 4320 , ...
nilq/small-lua-stack
null
return { name = "Move It!", author = "evilnote4d", version = "0.5", message = [[ Some objects can be pushed and moved. You are strong enough to push one stone. Wooden things, such as boxes and barrels, are much lighter and two of them can be moved at once. ]], data = [[ ###############...
nilq/small-lua-stack
null
function love.load() W,H = love.graphics.getWidth(),love.graphics.getHeight() love.physics.setMeter(W*0.05) world = love.physics.newWorld(0, 9.8 * 30) world:setCallbacks(beginContact, endContact, preSolve, postSolve) RandomGenerator = love.math.newRandomGenerator(os.time()) --флаг коллизии с ...
nilq/small-lua-stack
null
function GraphDisplay(pn) return Def.ActorFrame { Def.GraphDisplay { InitCommand = function(self) self:Load("GraphDisplay") end, BeginCommand = function(self) local ss = SCREENMAN:GetTopScreen():GetStageStats() self :Set(ss, ss:GetPlayerStageStats(pn)) :player(pn) end } } end f...
nilq/small-lua-stack
null
if term.getGraphicsMode == nil then error("This requires CraftOS-PC v1.2 or later.") end term.setGraphicsMode(true) for i = 0, 15 do paintutils.drawFilledBox(i*4, 0, i*4+3, 3, bit.blshift(1, i)) end local c = colors.white paintutils.drawFilledBox(302, 0, 305, 3, c) while true do local ev, ch, x, y = os.pullEve...
nilq/small-lua-stack
null
local objects = { --Exciter createObject(7996,1596.7,1618,7.9,0,0,0,4), --object (vgsSairportland03) (2) createObject(4990,1637.3,1565.2,10.5,0,0,0,4), --object (airprtwlkto1_LAS) (1) createObject(8615,1593.5,1615.9,12.5,0,0,270,4), --object (vgsSstairs04_lvs) (1) createObject(4990,1632.2,1565.3,14,0,0,0,4), --ob...
nilq/small-lua-stack
null
local reqPrefix = ... local frame = require(reqPrefix..".frame") return { client = require(reqPrefix..".client"), CONTINUATION = frame.CONTINUATION, TEXT = frame.TEXT, BINARY = frame.BINARY, CLOSE = frame.CLOSE, PING = frame.PING, PONG = frame.PONG }
nilq/small-lua-stack
null
Globals = require("vr-radio-helper.globals") local function retrieveInfoForAlternateFrequency(fullFrequencyString) local lastDigit = fullFrequencyString:sub(7, 7) if (lastDigit == "5") then fullFrequencyString = Globals.replaceCharacter(fullFrequencyString, 7, "0") elseif (lastDigit == "0") then ...
nilq/small-lua-stack
null
-- PBR materials example. -- This sample demonstrates: -- - Loading a scene that showcases physically based materials & shaders -- -- To use with deferred rendering, a PBR deferred renderpath should be chosen: -- CoreData/RenderPaths/PBRDeferred.xml or CoreData/RenderPaths/PBRDeferredHWDepth.xml require "LuaScrip...
nilq/small-lua-stack
null
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 9 SWEP.CaseLength = 19 SWEP.MuzVel = 255.905 if ( CLIENT ) then SWEP.PrintName = "Dual M9 Elites" SWEP.Author = "Counter-Strike" SWEP.Slot = 1 SWEP.SlotPos = 0 // = 1 SWEP.IconLetter = "s" SWEP.Muzzle = "cstm_muzzle_pistol...
nilq/small-lua-stack
null
module(...,package.seeall) local app = require("core.app") local buffer = require("core.buffer") local packet = require("core.packet") local link_ring = require("core.link_ring") --- # `Source` app: generate synthetic packets Source = {} function Source:new() return setmetatable({}, {__index=Source}) end functi...
nilq/small-lua-stack
null
local base = require 'hjinfo' local param_tag = require 'hj212.params.tag' local finder = require 'hj212.tags.finder' local copy = require 'hj212.utils.copy' local info = base:subclass('HJ212_HJ_STATION_INFO') function info:set_conn(poll_id, status, timestamp, quality) local status = tonumber(status) == 0 and 0 or 1...
nilq/small-lua-stack
null
--[[ module: JMSService author: DylanYang time: 2021-02-24 16:17:10 idea: advance: ]] local interface = require("patterns.j2ee.businessDelegate.IBusinessService") local _M = Class("JMSService") local public = _M.public function public:DoProcessing() print("Processing task by invoking JMS Se...
nilq/small-lua-stack
null
minetest.register_abm({ label = "east-facing pipe", nodenames = {"mover:pipe_E"}, interval = 1, chance = 1, catch_up = true, action = function(pos, node) local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") local inv = meta:get_inventory() local source_meta = minetest.ge...
nilq/small-lua-stack
null
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] local PLUGIN = PLUGIN; PLUGIN.name = "Character Traits"; PLUGIN.description = "Adds an all encompassing way to describe your character."; PLUGIN.author = "Adolphus"; ix.util.Include("meta/sh_trait.lua") ix.util.Inclu...
nilq/small-lua-stack
null
--[[ © 2017 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local COMMAND = Clockwork.command:New(); COMMAND.tip = "Set a player's Energy...
nilq/small-lua-stack
null
module('love.system') function getClipboardText() end function getOS() end function getPowerInfo() end function getProcessorCount() end function openURL() end function setClipboardText() end
nilq/small-lua-stack
null
WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243 PADDLE_SPEED = 200 AI_PADDLE_SPEED = 100 ai_difficulty = math.random(0.01, 1) Class = require 'class' push = require 'push' require 'Ball' require 'Paddle' --[[ Runs when the game first starts up, only once;...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Stonaga IV -- Deals earth damage to enemies within area of effect. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(caster, target, spel...
nilq/small-lua-stack
null
--|> SIMPLEX | Easy-to-use interaction system <|-- -- ShutoExpressway -- General character manager. local Character = {} Character.Character = nil Character.CharacterAdded = nil Character.Connections = {} local Simplex local EventManager local function clearConnections() local _debugConnectionCount = #Character...
nilq/small-lua-stack
null
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/LandMode/CleanUpDumb.lua#5 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** ...
nilq/small-lua-stack
null
--; ============================================================ --; Lua Browsing (Page 1) --; ============================================================ selectBrowsing = { ["Apple Safari"] = { iconName = "Apple Safari", iconNamePreset = "Safari" }, ["Brave Browser"] = { iconName = "Brave Browser"...
nilq/small-lua-stack
null
local obs = obslua -- Global variables local sampler = {} local source_names = {} local hk = {} local hotkeys = { RANDOM_PLAY = "ソースのランダム再生", } local log_enabled = false ---------------------------------------------------------- local function log_warn(message) if not log_enabled then return end local pref...
nilq/small-lua-stack
null
local Collection = game:GetService("CollectionService") local Selection = game:GetService("Selection") local Modules = script.Parent.Parent.Parent.Parent local Roact = require(Modules.Roact) local ComponentizedInstanceProvider = Roact.PureComponent:extend("ComponentizedInstanceProvider") function ComponentizedInstan...
nilq/small-lua-stack
null
require("examples.issues.bug71.ok4")
nilq/small-lua-stack
null
local p = game.Players.LocalPlayer player = p local char = p.Character local mouse = p:GetMouse() local larm = char["Left Arm"] local rarm = char["Right Arm"] local lleg = char["Left Leg"] local rleg = char["Right Leg"] local hed = char.Head local torso = char.Torso local hum = char.Humanoid local cam = game.Workspace....
nilq/small-lua-stack
null
help([[ Loads the ROOT environment from Homebrew ]]) whatis("loads the ROOT environment from Homebrew") prefix = "/usr/local/opt/root" prepend_path("MANPATH", pathJoin(prefix, "/man")) prepend_path("PATH", pathJoin(prefix, "/bin")) prepend_path("LD_LIBRARY_PATH", pathJoin(prefix, "/lib/root")) prepend_path("DYLD_LI...
nilq/small-lua-stack
null
local require = require local SkillManager = require 'lib.skill_manager' local Hero = require 'std.class'("Hero", require 'war3.unit') local AddStatus function Hero:_new(unit) local hero = self:super():_new(unit) hero._items_ = {false, false, false, false, false, false} AddStatus(hero) return hero end ...
nilq/small-lua-stack
null
local Foo = {} function Fo<caret>
nilq/small-lua-stack
null
//To add a new item or remove an item, this is the file to do it. local ITEMS = {} --[[Example]]-- --[[ ITEMS.licenciapistola = { ["name"] = "Licencia de Pistolas Blasters", ["model"] = "models/props_lab/clipboard.mdl", ["description"] = "Licencia.", ["width"] = 1, ["category"] = "Permits", ["height"] = 1, ...
nilq/small-lua-stack
null
function MAXActor(def, config) config = config or {} def.InitCommand = function(s) local shouldFilter = (config.filtering~=nil) and config.filtering or global "filtering" s:SetTextureFiltering(shouldFilter) if s:GetCommand("Init2") then return s:playcommand("Init2") end end return def end --LoadActorM s...
nilq/small-lua-stack
null
require 'com' -- http://ss64.com/vb/filesystemobject.html fo = com.CreateObject("Scripting.FileSystemObject") each = luanet.each print(fo:FileExists 'com.lua') print 'and' f = fo:GetFile 'com.lua' print (f.Name) drives = fo.Drives print(drives.Count) print(drives) -- this is weird: can access as property! ee = driv...
nilq/small-lua-stack
null
Name_Changer = Name_Changer or {} local luaroot = "advanced_namechanger" function LogInfo(message) MsgC(Color(0, 255, 0), "[ANC] " .. message .. "\n") end function LogWarning(message) MsgC(Color(255, 255, 0), "[ANC] " .. message .. "\n") end if SERVER then local files = file.Find( luaroot .."/config...
nilq/small-lua-stack
null
--[[ Mojang API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) OpenAPI spec version: 2020-06-05 Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.model.api_status Automatically generated by openapi-generator (htt...
nilq/small-lua-stack
null