content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local debug = {} is_debug = true function debug.drawFps() if is_debug then love.graphics.print("Current FPS: ".. tostring(love.timer.getFPS()), 10, 10) love.graphics.reset() end end function debug.drawXy(entity) if is_debug then love.graphics.print(...
nilq/small-lua-stack
null
--[[ LuiExtended License: The MIT License (MIT) --]] LUIE.Data.AbilityBlacklistPresets = {} local BlacklistPresets = LUIE.Data.AbilityBlacklistPresets -- Minor Buffs BlacklistPresets.MinorBuffs = { [61693] = true, -- Minor Resolve [61697] = true, -- Minor Fortitude [61704] = true, -- M...
nilq/small-lua-stack
null
local drawableSpriteStruct = require("structs.drawable_sprite") local lava = {} lava.name = "MaxHelpingHand/SidewaysLava" lava.depth = 0 lava.placements = { name = "lava", data = { intro = false, lavaMode = "LeftToRight", speedMultiplier = 1.0 } } function lava.rotation(room, enti...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Loads types on the client for Nexus Admin. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local NexusAdminAPI = require(ReplicatedStorage:WaitForChild("NexusAdminClient")) local NexusAdminTypes = ReplicatedStorage:WaitForChild("NexusAdminTypes") --[[ Loads a type. --]] lo...
nilq/small-lua-stack
null
local DEBUG_PAUSING = CreateConVar("twg_debug_pausing", "0", bit.bor( FCVAR_SERVER_CAN_EXECUTE, FCVAR_NOTIFY, FCVAR_CHEAT, FCVAR_ARCHIVE ) ) local PAUSING_DISABLE = CreateConVar("twg_pausing_disable", "0", bit.bor( FCVAR_SERVER_CAN_EXECUTE, FCVAR_NOTIFY, FCVAR_CHEAT, FCVAR_ARCHIVE ) ) local DISABLE_SENSES_AND_STUFF = G...
nilq/small-lua-stack
null
local spec_helpers = require "spec.helpers" local conf_loader = require "kong.conf_loader" local DATABASES = {"postgres", "cassandra"} local function for_each_dao(fn) for i = 1, #DATABASES do local database_name = DATABASES[i] local conf = assert(conf_loader(spec_helpers.test_conf_path, { database = d...
nilq/small-lua-stack
null
require("scripts/util") distanceMap = { short = 0.85, normal = 1.15, medium = 1.85, long = 2.15 } MoarInserterEntityPrototypeTemplate = { type = "inserter", name = "TEMPLATE", icon = "TEMPLATE", flags = {"placeable-neutral", "placeable-player", "player-creation"}, minable = {hardness = 0.2, mining_t...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide -------------------------------------------------------------------------------- local http = _G.http or require 'cherry.libs.http' local ANALYTICS_URL =...
nilq/small-lua-stack
null
local http = require "http" hive.register("/", function(req) local resp = http.request "https://httpbin.org/get" return { status = resp.status, result = resp.body:parse_json(), } end)
nilq/small-lua-stack
null
--[[ -- 作者:Steven -- 日期:2017-02-26 -- 文件名:file_help.lua -- 版权说明:南京正溯网络科技有限公司.版权所有©copy right. -- 提供关于文件下相关的信息查询 包括获取文件的文件名,扩展名,文件路径,文件大小,文件md5编码,文件sha1编码等 --]] local _M={}; -- _M.__index=_M; function _M.getMD5( _file_ ) -- body end function _M.getSHA1( _file_ ) -- body end function _M.getSize( _file_ ) -- ...
nilq/small-lua-stack
null
-- Description: local ConstantsStringsLocal = SE.Constants.Strings.Local local StorageChestGUI = SE.Constants.Names.Gui.StorageChest -- Constructs and returns the StorageNodeGUI object return function(BaseGUI) local StorageNodeGUI = {} setmetatable(StorageNodeGUI, {__index = BaseGUI}) -- @See BaseGUI:OnShow ...
nilq/small-lua-stack
null
local BuildSlideableBar = {} BuildSlideableBar.ClassName = "SlideableBarBuilder" function BuildSlideableBar:CreateBar() local Frame = Instance.new("Frame") Frame.AnchorPoint = Vector2.new(0, 0) Frame.BackgroundColor3 = Color3.fromRGB(250, 250, 250) Frame.BorderSizePixel = 0 Frame.Size = UDim2.new(.5, 0, 1, 0) Fr...
nilq/small-lua-stack
null
local util = {} local os_name = vim.loop.os_uname().sysname local is_windows = os_name == "Windows" or os_name == "Windows_NT" -- Check whether current buffer contains main function local function has_main() local output = vim.api.nvim_exec("grep func\\ main\\(\\) %", true) local matchCount = vim.split(output, "\n...
nilq/small-lua-stack
null
require("pixel") GLUP.ArcadeStyle() joueurx=13 joueury=10 vx=0 vy=0 newvx=0 newvy=0 lasttime=0 lastfantomtime=0 gumtime=0 gummode=false eatentime=0 eatenmode=false frozen=true gameover=false fantomx=13 fantomy=15 fantomvx=0 fantomvy=1 score=0 level=1 lives=3...
nilq/small-lua-stack
null
log('Got IP: ', wifi.sta.getip()) foreach(file.list(), function(filename, size) local suf_start, suf_end = filename:find('.lua', 1, true) if suf_end ~= filename:len() then return end local pref_start, pref_end = filename:find('sensor_', 1, true) if pref_start == 1 then log('dofile sensor ' .. filename) ...
nilq/small-lua-stack
null
--- -- Option or "radio" button. -- -- Radio buttons are like check buttons, but only one in a group may be -- selected at any one time. They are grouped first by parent, and sub-grouped -- by their `group` value. When one is "checked", all others with the same -- parent *and* group are unchecked. Groups are checked f...
nilq/small-lua-stack
null
--Round to natural number function round(n) return n % 1 >= 0.5 and math.ceil(n) or math.floor(n) end --Main program -- local MU = level(HPLevelType.kMaximumThetaE,0) local HL = level(HPLevelType.kHeightLayer,500,0) local HG = level(HPLevelType.kHeight,0) EL500 = luatool:FetchWithType(current_time, HL, param("EL-L...
nilq/small-lua-stack
null
ardour { ["type"] = "EditorAction", name = "Rubberband AutoTune", license = "MIT", author = "David Healey", description = [[Automatically adds automation data for a pitch shifter plugin to create an auto-tune effect.]] } function factory () return function () local sel = Editor:get_selecti...
nilq/small-lua-stack
null
local Utility = require("Utility") local Rubick = {} local optionAutoTelekinesis = Menu.AddOption({"Hero Specific", "Rubick"}, "Auto Telekinesis", "Auto cast Telekinesis on any enemy in range once rubick has level 6") local optionKillSteal = Menu.AddOption({"Hero Specific", "Rubick"}, "Kill Steal", "Cast spell on ene...
nilq/small-lua-stack
null
World.SpawnDefaultSun() --spawns the ui in game main_hud = WebUI("Main HUD", "file:///UI/index.html") --SoundsPlaying local SoundsPlaying = {} Events.Subscribe("DisplayLight", function(Light) main_hud:CallEvent("DisplayLight", Light) end) Events.Subscribe("KillPlayerBomb", function (Pos) local GrenadeEffec...
nilq/small-lua-stack
null
-- load tftpclnt.lua local tftp = require("socket.tftp") -- needs tftp server running on localhost, with root pointing to -- a directory with index.html in it function readfile(file) local f = io.open(file, "r") if not f then return nil end local a = f:read("*a") f:close() return a end host = hos...
nilq/small-lua-stack
null
Vector = require('lib.vector') local HooECS = require('lib.HooECS') HooECS.initialize({ globals = true, debug = true }) local Factory = require('src.entity_factory') local InputSystem = require('src.systems.input_system') local MovementSystem = require('src.systems.movement_system') local PhysicsRenderingSystem = requ...
nilq/small-lua-stack
null
pcall(require, "luarocks.loader") --local gears = require("gears") local awful = require("awful") --local wibox = require("wibox") --local beautiful = require("beautiful") --local naughty = require("naughty") require("awful.autofocus") -- Use LuaJIT -- pcall(function() jit.on() end) require("modules.error") -- I don...
nilq/small-lua-stack
null
--[[ Copyright (c) 2015, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
nilq/small-lua-stack
null
MoreGamesDownloadStatus = { None = 0; Downloading = 1; Successed = 2; };
nilq/small-lua-stack
null
-- mono_runes.lua require "ccrypt" local text=[[ER STAND AUF SEINES DACHES ZINNEN, ER SCHAUTE MIT VERGNÜGTEN SINNEN]] local alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜß.,!" local runes="ᚪᛒᚲᛞᛖᚠᚷᚺᛇᛃᚴᛚᛗᛜᛟᛈᛩᚱᛊᚦᚢᚡᚹᛪᚤᛎᛅᚯᚣᛋ᛫᛭᛬" local enc_key=alphabet:subst_table(runes) -- default key=0 local encrypted=text:substitute(enc_key) ...
nilq/small-lua-stack
null
class "ConeLight" (PositionalLight); function ConeLight:__init(rayHandler, rays, color, distance, x, y, dirDegree, coneDegree) PositionalLight.__init(self, rayHandler, rays, color, distance, x, y, dirDegree); self:setConeDegree(coneDegree); self:setDirection(self.direction); self:update(); end; local TO_RADIANS =...
nilq/small-lua-stack
null
local function isDisenchantable(itemInfo) return #itemInfo == 0 or ( ( itemInfo[Auctionator.Constants.ITEM_INFO.CLASS] == Enum.ItemClass.Weapon or itemInfo[Auctionator.Constants.ITEM_INFO.CLASS] == Enum.ItemClass.Armor ) and itemInfo[Auctionator.Constants.ITEM_INFO.RARITY] >= Enu...
nilq/small-lua-stack
null
local Behavior = CreateAIBehavior("HeliFireGuns", "HeliIdle", { Constructor = function (self, entity) self:AnalyzeSituation(entity) end, ShouldRelocate = function(self, entity) return AI.GetTargetType(entity.id) ~= AITARGET_ENEMY end, AnalyzeSituation = function(self, entity, sender, data) --AI.SetRefPoi...
nilq/small-lua-stack
null
modifier_hurricane_tempest = class({}) function modifier_hurricane_tempest:GetAttributes() return MODIFIER_ATTRIBUTE_MULTIPLE end local function TempestStrike(hAbility, hLastTarget, hUnit, fStunDuration, fDamage) local tSurroudingTargets = FindUnitsInRadius(hUnit:GetTeam(), hUnit:GetOrigin(), nil, hAbility:GetSpecialV...
nilq/small-lua-stack
null
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local stringstream = require("string_stream") local utils = require("utils") local str_decod...
nilq/small-lua-stack
null
--[[------------------------------------------------------------------------- { ['photos'] = { [1] = { [1] = { ['file_id'] = 'AgADAgADqqcxGyOJMwVezQOVQ0hDs5YbgyoABCv*****************', ['width'] = 160, ['file_size'] = 9504, ...
nilq/small-lua-stack
null
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file or visit https://github.com/StormFX/Masque. * File...: Options\Info.lua * Author.: StormFX 'Installed Skins' Group/Panel ]] -- GLOBALS: LibStub local MASQUE, Core = ... ----...
nilq/small-lua-stack
null
entities.require("item_welder") class "item_welder_industrial" ("item_welder") item_welder_industrial._anims = { welder = item_welder._sprite:createAnimInstance("ind"), on = item_welder._sprite:createAnimInstance("ind_on"), fuel = { ["100"] = item_welder._sprite:createAnimInstance("ind_100"), ["75"] = item_wel...
nilq/small-lua-stack
null
-- Dimensional Sample -- -- Item -- local dsI = {} dsI.type = "tool" dsI.name = "DimensionalSample" dsI.durability = 1 dsI.infinite = false dsI.icon = "__Mobile_Factory_Graphics__/graphics/icones/DimensionalSampleI.png" dsI.icon_size = 64 dsI.subgroup = "Resources" dsI.order = "b" dsI.stack_size = 1000 da...
nilq/small-lua-stack
null
local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") local modpath_default = minetest.get_modpath("default") -- table_def can have the following: --{ -- show_guides = true or false, -- alphabetize_items = true or false, -- description = string, -- hopper_node_name =...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0248-hmi-ptu-support.md -- -- Description: Check that if the first PTU via mobile application for the App1 was performed, the second PTU...
nilq/small-lua-stack
null
--// Initialization local CollectionService = game:GetService("CollectionService") local Module = {} --// Functions function Module.BindToTag(Tag, Callback) for _, TaggedItem in next, CollectionService:GetTagged(Tag) do coroutine.wrap(Callback)(TaggedItem) end return CollectionService:GetInstanceAddedSignal(...
nilq/small-lua-stack
null
local activityData = { { factor=0, name="Премия за добросовестное исполнение обязанностей"}, { factor=0, name="отсутствует" }, { factor=5, name="5% от оклада по ВД"}, { factor=10, name="10% от оклада по ВД" }, { factor=15, name="15% от оклада по ВД" }, { factor=20, name="20% от оклада по ВД" }, { factor=25, name...
nilq/small-lua-stack
null
local M = {} function M.config(opts) local new_opts = vim.tbl_deep_extend("force", { settings = { Lua = { runtime = {version = 'LuaJIT', path = vim.split(package.path, ';')}, diagnostics = {globals = {'vim'}}, workspace = {library = vim.api.nvim_get_runtime_file("", true), checkThir...
nilq/small-lua-stack
null
local spell = Spell("instant") function spell.onCastSpell(creature, variant) return creature:conjureItem(3147, 3200, 6) end spell:name("Explosion Rune") spell:words("adevo mas hur") spell:group("support") spell:vocation("druid;true", "elder druid;true", "sorcerer;true", "master sorcerer;true") spell:cooldown(2 * 100...
nilq/small-lua-stack
null
-- Generated by LairTool geonosis_security1_droid_neutral = Lair:new { mobiles = {{"security1_droid",1}}, bossMobiles = {{"security1_droid_boss",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_rock_shelter_large_evil_fire_small.iff"}, buildingsEasy = {"object/tangible/lair/base/p...
nilq/small-lua-stack
null
syn_getmenv(game.ChildAdded) cloneref(game.ChildAdded) syn_getsenv(game.ChildAdded) getsenv(game.ChildAdded) getmenv(game.ChildAdded) setnamecallmethod(1) debug.getstack(1, 214748368) local _ = clonefunction(getrenv().getfenv) hookfunction(getrenv().getfenv, function(...) _(...) end) getgenv().getfenv(1, "OwO") ...
nilq/small-lua-stack
null
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- require('fb.lua...
nilq/small-lua-stack
null
-- INIT State_Init = {} State_Init["Enter"] = function(actor) actor:setHealth(100); width = 16;--math.random(4, 32); height = 72;--width*(math.random(20, 45)/10); actor:setSize(width, height); actor:changeState(State_Wander); end State_Init["Execute"] = function(actor) end State_Init["Exit"] = function(actor)...
nilq/small-lua-stack
null
local lib = require "resty.haru.library" local enums = require "resty.haru.enums" local icon = enums.annotation.icon local setmetatable = setmetatable local rawset = rawset local type = type local annotation = {} annotation.__index = annotation function annotation.new(context) ...
nilq/small-lua-stack
null
require("plugins") require("settings")
nilq/small-lua-stack
null
function love.conf(t) t.author = 'Qumeric' t.identity = "Tetris" t.version = "0.10.1" t.window.title = "Tetris" t.window.width = 480 t.window.height = 880 t.modules.joystick = false t.modules.physics = false end
nilq/small-lua-stack
null
-- Copyright © 2017 -- Scriptwriters Shutnik, AdamQQQ, Arizona Fauzie, Furious Puppy. -- AdamQQQ 36 hero basic AI \ Warding AI \ Complex scipts for logical decisions -- Arizona Fauzie 43 hero basic AI \ Rune AI \ ItemBuilds AI \ Complex scripts for Meepo and Invoker -- Furious Puppy 12 hero basic AI \ Glyph AI \ Retr...
nilq/small-lua-stack
null
-- Gkyl ----------------------------------------------------------------------- -- Z.Liu 5/6/2021 -- wider electron velocity range -- all modes excited local Plasma = require("App.PlasmaOnCartGrid").VlasovMaxwell() -- Electron parameters. vDriftElc = 0.00 -- Modified from 0.159. vtElc = 0.02 -- Ion parameters. v...
nilq/small-lua-stack
null
-- ScrollFrame.lua -- @Author : DengSir (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 10/20/2018, 7:46:03 PM -- ---@type ns local ns = select(2, ...) ---@class _ScrollFrame: ScrollFrame, Object ---@field scrollBar Slider ---@field buttons Button[] ---@field buttonHeight number ---@field update ...
nilq/small-lua-stack
null
local log = require('completor.log') local protocol = require('vim.lsp.protocol') local api = require('completor.api') local function fix_edits_col(ctx, edits) local new_edits = {} local fix = function(pos) local line = ctx.typed if pos.line ~= ctx.pos[1] then line = api.get_line(pos.line) end pos.charac...
nilq/small-lua-stack
null
data:extend( { { type = "fuel-category", name = "chemical" }, { type = "fuel-category", name = "nuclear" } } )
nilq/small-lua-stack
null
--[[---------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2007 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. I...
nilq/small-lua-stack
null
local configs = require 'lspconfig/configs' local lspui = require 'lspconfig/_lspui' local M = { util = require 'lspconfig/util'; } M._root = {} function M.available_servers() return vim.tbl_keys(configs) end function M.installable_servers() print("deprecated, see https://github.com/neovim/neovim/wiki/Followi...
nilq/small-lua-stack
null
AddRoom("TallbirdNests", { colour={r=.55,g=.75,b=.75,a=.50}, value = GROUND.DIRT, tags = {"ExitPiece", "Chester_Eyebone"}, contents = { distributepercent = .1, distributeprefabs= { rock1 = 2, ...
nilq/small-lua-stack
null
local sprotoparser = require "sprotoparser" local proto = {} proto.c2s = sprotoparser.parse [[ .package { type 0 : integer session 1 : integer } handshake 1 { response { msg 0 : string } } quit 2 {} login_account 3 { request { account 0 : string password 1 : string } } add_account 4 { request { ac...
nilq/small-lua-stack
null
COMMAND.Realm = PYRITION_MEDIATED function COMMAND:Execute(ply, arguments, arguments_string) if #arguments > 0 then local players = hook.Call("PyritionPlayerFind", PYRITION, arguments_string, ply) if players then local player_count = #players if player_count > 1 then self:Fail(ply, "Too many targets....
nilq/small-lua-stack
null
local SPACING = 8 local COLUMNS = 2 local TOP_LABEL_SPACING = 3 -- Helper Functions local function addUpdateLabel(frame, id, config) local parent = frame:GetParent() if config.labelPos == "top" then local label = frame.label or UI.CreateFrame("Text", "widgetLabel_" .. id, parent) label:SetText(config.lab...
nilq/small-lua-stack
null
local gid = ... gid = tonumber(gid) if gid == 6028004 then if not module.QuestModule.Get(350013) or module.QuestModule.Get(350013).status ~= 1 then return true else return false end end if gid == 6028005 then if not module.QuestModule.Get(350013) or module.QuestModule.Get(350013).statu...
nilq/small-lua-stack
null
local filepath = require "util/filepath" local HESH_NAME local INPUT_CACHE local TABLE_CACHE local function ParseInput(input) if input == INPUT_CACHE then return TABLE_CACHE end INPUT_CACHE = input TABLE_CACHE = nil local t = input:split("\n") local result = {} if #t > 1 then ...
nilq/small-lua-stack
null
--- -- @classmod Plot local middleclass = require("middleclass") local cpml = require("cpml") local types = require("luaplot.types") local maths = require("luaplot.maths") local Iterable = require("luaplot.iterable") --- -- @table instance -- @tfield {number,...} _points -- @tfield number _default -- @tfield number _...
nilq/small-lua-stack
null
local BaseLoginDialog = require("hall/login/widget/baseLoginDialog"); local ListEditText = require("hall/login/widget/listEditText"); local login_oldAccountLogin = require("view/kScreen_1280_800/hall/login/login_oldAccountLogin"); require("util/StringLib"); --已有账户登录 local OldAccountLoginDialog = class(BaseLoginD...
nilq/small-lua-stack
null
-- https://wowpedia.fandom.com/wiki/Module:API_info/elink/event local Util = require("Util/Util") local OUT = "out/lua/API_info.elink.event.lua" local m = {} function m:main() local FrameXML = require("Documenter/FrameXML/FrameXML") FrameXML:LoadApiDocs("Documenter/FrameXML") table.sort(APIDocumentation.events, fu...
nilq/small-lua-stack
null
-- Code created by Kwik - Copyright: kwiksher.com 2016, 2017, 2018, 2019, 2020 -- Version: -- Project: Tiled -- local _Command = {} ----------------------------- ----------------------------- function _Command:new() local command = {} -- function command:execute(params) local event = params.event if eve...
nilq/small-lua-stack
null
local commands = require("code_runner.commands") local M = {} local o = require("code_runner.options") M.setup = function(user_options) o.set(user_options) M.load_json_files() vim.api.nvim_exec( [[ function! CRunnerGetKeysForCmds(Arg,Cmd,Curs) let cmd_keys = "" for x in keys(g:fileCommands) let c...
nilq/small-lua-stack
null
linha1 = "Primeira Linha" linha2 = "Segunda Linha" print(linha1 .. " ".. "e".." "..linha2) --O operador .. é a concatenacao titulo = "Voce me deve: " valor = 450 print(titulo .. "R$"..valor)
nilq/small-lua-stack
null
-- -- Addon _cut_ttip.lua -- Author marcob@marcob.org -- StartDate 23/10/2017 -- local addon, cut = ... local function _newTT() --Global context (parent frame-thing). local ttcontext = UI.CreateContext("Tooltip_context") ttcontext:SetStrata("topmost") local ttwindow = UI.CreateFrame("Fr...
nilq/small-lua-stack
null
-- --============================================================================== -- WGLUE (WIP) --============================================================================== -- --============================================================================== -- Copyright (C) 2017-2019 Ulrich Schmidt. -- -- Permis...
nilq/small-lua-stack
null
if mcbPacker then --mcbPacker.ignore mcbPacker.require("s5CommunityLib/comfort/table/CopyTable") mcbPacker.require("s5CommunityLib/lib/UnlimitedArmy") mcbPacker.require("s5CommunityLib/comfort/math/GetDistance") mcbPacker.require("s5CommunityLib/comfort/entity/EntityIdChangedHelper") mcbPacker.require("s5Community...
nilq/small-lua-stack
null
local co = coroutine local async_thread = { threads = {}, } function async_thread.inside() local id = string.format("%p", co.running()) return async_thread.threads[id] end function async_thread.create(fn) local thread = co.create(fn) local id = string.format("%p", thread) async_thread.threads[id] = true ...
nilq/small-lua-stack
null
gfunction onCreate() -- background shit makeLuaSprite('mirafloordark', 'mirafloordark', -1150, 550); scaleObject('mirafloordark', 0.9, 0.8); makeLuaSprite('miradark', 'miradark', -500, -30); scaleObject('miradark', 0.65, 0.65); makeLuaSprite('tablesdark', 'tablesdark', -950, 780); setLuaSpriteScrollFa...
nilq/small-lua-stack
null
local Plugin = Shine.Plugin( ... ) Plugin.Version = "1.4" Plugin.NS2Only = true function Plugin:SetupDataTable() self:AddDTVar( "boolean", "ShowStatus", false ) self:AddDTVar( "string (255)", "CountdownText", "" ) self:AddDTVar( "string (255)", "StatusText", "" ) self:AddDTVar( "float (0 to 1 by 0.05)", "StatusX",...
nilq/small-lua-stack
null
if FirstLoad then g_PhotoMode = false g_PhotoModeShotNum = false g_PhotoModeShotThread = false PhotoModeObj = false g_PrePhotoModeStoredVisuals = false g_PhotoFilter = false g_PhotoFilterData = false end function OpenPhotoMode() g_PrePhotoModeStoredVisuals = {} PhotoModeBegin() local dlg = GetInGameInterface...
nilq/small-lua-stack
null
local g_LastCol = false local function onPlayerQuit(reason) g_LastCol[source] = nil end local function onVehCol(hitElement) if(source ~= getPedOccupiedVehicle(localPlayer)) then return end local hitPlayer = hitElement and getElementType(hitElement) == 'vehicle' and getVehicleOccupant(hitElement) if(no...
nilq/small-lua-stack
null
local Intertitle = class("intertitle") Intertitle.default_font = love.graphics.newFont( 'assets/fonts/Birmingham.ttf', 50) local filmgrain_effect = moonshine(moonshine.effects.desaturate) .chain(moonshine.effects.filmgrain) .chain(moonshine.effects.vignette) function ...
nilq/small-lua-stack
null
fx_version 'adamant' game 'gta5' ui_page 'html/index.html' files { 'html/index.html', 'html/index.js', 'html/index.css', 'html/vendor/*', 'html/images/**/*.png', } client_scripts { 'cl_config.lua', 'cl_hud.lua', }
nilq/small-lua-stack
null
local skynet = require "skynet" local service = require "service" local log = require "log" local Table = require "table_op" local server_common = require "global.server_common" local MAX_AGENT_COUNT = 100 local SUCC = server_common.succ local FAIL = server_common.fail local manager = {} local users = {} -- 对象池 loca...
nilq/small-lua-stack
null
return Def.ActorFrame { Def.ActorFrame { OnCommand=cmd(x,SCREEN_CENTER_X-20); -- Initial glow around receptors LoadActor("tapglow") .. { OnCommand=cmd(x,85;y,95;zoom,0.7;rotationz,90;diffuseshift;effectcolor1,1,0.93333,0.266666,0.4;effectcolor2,1,1,1,1;effectperiod,0.25;effectmagnitude,0,1,0;diffusealpha,0;s...
nilq/small-lua-stack
null
object_tangible_loot_generic_usable_scope_weapon_generic = object_tangible_loot_generic_usable_shared_scope_weapon_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_scope_weapon_generic, "object/tangible/loot/generic/usable/scope_weapon_generic.iff")
nilq/small-lua-stack
null
-- tinyxml2 with static runtime, as used for launcher return { include = function() includedirs "vendor/botan/include/" end, run = function() language "C++" kind "SharedLib" defines { "BOTAN_DLL=__declspec(dllexport)" } buildoptions '/bigobj' files { "vendor/botan/src/*.cpp", "vendor/botan/src/...
nilq/small-lua-stack
null
local sptr_ = engine.scene.new() local path_ = engine.fs.current_path() local table = require("table") local spriteShader_ = engine.window.get_shader("spriteShader") if(spriteShader_ == nil) then spriteShader_ = engine.shader.new("spriteShader", path_ .. "spriteVertex.glsl", path_ .. "spriteFragment.glsl" ) if(sp...
nilq/small-lua-stack
null
-- Create a constructor for each type -- See also: ast.lua return function(prefix, types) local constructors = {} for typename, conss in pairs(types) do for consname, fields in pairs(conss) do local tag = prefix .. "." .. consname constructors[consname] = function(...) ...
nilq/small-lua-stack
null
require("data/scripts/events/events") UnitDynamic = class(Events) function UnitDynamic:init(unit) self:super( ):init(unit) unit:storage().foodTypes = bit.bor(constants.utPlant, constants.utCorpse) end function UnitDynamic:action(unit) local ubuild = unit:getBuild() ubuild:tire() end function UnitDynamic:att...
nilq/small-lua-stack
null
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local ToyBoxFilterFixerFilter = false local function LoadSkin() local r, g, b = _r, _g, _b -- [[ Mounts and pets ]] local PetJou...
nilq/small-lua-stack
null
local multiplier_damage_convar = 1 local multiplier_convar = 1 local multiplier_local = 1 local multiplier_idle = 1 local lerped_bob_the_builder = Angle(0, 0, 0) local is_calc = false local tool_equipped = false local function equipped_tool(ply) -- returns true if a tool is equipped -- returns false if not and if vi...
nilq/small-lua-stack
null
-- ===================================================================================== -- Name: notify.lua -- Author: Gurpreet Singh -- Url: https://github.com/ffs97/awesome-config/themes/thunderclouds/ ... -- ... components/notify.lua -- License: The MIT License (MIT) -- -- ...
nilq/small-lua-stack
null
local _toJSON = toJSON function toJSON(value, ...) if value == nil then return "[ nil ]" end return _toJSON(value, ...) end local _fromJSON = fromJSON function fromJSON(s) if not scheck("s") then return false end if s == "[ ]" then return end if s == "[ nil ]" then return nil end return _fromJSON(s) end ...
nilq/small-lua-stack
null
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "PreGame", id = "PGMissionLandingSpot", PlaceObj('XTemplateWindow', { '__context', function (parent, context) return LandingSiteObjectCreateAndLoad() end, '__class', "XDialog", 'Padding', box(0, 65, 100, 80), '...
nilq/small-lua-stack
null
local rng = require('lmbedtls.rng') local csr = require('lmbedtls.x509.csr') local util = require('util') local fs = require('fs') local crypto = require('crypto') local tap = require('util/tap') console.log(rng) local test = tap.test test("test csr", function() local filename1 = util.dirname() .. "/cert_sha256....
nilq/small-lua-stack
null
--[[ Variables ]] Housing.zone = {} Housing.info = { -- MIRROR PARK -- ["mp1"] = { ["pos"] = vector4(1060.5270996094, -378.19421386719, 68.231163024902, 39.172248840332), ["street"] = "West Mirror Drive 1", ["model"] = "v_int_61", ["price"] = 950, ["enabled"] = true }, ["mp2"] = { ["pos"] = vector4(1028...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... AddonTable.cooking = { -- Ingredients 24477, -- Jaggal Clam Meat 27671, -- Buzzard Meat 31671, -- Serpent Flesh }
nilq/small-lua-stack
null
require("moonsc").import_tags() -- test that a variable can be accessed from a state -- that is outside its lexical scope return _scxml{ initial="s0", datamodel="lua", _state{ id="s0", _transition{ cond="var1==1", target="pass" }, _transition{ target="fail" }, }, _state{ id="s1", _data...
nilq/small-lua-stack
null
object_tangible_furniture_flooring_tile_frn_flooring_tile_s04 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s04:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s04, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s04.iff")
nilq/small-lua-stack
null
love.graphics.setDefaultFilter("nearest","nearest") require('menu') require('game') require('enemy') require('shop') function love.load() min_dt = 1/60 next_time = love.timer.getTime() thefont = love.graphics.newFont('/Sprites/Basics/hachicro.ttf', 8) love.graphics.setFont(thefont) controltype ...
nilq/small-lua-stack
null
include "Premake/extensions.lua" workspace "CommonUtilities" location "." startproject "CommonUtilities" architecture "x64" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "CommonUtilities" location "." language "C++" cppdialect "C++20" ...
nilq/small-lua-stack
null
local Modules = script.Parent.Parent.Parent local Roact = require(Modules.Roact) local RoactRodux = require(Modules.RoactRodux) local Actions = require(Modules.Plugin.Actions) local ComponentManager = require(Modules.Plugin.ComponentManager) local Util = require(Modules.Plugin.Util) local Page = require(script.Parent....
nilq/small-lua-stack
null
-- -- Author: wangdi -- Date: 2016-02-09 22:47:05 -- local CoinBoard = class("CoinBoard", function() return display.newLayer() end) function CoinBoard:ctor() self:addCoin() self:addTextUI() self.value = 0 end function CoinBoard:addValue(val) self.value = self.value+val self.text:setString(string.format("%d", s...
nilq/small-lua-stack
null
local member = app.session.member local other_member = Member:by_id(param.get_id()) local public = param.get("public", atom.boolean) local contact = Contact:by_pk(member.id, other_member.id) if public == nil and contact then slot.put_into("error", _"Member is already saved in your contacts!") return false end i...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- -- Non-Lua syntax extensions -- -------------------------------------------------------------------------------- module ("mlp", package.seeall) -------------------------------------------------------------------------------- -- Alebra...
nilq/small-lua-stack
null