content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- debug.lua
-- Laurent Zubiaur 2017 - Public Domain
local function drawCircle(circle,r,g,b)
local x,y = circle:getPoint()
love.graphics.setColor(r,g,b,64)
love.graphics.circle('fill', x,y, circle:getRadius())
love.graphics.setColor(r,g,b,255)
love.graphics.circle('line', x,y, circle:getRadius())
end
local ... | nilq/small-lua-stack | null |
--- Server Shops Formspec
--
-- @topic formspec
local ss = server_shop
local S = core.get_translator(ss.modname)
local fs_width = 14
local fs_height = 11
local btn_w = 1.75
local btn_y = 4.6
local transaction = dofile(ss.modpath .. "/transaction.lua")
--- Retrieves shop name by ID.
--
-- @local
-- @function ... | nilq/small-lua-stack | null |
local customization_menu = {};
local table_helpers;
local config;
local screen;
local player;
local large_monster;
local small_monster;
local language;
local part_names;
local time_UI;
local keyboard;
customization_menu.font = nil;
customization_menu.font_range = { 0x1, 0xFFFF, 0 };
customization_menu.is_opened = fa... | nilq/small-lua-stack | null |
local wm = require "weathermetrics"
print(wm.round(12.345,9))
print(wm.celsius_to_fahrenheit(21.098))
print(wm.fahrenheit_to_celsius(68,5))
print(wm.dewpoint_to_humidity(71, 94, wm.FAHRENHEIT))
print(wm.heat_index(85, nil, 80, wm.FAHRENHEIT, nil, 5))
| nilq/small-lua-stack | null |
require("util")
--require("new_class")
--require("output")
--on_built_entity = function (event)
-- if is_valid(event.created_entity) and event.created_entity.name == "complex-combinator" then
--
-- if global.lamps == nil then
-- global.lamps = {}
-- end
--
-- lamp = {}
-- lamp.repeat_command = false
-- l... | nilq/small-lua-stack | null |
local l1 = make(1);
local l2 = make(2);
assert(Father.instance_of(l1));
assert(Father.instance_of(l2));
assert(l1:get_id() == 1);
assert(l2:get_id() == 2);
local l4 = Child1.cast_to(l1);
local l5 = Child2.cast_to(l2);
assert(l4 ~= nil);
assert(l5 ~= nil);
assert(l4:get_id() == 1);
assert(l5:get_id() == 2);
assert(C... | nilq/small-lua-stack | null |
---
-- ServerAppearanceHandler.server.lua - Serverside handling of appearance & characters
--
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Create = ReplicatedStorage.Common.Create
local StarterCharacter... | nilq/small-lua-stack | null |
local match_reward_item_layout_2 = require(ViewPath .. "games/common2/match/match_reward_item_layout_2");
-- ๆฏ่ตๅฅๅฑๅ่กจ้กน
MatchRewardItem2 = class(Node);
MatchRewardItem2.setRankTextWidth = function(width, spaceWidth, totalWidth)
MatchRewardItem2.s_rankTextWidth = width;
MatchRewardItem2.s_rankTextSpaceWi... | nilq/small-lua-stack | null |
local E, C, L = select(2, ...):unpack()
if not C.stats.enable or not C.stats.config.Guild.enable then return end
----------------------------------------------------------------------------------------
-- Guild of DataText (modified from ShestakUI)
---------------------------------------------------------------------... | nilq/small-lua-stack | null |
-- ... diagnostic.lua
| nilq/small-lua-stack | null |
object_building_military_outpost_starport_nonworking = object_building_military_shared_outpost_starport_nonworking:new {
}
ObjectTemplates:addTemplate(object_building_military_outpost_starport_nonworking, "object/building/military/outpost_starport_nonworking.iff")
| nilq/small-lua-stack | null |
-- this is generated by luajitffi
local ffi = require('ffi')
---@type Table<string, integer>
local C = ffi.C
local M = {
libs = {},
cache = {},
}
-- cdef
require('clang.cdef.corecrt')
require('clang.cdef.vcruntime')
require('clang.cdef.CXString')
require('clang.cdef.Index')
require('clang.cdef.CXErrorCode')
M... | nilq/small-lua-stack | null |
--[[
Author: Dennis Werner Garske (DWG)
License: MIT License
]]
-- Setup to wrap our stuff in a table so we don't pollute the global environment
local _G = _G or getfenv(0);
local Roids = _G.Roids or {};
_G.Roids = Roids;
Roids.Hooks = Roids.Hooks or {};
Roids.mouseoverUnit = Roids.mouseoverUnit or nil;
Roids.Exten... | nilq/small-lua-stack | null |
--Version 1.1
--Author: icedude
--Created: 29.11.2014
--Modifyed: 21.12.2014
--Notes:
--Speed improvements can be made with lua 5.3 using bitwise operators.
--Need for bignum library is overhead.
--Use better Sha256 library, like [lcrypt]...makes use of C functions and might be faster.
--lcrypt has better a... | nilq/small-lua-stack | null |
local SERVICE = require "LuaService"
local config = require "spylog.config"
config.LOG.prefix = "[jail] "
-------------------------------------------------
local log = require "spylog.log"
local version = require "spylog.version"
local uv = require "lluv"
uv.poll_zmq = requi... | nilq/small-lua-stack | null |
Content = nil
Type = nil
IsCut = false
function Empty()
Clipboard.Content = nil
Clipboard.Type = nil
Clipboard.IsCut = false
end
function isEmpty()
return Clipboard.Content == nil
end
function Copy(content, _type)
Clipboard.Content = content
Clipboard.Type = _type or 'generic'
Clipboard.IsCut = false
end
fun... | nilq/small-lua-stack | null |
--[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
DPanelList
A window.
--]]
local PANEL = {}
--[[--------------------------------... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Copyright (C) Hispidence 2013-2021
--
--
-- gameConf.lua
--
-- Game configuration things which aren't intended to be changed at runtime.
-------------------------------------------------------------------------------
local gameConf = {
... | nilq/small-lua-stack | null |
--- Builds a pill backing for Guis
-- @classmod PillBackingBuilder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Table = require("Table")
local PillBackingBuilder = {}
PillBackingBuilder.__index = PillBackingBuilder
PillBackingBuilder.ClassName = "PillBackingBuilder"
P... | nilq/small-lua-stack | null |
object_tangible_quest_sennex_hq_computer_terminal = object_tangible_quest_shared_sennex_hq_computer_terminal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_sennex_hq_computer_terminal, "object/tangible/quest/sennex_hq_computer_terminal.iff")
| nilq/small-lua-stack | null |
function timer_indicator(timelen)
if not indicator_used then
indicator_used = hs.drawing.rectangle({0,0,0,0})
indicator_used:setStroke(false)
indicator_used:setFill(true)
indicator_used:setFillColor(osx_red)
indicator_used:setAlpha(0.35)
indicator_used:setLevel(hs.dra... | nilq/small-lua-stack | null |
local g = vim.g
-- Enable file highlight for git attributes
g.nvim_tree_git_hl = 1
g.nvim_tree_symlink_arrow = " ๏
ธ "
-- Show git, folder and file icons
g.nvim_tree_show_icons = {
git = 1,
folders = 1,
files = 1,
}
-- Set git icons
g.nvim_tree_icons = {
default = "๎",
symlink = "๏",
git = {
... | nilq/small-lua-stack | null |
module 'wechat'
path "../../frameworks/plugins/wechat"
headers [[
#include "lua-bindings/lua_conv.h"
#include "lua-bindings/lua_conv_manual.h"
#include "cclua/xlua.h"
#include "WeChat.h"
]]
luacls(function (cppname)
cppname = string.gsub(cppname, "^cclua::", "cclua.")
cppname = string.gsub(cppname, "::", "."... | nilq/small-lua-stack | null |
--[[
protein.lua
Copyright 2016,2017 Robert T. Miller
Licensed under the Apache License, Version 2.0 (the "License");
you may not use these files except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... | nilq/small-lua-stack | null |
---@alias seb_Object_Identifiable tts__Object | tts__ObjectState | tts__IndexedSimpleObjectState
---@alias seb_Object_Identifiable_Array tts__Object[] | tts__ObjectState[] | tts__IndexedSimpleObjectState[]
---@alias seb_Object tts__Object | tts__ObjectState
---@alias seb_Object_Array tts__Object[] | tts__ObjectState[]... | nilq/small-lua-stack | null |
local s = require("null-ls.state")
local cmd_resolver = require("null-ls.helpers.command_resolver")
local u = require("null-ls.utils")
local function make_builtin(opts)
local method, filetypes, extra_filetypes, disabled_filetypes, factory, condition, generator_opts, generator =
opts.method,
opts.fi... | nilq/small-lua-stack | null |
CLASS.name = "Civil Protection Scanner"
CLASS.desc = "A robotic, metal scanner for observing the city."
CLASS.faction = FACTION_CP
function CLASS:onCanBe(client)
return client:isCombineRank(SCHEMA.scnRanks)
end
function CLASS:onSet(client)
local scanner = nut.plugin.list.scanner
if (scanner) then
scanner:create... | nilq/small-lua-stack | null |
-------------------------------------------------
-- Spotify Player Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/spotify-player
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
-------------------------------------------... | nilq/small-lua-stack | null |
object_mobile_naboo_lt_dunnels = object_mobile_shared_naboo_lt_dunnels:new {
}
ObjectTemplates:addTemplate(object_mobile_naboo_lt_dunnels, "object/mobile/naboo_lt_dunnels.iff")
| nilq/small-lua-stack | null |
local upvalue
function f()
local a, b
upvalue = nil
end
| nilq/small-lua-stack | null |
require "nn"
local FastRNN, parent = torch.class('nn.FastRNN', 'nn.Module')
function FastRNN:__init(inistate, input, nstate, merge, transfer, maxgradient)
parent.__init(self)
self.output={}
self.gradInput={}
self.state={}
self.srcstate0=inistate
self.batchsize=1
self.statesize=self.srcstate0:size()[2]
self.sta... | nilq/small-lua-stack | null |
local start_time = ...
local reveal_time = { 52.487, 53.51, 54.443, 55.356 }
local leadin = 0.25
local end_time = 58.352
return Def.ActorFrame{
InitCommand=function(self) self:visible(false) end,
StartSceneCommand=function(self) self:sleep(start_time):queuecommand("Show") end,
ShowCommand=function(self) self:visibl... | nilq/small-lua-stack | null |
local brain = function (x, y, snake, food, synaptic_vesicle)
local get_new_head = function (direction, snake)
local body = snake.get_body()
local head = body[1]
local new_head = {x = head.x, y = head.y}
if direction == "left" then
new_head.x = new_head.x - 1
elseif direction ==... | nilq/small-lua-stack | null |
lutl = require('lutl')
local mt = getmetatable(lutl)
-- CUSTOM ASSERTS
-- Custom assert that fails if the input file doesn't exactly contain the
-- given content.
function mt.assert_content(lutl, file, content)
file:seek('set')
lutl:assert(content == file:read('a'), "File content differs.", 2)
end
-- Custom as... | nilq/small-lua-stack | null |
EditorGlobalEventTrigger = EditorGlobalEventTrigger or class(MissionScriptEditor)
function EditorGlobalEventTrigger:create_element()
self.super.create_element(self)
self._element.class = "ElementGlobalEventTrigger"
self._element.values.trigger_times = 1
self._element.values.global_event = "none"
end
function Edi... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- register_globally.lua
--------------------------------------------------------------------------------
local string_format = string.format
local actor = tengine.actor
local timer = tengine.timer
local ERROR_MSG = tengine.ERROR_MSG
loc... | nilq/small-lua-stack | null |
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local FORMATTING = methods.internal.FORMATTING
local RANGE_FORMATTING = methods.internal.RANGE_FORMATTING
local M = {}
M.lua_format = h.make_builtin({
method = FORMATTING,
filetypes = { "lua" },
generator_opts = {
com... | nilq/small-lua-stack | null |
--make a vcreffect
function onCreatePost()
--addVCREffect('camgame')
--addVCREffect('camhud', true)
end | nilq/small-lua-stack | null |
module(..., package.seeall)
require("lua_tda")
require "lpeg"
require "core"
require "dialog_utilities"
joProfile = require "OWLGrEd_UserFields.Profile"
syncProfile = require "OWLGrEd_UserFields.syncProfile"
styleMechanism = require "OWLGrEd_UserFields.styleMechanism"
owl_fields_specific = require "OWLGrEd_Us... | nilq/small-lua-stack | null |
test.open('words.txt')
local assertFileEq = test.assertFileEq
local key = test.key
assertFileEq(buffer.filename, 'files/words.txt')
test.open('foo.xml')
assertFileEq(buffer.filename, 'files/foo.xml')
key('c-^')
assertFileEq(buffer.filename, 'files/words.txt')
key('c-^')
assertFileEq(buffer.filename, 'files/foo.xml')
| nilq/small-lua-stack | null |
-- Takes an ABC tune, and returns it's "DNA" -- an encoding of the
-- relative melody/rhythm that can subsequently be quickly matched
-- Needs the bitop library http://bitop.luajit.org/api.html
require "abclua"
require "bit"
function dna_tune(melody)
-- compute the DNA of a melody table. Replaces each symbol with... | nilq/small-lua-stack | null |
--[[
Copyright (C) 2019 Onset Roleplay
Developers:
* Logic
Contributors:
* Blue Mountains GmbH
]]--
-- Variables
local colour = ImportPackage('colours')
local borkui = ImportPackage('borkui')
MAX_FACTIONS = 10
FactionData = {}
FactionRankData = {}
DivisionData = {}
DivisionRankData = {}
FACTION_NONE = 0
FACTION... | nilq/small-lua-stack | null |
--[[
Combat Wrap API
v0.11.0
by: standardcombo
Identifies the type of object and wraps it with a common interface for combat-related functions.
Interface:
- GoingToTakeDamage Event
- GetName()
- GetTeam()
- GetHitPoints()
- GetMaxHitPoints()
- ApplyDamage()
- IsDead()
- IsHeadshot()
- IsValidObject()
... | nilq/small-lua-stack | null |
--[[
Mรณdulo responsรกvel por ser o DAO (Data acess Object) de artigos
Possui as seguintes funรงรตes pรบblicas:
insert: insere um artigo no banco de dados
all_on_conference: obtem todos os artigos de uma conferรชncia
all: obtem todos os artigos
find: busca um artigo
delete: remove um artigo do banco de dados
update: atualiz... | nilq/small-lua-stack | null |
-- incredible-gmod.ru
-- https://github.com/Be1zebub/Small-GLua-Things/blob/master/cookies.lua
-- version without globals and metafunctions, for those who do not want the library to add values to _G
-- Same as PData, but without stupid as fuck 'Unique' ID collisions & with caching
-- also its optimizated & have non-me... | nilq/small-lua-stack | null |
crystal_maiden_freezing_field_lua = class({})
LinkLuaModifier( "modifier_crystal_maiden_freezing_field_lua", "lua_abilities/crystal_maiden_freezing_field_lua/modifier_crystal_maiden_freezing_field_lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_crystal_maiden_freezing_field_lua_effect", "lua_abilities/cryst... | nilq/small-lua-stack | null |
-- Madonox
local http = {}
local hService = game:GetService("HttpService")
local base = "https://RPMServiceProvider.madonox.repl.co"
function http:Post(subURL,json)
return hService:PostAsync(base..subURL,json,Enum.HttpContentType.ApplicationJson)
end
function http:Get(subURL)
return hService:GetAsync(base..subURL)
e... | nilq/small-lua-stack | null |
local optionsFrame = CreateFrame("Frame", 'EasyDesteroy_OptionsFrame', InterfaceOptionsFramePanelContainer)
optionsFrame.name = EasyDestroy.AddonName
EasyDestroy.UI.Options = optionsFrame
local protected = {}
function EasyDestroy.UI.Options.__init()
optionsFrame:SetScript("OnShow", EasyDestroy_OnOptionsShow)
... | nilq/small-lua-stack | null |
local platform = require "bee.platform"
local arguments = require "arguments"
local globals = {}
for k, v in pairs(arguments.args) do
globals[k] = v
end
globals.mode = globals.mode or "release"
globals.crt = globals.crt or "dynamic"
globals.hostos = globals.hostos or platform.OS:lower()
globals.os = globals.os ... | nilq/small-lua-stack | null |
--[[
Copyright 2019 Manticore Games, Inc.
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 to use, copy, modify, merge, publish, distrib... | nilq/small-lua-stack | null |
/*#################################################
### ###
### GoldenHUDV3 config file ###
### By chredeur ###
#################################################*/
GoldenHUDV3 = GoldenHUDV3 or {}
-- FastDL --
GoldenHUDV3.FastDL = true -- Activate disable the FastDL
... | nilq/small-lua-stack | null |
--
-- Provides ability to turn on/off and fade music in/out.
--
-- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved.
--
require "Logger"
local shim = require("shim.System")
local Promise = require("Promise")
local Music = Class()
local engine = cc.SimpleAudioEngine:getInstance()
function Music.new... | nilq/small-lua-stack | null |
object_tangible_furniture_decorative_wod_pro_ns_tree_06 = object_tangible_furniture_decorative_shared_wod_pro_ns_tree_06:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_pro_ns_tree_06, "object/tangible/furniture/decorative/wod_pro_ns_tree_06.iff")
| nilq/small-lua-stack | null |
--[[
This code falls under the terms of the MIT license.
The full license can be found in "license.txt".
Copyright (c) 2015 Minh Ngo
]]
local MODULE_PATH = (...):match('^.+[%.\\/]')
local Class = require(MODULE_PATH .. 'Class')
local draw = love.graphics.drawq or love.graphics.draw
-- -= Tile =-
-- Setup
l... | nilq/small-lua-stack | null |
setBufferName("slidertest.lua")
print2(getFunction("Widgets[1].render"))
do
Widgets[1].render = function (slider)
local rpos = linearInterpolate(slider.min, slider.max, 0, slider.depth, slider.pos)
local mid = slider.width * 0.5
beginQuadGL()
colorGL(255,155,0,255)
vectorGL(0, 0, 0)
vecto... | nilq/small-lua-stack | null |
---@type boolean
local unknownBoolean
---@type true|false
local unknownLiteralBoolean
---@type true
local trueLiteral
---@type false
local falseLiteral
unknownBoolean = unknownLiteralBoolean
unknownLiteralBoolean = unknownBoolean
unknownBoolean = true
unknownBoolean = false
unknownBoolean = trueLiteral
unknownBool... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Lufaise Meadows (24)
-- Mob: Splinterspine Grukjuk
-----------------------------------
require("scripts/globals/quests")
require("scripts/globals/status")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(tpz.mobMod.GIL_MAX, -1)
end
funct... | nilq/small-lua-stack | null |
local Action_Path =({...})[1]:gsub("[%.\\/]action$", "") .. '/'
local class =require (Action_Path .. 'vendor/30log')
local Action= ROT.Scheduler:extends { _defaultDuration, _duration }
function Action:__init()
Action.super.__init(self)
self.__name='Action'
self._defaultDuration=1
self._duration=self._defaultDura... | nilq/small-lua-stack | null |
-- theme identification file
themeInfo = {
Name = "supercrazy-foxskulk (SM 5.3)",
Version = "0.0.1", -- a.b.c, a for complete overhauls, b for major releases, c for minor additions/bugfix.
Date = "20200302",
};
function getThemeName()
return themeInfo["Name"]
end;
function getThemeVersion()
return themeInfo["Ve... | nilq/small-lua-stack | null |
-- Copyright (C) 2016-2018 Draios Inc dba Sysdig.
--
-- This file is part of falco.
--
-- 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 |
object_tangible_loot_creature_loot_collections_eow_blacksun_scanner = object_tangible_loot_creature_loot_collections_shared_eow_blacksun_scanner:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_eow_blacksun_scanner, "object/tangible/loot/creature/loot/collections/eow_blacksun_scanner... | nilq/small-lua-stack | null |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Rodux = require(Modules.Packages.Rodux)
local PlayingSwimAnimation = require(Modules.AvatarExperience.Common.Actions.PlayingSwimAnimation)
return Rodux.createReducer(false, {
[PlayingSwimAnimation.name] = function(st... | nilq/small-lua-stack | null |
data:extend({
{
type = "item",
name = "pipe-meter",
icon = "__PipeMeterWLK__/graphics/item-dial_face.png",
icon_size = 32,
subgroup = "energy-pipe-distribution",
order = "a[pipe]-a[pipe-meter]",
stack_size = 10,
place_result = "pipe-meter"
}
})
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Meriphataud_Mountains_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.MERIPHATAUD_MOUNTAINS_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain t... | nilq/small-lua-stack | null |
local EntityTracker = Class(function(self, inst)
self.inst = inst
self.entities = {}
end)
function EntityTracker:GetDebugString()
local str = "\n"
for k,v in pairs(self.entities) do
str = str.." --"..k.."\n"
str = str..string.format(" --entity: %s \n", tostring(self.entities[k]))
end
return str
end
fu... | nilq/small-lua-stack | null |
base_research = nil
base_research = {}
local temp_res_1 =
{
Name = "DestroyerHealthUpgrade1",
RequiredResearch = "DestroyerTech",
RequiredSubSystems = "Research | AdvancedResearch & CapShipProduction",
Cost = 1500,
Time = 90,
DisplayedName = "$7639",
DisplayPriority = 405,
Description = "... | nilq/small-lua-stack | null |
-- ่ทๅ่ง็่ฎฐๅฝ
-- created by $Joy Zhang$ <1054948153@qq.com>
-- http://192.168.23.149:8091/service/UserPlayHistory/List?authID=104318907191667130930&devID=000001&appID=111010310225&contentType=1&page=1&size=20&productIDs=1000000218,1000000100,1000000228,1000000432,1000000442
-- @user ZY
-- @date 2017-03-30
-- @file List.lua... | nilq/small-lua-stack | null |
local AppBase = class("AppBase")
function AppBase:ctor(configs)
self.configs_ = {
viewsRoot = "app.scenes",
modelsRoot = "app.models",
defaultSceneName = "screens.opening",
}
for k, v in pairs(configs or {}) do
self.configs_[k] = v
end
if type(self.configs_.views... | nilq/small-lua-stack | null |
local filesystem = require("Filesystem")
local GUI = require("GUI")
local paths = require("Paths")
local system = require("System")
local workspace, icon, menu = select(1, ...), select(2, ...), select(3, ...)
local localization = system.getSystemLocalization()
menu:addItem(localization.setAsWallpaper).onTouch = func... | nilq/small-lua-stack | null |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSP... | nilq/small-lua-stack | null |
if SERVER then
local classToUpkeep ={}
classToUpkeep[TEAM_POLICE] = GM.UpkeepCost_PoliceCar
classToUpkeep[TEAM_FIREMAN] = GM.UpkeepCost_Firetruck
classToUpkeep[TEAM_SWAT] = GM.UpkeepCost_SWATVan
classToUpkeep[TEAM_MEDIC] = GM.UpkeepCost_Ambulance
classToUpkeep[TEAM_SECRET_SERVICE] = GM.UpkeepCost_Stretch
loca... | nilq/small-lua-stack | null |
-- โโโโโโโ โโโโโโโโโโโโโโโ
-- โโโโโโโโ โโโโโโโโโโโโโโโ
-- โโโโโโโโโ โโโโโโ โโโ
-- โโโโโโโโโโโโโโโโ โโโ
-- โโโโโโ โโโโโโโโโ โโโ
-- โโโโโโ โโโโโโโโ โโโ
-- Built-in lib
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = req... | nilq/small-lua-stack | null |
local localPly
local name, team = "", ""
local health, armor, money = 0, 0, 0
local maxHealth, maxArmor = 100, 100
local hideArmor
local max = math.max
local lerp = Lerp
local ft = FrameTime
local function updateStats(ply)
name = ply:name()
team = ply:getTeamName()
local animSpeed = ft() * 3
health =... | nilq/small-lua-stack | null |
local stat_scale = const.Scale.Stat
DefineClass.Residence = {
__parents = { "StatsChange", "Holder"},
properties = {
{ template = true, modifiable = true, id = "capacity", name = T{687, "Number of Residents"}, default = 5, category = "Residence", editor = "number", min = 1 },
{ template = true, mod... | nilq/small-lua-stack | null |
-- Show list of studies / series that match query on passed date, modality, and patientID
-- allows: select, unselect, collect, submit at study or series level
-- allows: view at series level
-- test version 20120826
require 'ecrf/split'
local source = gpps('OpenClinica', 'Source', '(local)');
function OCDateToDICOM... | nilq/small-lua-stack | null |
local http = require("socket.http")
function pasteGet(pasteID)
local ret, status = http.request("http://pastebin.com/raw.php?i=" .. pasteID)
if status == 200 then
return ret
else
return false
end
end
function command_pasteget(Split, Player)
LOG(("Player %s called pasteget!"):format(Player:GetName())... | nilq/small-lua-stack | null |
object_building_kashyyyk_mun_kash_tree_entrance_door_s01 = object_building_kashyyyk_shared_mun_kash_tree_entrance_door_s01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_mun_kash_tree_entrance_door_s01, "object/building/kashyyyk/mun_kash_tree_entrance_door_s01.iff")
| nilq/small-lua-stack | null |
se_planet_ent = {}
se_planet_npcs = {
{
ent = "npc_antlion",
min_hp = 100,
max_hp = 250,
},
{
ent = "npc_headcrab",
min_hp = 20,
max_hp = 80,
},
{
ent = "npc_headcrab_fast",
min_hp = 20,
max_hp = 50,
},
{
ent = "npc_headcrab_black",
min_hp = 20,
max_hp = 50... | nilq/small-lua-stack | null |
-- DATA NETWORK OBJECT --
-- Create the Data Network base object --
DN = {
ID = 0,
GCNTable = nil,
RCNTable = nil,
entitiesTable = nil,
dataCenter = nil,
wirelessDataTransmitter = nil,
wirelessReceiverTable = nil,
energyCubeTable = nil,
dataStorageTable = nil,
totalEnergy = 0,
powerConsumption = 0,
inConfl... | nilq/small-lua-stack | null |
local n = 1
for _ = 1, 1000 do
n = n / 2.000001
end
for _ = 1, 1000 do
n = n * 2.000001
end
print(n)
for _ = 1, 10000 do
n = n / 2.000001
end
for _ = 1, 10000 do
n = n * 2.000001
end
print(n)
n = 0
local X = 1000000
for _ = 1, X do
n = n + 1 / X
end
print(n)
print((2^53 - 0.501) == 2^53)
print((2... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- Provides an implementation of non-persistent versium storage using Lua
-- tables that reside in memory. This storage driver is provided primarily
-- for testing purposes.
-------------------------------------------------------------------... | nilq/small-lua-stack | null |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeClientGui
local SlipeMtaDefinitions
System.import(function (out)
SlipeClientGui = Slipe.Client.Gui
SlipeMtaDefinitions = Slipe.MtaDefinitions
end)
System.namespace("Slipe.Client.Gui", function (namespace)
-- <summary>
-- Represents a Cegui scr... | nilq/small-lua-stack | null |
if GetLocale() ~= "frFR" then return end
local o = WardrobeHelper
local c = {}
o.categorization = c
o.EXPS = {'Vanilla', 'Burning Crusade', 'WotLK', 'Cataclysm', 'Mists of Pandaria', 'Draenor', 'Legion'}
o.PARTY = {'Dungeon', 'Raid'}
c["Ahnโkahetย : lโAncien royaume"] = {3, 1, "Ahn'kahet: The Old Kingdom"}
c["Assaut s... | nilq/small-lua-stack | null |
CustomizableWeaponry:addFireSound("CW_M249_OFFICIAL_FIRE", "weapons/cw_m249/fire.wav", 1, 112, CHAN_STATIC)
CustomizableWeaponry:addFireSound("CW_M249_OFFICIAL_FIRE_SUPPRESSED", "weapons/cw_m249/fire_suppressed3.wav", 1, 95, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("CW_M249_OFFICIAL_BOLTBACK", "weapons/cw_m249... | nilq/small-lua-stack | null |
package("libbacktrace")
set_homepage("https://github.com/ianlancetaylor/libbacktrace")
set_description("A C library that may be linked into a C/C++ program to produce symbolic backtraces")
add_urls("https://github.com/ianlancetaylor/libbacktrace.git")
add_versions("v1.0", "d0f5e95a87a4d3e0a1ed6c... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- SMTP client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-------------------------------------------------------------------------... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Ranger"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Ranger"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
self:NetworkVar( "Bool", 0, "ShowBeam" )
self:NetworkVar( "Float", 1, "SkewX" )
self... | nilq/small-lua-stack | null |
run_plugin_test(120, function() return metric_exists('pg.databases') end)
| nilq/small-lua-stack | null |
INTERIORS = {
-- HOPITAL
--[1] = {id = 1, x = 360.08847045898, y = -585.16223144531, z = 28.820465087891, name = "Tryk pรฅ %key for at forlade Hospitalet", destination = {2}},
--[2] = {id = 2, x = 340.36965942383, y = -592.759765625, z = 43.281726837158, name = "Tryk pรฅ %key for at tilgรฅ Hospitalet", desti... | nilq/small-lua-stack | null |
local utils = require("cmp_git.utils")
local M = {
filetypes = { "gitcommit" },
remotes = { "upstream", "origin" }, -- in order of most to least prioritized
enableRemoteUrlRewrites = false, -- enable git url rewrites, see https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf... | nilq/small-lua-stack | null |
--[[----------------------------------------
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the ... | nilq/small-lua-stack | null |
local Particle = Class('Particle')
function Particle:init(pos, vel, span)
self.pos = pos
self.velocity = vel
self.life_span = span
self.alpha = 1
end
function Particle:draw()
lg.setColor(1, 1, 0, self.alpha)
lg.circle('fill', self.pos.x, self.pos.y, 1)
end
function Particle:update(dt)
self.alpha = self... | nilq/small-lua-stack | null |
local default_skin = derma.GetNamedSkin("Default")
--if we need more than 2 skins I think it might be best to make a loader with SKIN as our method table
local SKIN = {
--meta
Author = "Cryotheum",
DermaVersion = 1,
PrintName = "Pyrition Scoreboard Skin",
}
--post
derma.DefineSkin("PyritionScoreboard", "Skin for ... | nilq/small-lua-stack | null |
-- Maximum Sub array problem (Kadanes algorithm) implementation
-- See: http://en.wikipedia.org/wiki/Maximum_subarray_problem
-- array: a list of numbers
-- returns:
-- max_so_far: the maximum subarray sum
-- begin: the initial index of the max subarray
-- last: the last index of the max subarray
retu... | nilq/small-lua-stack | null |
local isLoggedIn = true
local housePlants = {}
local insideHouse = false
local currentHouse = nil
QBWeed.DrawText3Ds = function(x, y, z, text)
SetTextScale(0.35, 0.35)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
SetTextCentre(true)
AddTextComp... | nilq/small-lua-stack | null |
---@class PetJournalInfo
C_PetJournal = {}
---@param speciesID number
---@param index number
---@return number|nil displayID
function C_PetJournal.GetDisplayIDByIndex(speciesID, index) end
---@param speciesID number
---@param index number
---@return number|nil displayProbability
function C_PetJournal.GetDisplayPr... | nilq/small-lua-stack | null |
local weapon = script.parent
local fastCost = weapon:GetCustomProperty("Cost1")
local powerCost = weapon:GetCustomProperty("Cost2")
local shieldCost = weapon:GetCustomProperty("Cost3")
local QuickCast = script:GetCustomProperty("QuickCast"):WaitForObject()
local PowerCast = script:GetCustomProperty("PowerCast"):WaitFor... | nilq/small-lua-stack | null |
local colors = require('galaxyline.theme').default
local color_mode = setmetatable({
['n'] = {colors.green, 'Normal', 'N'},
['no'] = {colors.green, 'N-Pending', 'N-P'},
['v'] = {colors.blue, 'Visual', 'V'},
['V'] = {colors.blue, 'V-Line', 'V-L'},
['\x16'] = {colors.blu... | nilq/small-lua-stack | null |
-- {{{ Find more schemas here: https://www.schemastore.org/json/
local schemas = {
{
description = 'TypeScript compiler configuration file',
fileMatch = {
'tsconfig.json',
'tsconfig.*.json',
},
url = 'https://json.schemastore.org/tsconfig.json',
},
{
description = 'Lerna config',
... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by wei.
--- DateTime: 2018/10/27 9:56
---
require "mobdebug".start()
-- require("mobdebug").start("host-ip", port) --้ป่ฎคๅผไธบ "localhost", 8172
| nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.