content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
object_mobile_space_comm_gotal_bandit_06 = object_mobile_shared_space_comm_gotal_bandit_06:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_gotal_bandit_06, "object/mobile/space_comm_gotal_bandit_06.iff")
| nilq/small-lua-stack | null |
local m = require 'pegparser.parser'
local coder = require 'pegparser.coder'
local util = require'pegparser.util'
--[[
Removed:
- Err_024 (DotDot in rule subrangeType)
- Err_066 (Assign in rule assignStmt)
- Err_101 (params in rule funcCall)
]]
g = [[
program <- SKIP head decs block^Err_001 Dot^Err_... | nilq/small-lua-stack | null |
resource.AddFile( "materials/sprites/flareglow.vmt" )
resource.AddFile( "resource/fonts/Graffiare.ttf" )
resource.AddFile( "resource/fonts/typenoksidi_upd.ttf" )
resource.AddFile( "models/Zed/male_shared.mdl" )
resource.AddFile( "sound/nuke/redead/lastminute.mp3" )
for i=1,4 do
for e=1,5 do
resource.AddFile( "m... | nilq/small-lua-stack | null |
local util = require("mooncrafts.util")
local httpc = require("mooncrafts.http")
local url = require("mooncrafts.url")
local trim, path_sanitize
trim, path_sanitize = util.trim, util.path_sanitize
local url_parse, Remotefs
url_parse = url.parse
do
local _class_0
local _base_0 = {
readRaw = function(self, locati... | nilq/small-lua-stack | null |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
local min, max = self:GetCollisionBounds()
local angles = self:GetAngles()
local text = "meme"
if self.drug then
text = self.drug.name
end
local function DrawTextCrap()
surface.SetFont("Default")
local w, h = surface.GetTextSize(text)
surface.Se... | nilq/small-lua-stack | null |
require("config")
--Changes
require("prototypes.changes")
--Pumpjack
require("prototypes.pump-2")
require("prototypes.pump-3")
--Mining
require("prototypes.mining-range-1")
require("prototypes.mining-range-2")
require("prototypes.mining-range-3")
require("prototypes.mining-speed-1")
require("prototypes.minin... | nilq/small-lua-stack | null |
-- dap-install configurations
local dap_install = require("dap-install")
dap_install.setup {
installation_path = vim.fn.stdpath("data") .. "/dapinstall/",
}
local dap_install = require("dap-install")
local dbg_list = require("dap-install.api.debuggers").get_installed_debuggers()
for _, debugger in ipairs(dbg_list) d... | nilq/small-lua-stack | null |
-- Returns true if the subsystem is 'usb'
-- and the devtype is 'usb_device'
--
local function isUsbDevice(dev)
if dev.IsInitialized and dev:getProperty("subsystem") == "usb" and
dev:getProperty("devtype") == "usb_device" then
return true;
end
return false;
end
return isUsbDevice
| nilq/small-lua-stack | null |
local NsRange = require 'Foundation.NSRange'
local SpearmanController = class.extendClass(objc.SpearmanController)
local codeChangeMessage = "SpearmanCtrl updated"
function SpearmanController:init()
self[objc.WKInterfaceController]:init()
self:addMessageHandler(codeChangeMessage, "configure")
end
function ... | nilq/small-lua-stack | null |
cpu = manager:machine().devices[":maincpu"]
mem = cpu.spaces["program"]
gui = manager:machine().screens[":screen"]
function main()
mem:write_u8(0x7E1F8C,3)
--mem:write_u8(0x7E0082,0x0C) --Stage Select
player(0xE80,0x1AA0, 0,0,0x980,0x14C0)
player(0xF60,0x1AF0,300,0,0xC00,0x15C0)
end
function player(addr,addr2... | nilq/small-lua-stack | null |
--
-- tek.ui.class.image
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
-- OVERVIEW::
-- Implements bitmap and vector images
--
local Class = require "tek.class"
local ui = require "tek.ui"
local Display = ui.require("display", 21)
local assert = assert
local... | nilq/small-lua-stack | null |
local mod = get_mod("rwaon_talents")
PassiveAbilitySettings.rwaon_dr_1 = {
description = "career_passive_desc_dr_1a",
display_name = "career_passive_name_dr_1",
icon = "bardin_ironbreaker_gromril_armour",
buffs = {
"bardin_ironbreaker_gromril_armour",
"bardin_ironbreaker_gromril_antistu... | nilq/small-lua-stack | null |
return function (connection, req, args)
dofile("httpserver-header.lc")(connection, 200, 'html')
connection:send([===[
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Arguments by GET</title></head><body><h1>Arguments by GET</h1>
]===])
if args.submit == nil then
connection:send([... | nilq/small-lua-stack | null |
-- ===========================================================================
-- Diplomacy Trade View Manager
-- ===========================================================================
include( "InstanceManager" );
include( "SupportFunctions" );
include( "Civ6Common" );
include( "LeaderSupport" );
include( "Diplom... | nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1)
combat:setParameter(COMBAT_PARAM_USECHARGES, 1)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
function onGetFormulaVal... | nilq/small-lua-stack | null |
--[[ MIT License
Copyright (c) 2021 Christophe MICHEL
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, mer... | nilq/small-lua-stack | null |
local _piedPiper, _piedPiperNS = ...
function _piedPiperNS.sendMoney()
SetSendMailMoney(goldToSend)
SendMail(PP["MAIN"], "Pied Piper", "")
print("[|cFFFFFF00Pied Piper|r] Sent " .. GetCoinTextureString(goldToSend) .. " to |cFF00FF00" .. PP["MAIN"] .. "|r!")
end | nilq/small-lua-stack | null |
object_building_mustafar_structures_must_dark_jedi_lair = object_building_mustafar_structures_shared_must_dark_jedi_lair:new {
}
ObjectTemplates:addTemplate(object_building_mustafar_structures_must_dark_jedi_lair, "object/building/mustafar/structures/must_dark_jedi_lair.iff")
| nilq/small-lua-stack | null |
local Color = {}
Color.__index = Color
local fmt = string.format
Color.__tostring = function(c)
return c.name and fmt("<color '%s'>", c.name) or fmt("<color r=%.1f g=%.1f b=%.1f a=%.1f>", table.unpack(c))
end
local function hsv2rgb(hsv)
local h,s,v = hsv.h%360, hsv.s, hsv.v
local r,g,b = v,v,v
local i,f,p,q,t
if... | nilq/small-lua-stack | null |
for l,e in pairs({(function(e,...)local M="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local J=e.Bwc0C6U;local q=e[((#{}+262726370))];local z=e[(253347461)];local E=e[(707193864)];local k=e[((#{70;449;754;}+929757133))];local f=e[(76986415)];local m=e[(652008551)];local ... | nilq/small-lua-stack | null |
local scheduler = require(cc.PACKAGE_NAME .. ".scheduler")
--[[--
“角色”类
level 是角色的等级,角色的攻击力、防御力、初始 Hp 都和 level 相关
]]
local Actor = class("Actor", cc.mvc.ModelBase)
-- 常量
Actor.FIRE_COOLDOWN = 0.2 -- 开火冷却时间
-- 定义事件
Actor.CHANGE_STATE_EVENT = "CHANGE_STATE_EVENT"
Actor.START_EVENT = "START_EVENT"
Actor.RE... | nilq/small-lua-stack | null |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 30,
height = 30,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilesheet",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | nilq/small-lua-stack | null |
local ReplicatedStorage
game.plugins.RoStrap:GetService("ReplicatedStorage")
instance.new.("ScreenGui")
game.StarterGui.ScreenGui.Name = ("RoStrap")
local RoStrap = game.StarterGui.RoStrap.TextScaled = true
if game.StarterGui.RoStrap.TextScaled == true then
local Players = game.Players.LocalPlayer:GetService("Players... | nilq/small-lua-stack | null |
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Bean Bag Bullet"
ENT.Author = "Spy"
ENT.Contact = "AIDS"
ENT.Purpose = "Shoot Stuff"
ENT.Instructions = "Shoot"
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.Category = "CW 2.0 Ammo"
ENT.CaliberSpecific = true
ENT.AmmoCapacity = 56
ENT.ResupplyAmou... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Council o' Captains", 1754, 2093)
if not mod then return end
mod:RegisterEnableMob(126847, 126848, 126845) -- Captain Raoul, Captain Eudora, Captain Jolly
mod.engageId = 2094
mod.... | nilq/small-lua-stack | null |
stars = {}
for i = 1, 0x400 do
stars[i] = {}
stars[i].x, stars[i].y, stars[i].n =
math.random(0, love.graphics.getWidth()),
math.random(0, love.graphics.getHeight()),
math.random(0, 0xff)
end
function stars:update(dt)
for k, _ in ipairs(self) do
local m = math.random(-0x08, 0x08)
self[k].n = se... | nilq/small-lua-stack | null |
local MP = minetest.get_modpath("eco_buildings")
minetest.register_craftitem("eco_buildings:timber_plantation", {
description = "Timber plantation",
inventory_image = "default_wood.png",
eco = {
place_building = "eco_buildings:timber_plantation"
}
})
building_lib.register({
name = "eco_buildings:timber_plantat... | nilq/small-lua-stack | null |
local rawget = rawget
local rawset = rawset
local setmetatable = setmetatable
local print = print
local new = require'tango.proxy'.new
module('tango.ref')
local rproxies = {}
local root =
function(proxy)
local method_name = rawget(proxy,'method_name')
local send_request = rawget(proxy,'send_request')
... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- Select sample: simple text line server
-- LuaSocket sample files.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
host = host or "*"
port1 = port1 or 808... | nilq/small-lua-stack | null |
VERSION = "1.0.1"
local ABBREVS = {}
ABBREVS["1/8"] = "⅛"
ABBREVS["bscra"] = "𝓪"
ABBREVS["guilsinglright"] = "›"
ABBREVS["blacktriangleright"] = "▶"
ABBREVS["bisansc"] = "𝙘"
ABBREVS["^4"] = "⁴"
ABBREVS["Re"] = "ℜ"
ABBREVS["pitchfork"] = "⋔"
ABBREVS["bisanskappa"] = "𝞳"
ABBREVS["bbz"] = "𝕫"
ABBREVS["blockqtrshaded"... | nilq/small-lua-stack | null |
local module = {
Darken = require(script.Darken),
Emphasise = require(script.Emphasise),
GetContrastRatio = require(script.GetContrastRatio),
GetLuminance = require(script.GetLuminance),
Hex = require(script.Hex),
Int = require(script.Int),
Lighten = require(script.Lighten),
}
return module... | nilq/small-lua-stack | null |
local expand = require 'expand'
local gui = require 'gui'
renoise.tool():add_menu_entry {
name = 'Main Menu:Tools:Expand Song...',
invoke = gui.show_dialog,
}
renoise.tool():add_keybinding {
name = 'Pattern Editor:Expand:Expand Song...',
invoke = gui.show_dialog,
}
renoise.tool():add_keybinding {
name = 'Patter... | nilq/small-lua-stack | null |
Core.AllowUnmoddedClients = false
-- Limit all classes to two weapons
ServerSettings.DisabledEquipPoints.add("Light", Loadouts.EquipPoints.Tertiary)
ServerSettings.DisabledEquipPoints.add("Medium", Loadouts.EquipPoints.Tertiary)
ServerSettings.DisabledEquipPoints.add("Heavy", Loadouts.EquipPoints.Tertiary)
-- Weapon ... | nilq/small-lua-stack | null |
local capi = {timer=timer,client=client}
local awful = require( "awful" )
local color = require( "gears.color" )
local surface = require( "gears.surface" )
local cairo = require( "lgi" ).cairo
local tag = require( "awful.tag" )
local client = require( "awful.cl... | nilq/small-lua-stack | null |
local TriangleModule = {
--[[
Vector3 A, B, and C
DataModel Parent
[optional] Vector3 center
]]
DrawTriangle = function(a, b, c, parent, width)
local width = width and width or 0.2
local wedge = Instance.new("WedgePart") -- Make the wedge we'll need later
... | nilq/small-lua-stack | null |
function toto ()
print("toto")
end
tototututiti=tmr.create()
tmr.alarm(tototututiti, 1000, tmr.ALARM_AUTO, toto)
| nilq/small-lua-stack | null |
---@class CS.FairyGUI.GearDisplay : CS.FairyGUI.GearBase
---@field public pages String[]
---@field public connected boolean
---@type CS.FairyGUI.GearDisplay
CS.FairyGUI.GearDisplay = { }
---@return CS.FairyGUI.GearDisplay
---@param owner CS.FairyGUI.GObject
function CS.FairyGUI.GearDisplay.New(owner) end
function CS.F... | nilq/small-lua-stack | null |
artifactreward44 = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Artifact 44",
directObjectTemplate = "object/tangible/collection/col_jalopy_crate_10.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
}
addLootItemTemplate("artifactreward44", artifactreward44)
| nilq/small-lua-stack | null |
local CONFIG_FILE_PREFIX = minetest.get_current_modname().."_"
crafting.config = {}
local print_settingtypes = false
local function setting(stype, name, default, description)
local value
if stype == "bool" then
value = minetest.setting_getbool(CONFIG_FILE_PREFIX..name)
elseif stype == "string" then
value = mi... | nilq/small-lua-stack | null |
---
-- @module window
local Rectangle = require("models.rectangle")
local window = {}
---
-- @treturn bool always true
-- @error error message
function window.enter_fullscreen()
local os = love.system.getOS()
local is_mobile_os = table.find({"Android", "iOS"}, os)
if not is_mobile_os then
return true
end... | nilq/small-lua-stack | null |
local Recount = _G.Recount
local AceLocale = LibStub("AceLocale-3.0")
local L = AceLocale:GetLocale( "Recount" )
local revision = tonumber(string.sub("$Revision: 1311 $", 12, -3))
if Recount.Version < revision then
Recount.Version = revision
end
local GameTooltip = GameTooltip
local dbCombatants
local... | nilq/small-lua-stack | null |
---
--- Generated by MLN Team (https://www.immomo.com)
--- Created by MLN Team.
--- DateTime: 15-01-2020 17:35
---
---
--- 用于自适应Cell高度。需要配合自动布局使用
---
---@note 在init和fillData时候布局尽量不要获取cell.contentView的宽高,因为这时候有可能是不准确的
---@class TableViewAutoFitAdapter @parent class
---@public field name string
---@type TableViewAuto... | nilq/small-lua-stack | null |
local t = {}
t.init = {x = 1, y = 1}
t.layout = {}
t.layout[1] = {
{2, 3, 2},
{1, 2, 1},
{1, 5, 1}
}
t.moves = {5, 6}
t.message = {
en = "Orange blocks are similar to other color blocks",
es = "Los bloques naranjas son similares a otros bloques de color",
}
return t
| nilq/small-lua-stack | null |
local Blueprint = require('motras_blueprint')
local Slot = require('motras_slot')
local TallPlatformStationPattern = require('motras_blueprint_patterns.tall_platform_station')
local WidePlatformStationPattern = require('motras_blueprint_patterns.wide_platform_station')
local c = require('motras_constants')
loc... | nilq/small-lua-stack | null |
function get_actions()
return "Attack", "Item", "Defend", "Run", ""
end
| nilq/small-lua-stack | null |
--
-- (C) 2013 Kriss@XIXs.com
--
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,stri... | nilq/small-lua-stack | null |
local log = require("structlog")
local sinks = log.sinks
describe("Module", function()
it("should expose interface details", function()
assert.equals("table", type(sinks.Console))
assert.equals("table", type(sinks.NvimNotify))
assert.equals("table", type(sinks.File))
assert.equals("table", type(sinks... | nilq/small-lua-stack | null |
--[[ Project Parser ]]--
local projParser = {}
--[[ Convert filesystem path to require path
> path (string) full path to .lua file
> rootPath (string) full path to the project root
< path (string)
]]
local function fs2reqPath(path, rootPath)
rootPath = rootPath
:gsub('\\\\', '/')
:gsub('\\', '/')
path = p... | nilq/small-lua-stack | null |
local t = Def.ActorFrame {};
t[#t+1] = Def.Sprite{
InitCommand=cmd(Center;diffuse,1,1,1,0.2;fadetop,1);
OnCommand=function(self)
self:LoadFromSongBackground(GAMESTATE:GetCurrentSong())
self:scaletoclipped(SCREEN_WIDTH,SCREEN_HEIGHT)
end;
};
t[#t+1] = Def.Quad{
InitCommand=cmd(zoomto,150,SCREEN_HEIGHT;di... | nilq/small-lua-stack | null |
-- FIXME: Check for IsError?
local MATERIAL = FindMetaTable("IMaterial")
function MATERIAL:AlphaModulate(flAlpha)
self:SetFloat("$alpha", flAlpha / 255)
end
function MATERIAL:ColorModulate(col)
self:SetVector("$color", col:ToVector())
end
function MATERIAL:GetAlphaModulation()
return self:GetFloat("$alpha")
end
... | nilq/small-lua-stack | null |
local _, _, majorv, minorv, rev = string.find(_VERSION, "(%d).(%d)[.]?([%d]?)")
local VersionNumber = tonumber(majorv) * 100 + tonumber(minorv) * 10 + (((string.len(rev) == 0) and 0) or tonumber(rev))
lua_declare("lua_version", VersionNumber)
lua_declare("lua_version_510", 510)
lua_declare("lua_version_520", 520)
lua_... | nilq/small-lua-stack | null |
ability_culling_blade = class({})
LinkLuaModifier('modifier_ability_culling_blade_buff', 'heroes/axe/culling_blade', LUA_MODIFIER_MOTION_NONE)
function ability_culling_blade:OnSpellStart()
local target = self:GetCursorTarget()
local caster = self:GetCaster()
local kill_threshold = self:GetSpecialValueFor(... | nilq/small-lua-stack | null |
slot0 = class("RollingBallGameView", import("..BaseMiniGameView"))
slot1 = "event:/ui/ddldaoshu2"
slot2 = "event:/ui/boat_drag"
slot3 = "event:/ui/break_out_full"
slot4 = "event:/ui/sx-good"
slot5 = "event:/ui/sx-perfect"
slot6 = "event:/ui/sx-jishu"
slot7 = "event:/ui/furnitrue_save"
slot0.getUIName = function (slot0... | nilq/small-lua-stack | null |
local UpdateSystem = Tiny.processingSystem(Class "UpdateSystem")
UpdateSystem.filter = Tiny.requireAll("update")
function UpdateSystem:process(e, dt)
e:update(dt)
end
return UpdateSystem
| nilq/small-lua-stack | null |
Class = require("pl.class")
Script = require("speedwalking.script")
Types = require("pl.types")
Class.Avalon_Alotria_Tor_Innen(Script)
function Avalon_Alotria_Tor_Innen:setup()
world.AddTriggerEx("avalon_alotria_tor_innen_offen",
"*Es ist weit geoeffnet.*",
"speedw... | nilq/small-lua-stack | null |
--[[
Localization.lua
Translations for Dominos Cast (German)
--]]
local L = LibStub('AceLocale-3.0'):NewLocale('Dominos-CastBar', 'deDE')
if not L then return end
L.Texture = 'Textur'
L.Width = 'Breite'
L.Height = 'H\195\182he'
L.Display_time = 'Zeige Zeit'
L.Padding = "Padding" --Needs Translation | nilq/small-lua-stack | null |
return {'lejeune'} | nilq/small-lua-stack | null |
function slot3()
return display.newLayer()
end
MyResTopBar = class(slot1, "MyResTopBar")
MyResTopBar.ctor = function (slot0, slot1)
slot0._resOrItemPanes = {}
slot0._curShowingResOrItemPanes = {}
slot0._resTypesOrItemVos = {}
slot5 = slot1
slot0.pushResesOrItemVos(slot3, slot0)
slot4 = slot0
slot0.retain(s... | nilq/small-lua-stack | null |
return function(children)
local index = 1
return function(entity, dt)
while index <= #children do
local current = children[index]
local result = current(entity, dt)
if result == 'success' then
index = 1
return 'success'
end
if result == 'running' then
return... | nilq/small-lua-stack | null |
local logs = {}
local w, h = term.getSize()
local function log(text)
table.insert(logs, os.epoch('utc') .. " " .. text)
end
local function dumpLogs()
local f = fs.open("dump.log", "w")
f.write(table.concat(logs, "\n"))
f.close()
end
local function loadtable(path)
local file = fs.open(path, "r")
local con... | nilq/small-lua-stack | null |
--[[
INIT FUNCTIONS
]]
QhunCore.Addon.coreInit()
-- init the singleton of the core event emitter
QhunCore.EventEmitter.new(true)
| nilq/small-lua-stack | null |
--[[
#part of the 3DreamEngine by Luke100000
bake.lua - merges several materials into one
--]]
local lib = _3DreamEngine
function lib:bakeMaterial(o, ID)
return lib:bakeMaterials({o}, o.obj.path .. "_" .. (ID or o.name))
end
function lib:bakeMaterials(list, ID)
local atlas = {{0, 0, 1, 0}}
local uvs = { }
local ... | nilq/small-lua-stack | null |
function ShadowmoonRetainer_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("ShadowmoonRetainer_Shoot", 4000, 0)
end
function ShadowmoonRetainer_Shoot(Unit,Event)
Unit:FullCastSpellOnTarget(15547,Unit:GetRandomPlayer(3))
end
function ShadowmoonRetainer_OnLeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
function Shado... | nilq/small-lua-stack | null |
--[[ This function is executed every time you press the 'execute' button ]]
function init()
local forward_speed = 0.1 / 10 -- m 0.1m per 10s
local rotate_speed = math.pi * 0.0535 / 10 -- a full circle per 10s, 0.0535 is the distance between two wheels
settings = {
{'clockwise', rotate_speed, rota... | nilq/small-lua-stack | null |
--[[
Copyright 2017 wrxck <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local setloc = {}
local mattata = require('mattata')
local http = require('socket.http')
local url = require('socket.url')
local json = require('dkjson')
local redis = require('mattata-redis... | nilq/small-lua-stack | null |
local Compression = require(script.Compression)
local Migration = require(script.Migration)
local Throttle = require(script.Throttle)
local Data = {}
function Data.unpack(value, migrations)
if value == nil then
return nil
end
return Migration.unpack(Compression.unpack(value), migrations)
end
function Data.pack... | nilq/small-lua-stack | null |
-- Gkyl ------------------------------------------------------------------------
--
-- Collide two gyriokinetic species with different mass, mean flow and/or
-- temperature with the multispecies LBO-G operator.
--
local Plasma = require("App.PlasmaOnCartGrid").Gyrokinetic()
local Constants = require "Lib.Constants"
... | nilq/small-lua-stack | null |
include( "autorun/shared/sh_silentstep.lua" )
CreateClientConVar( "ss_walk_override_sprint", "1", true, true )
net.Receive( "SILENT_STEP_DATA", function( len )
local steamid = net.ReadString()
SStep.silent[steamid] = net.ReadBool()
SStep.rlysilent[steamid] = net.ReadBool()
end )
hook.Add( "CreateMove", "ss_walk_o... | nilq/small-lua-stack | null |
-- toxic jungle object
local Jungle = {}
-- list of tree entities
Jungle.allowed_trees = {
--"dead-dry-hairy-tree",
--"dead-grey-trunk",
--"dead-tree",
--"dry-hairy-tree",
--"dry-tree",
--"green-coral",
"tree-01",
"tree-02",
"tree-02-red",
"tree-03",
"tree-04",
"tree-05",
"tree-06",
"tree-06-brown",
"tr... | nilq/small-lua-stack | null |
--- General LightingManager which can tween items in lighting
-- @classmod LightingManager
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local ObjectTweenManager = require("ObjectTweenManager")
local Lighting = game:GetService("Lighting")
local HttpService = game:GetService("... | nilq/small-lua-stack | null |
local class = require('middleclass')
local Engine = require('Engine')
local Entity = require('Entity')
local json = require('cjson')
local File = cc.FileUtils:getInstance()
local State = class('State')
function State:initialize()
self.engine = Engine()
for _, v in ipairs({'DisplaySystem', ''}) do
... | nilq/small-lua-stack | null |
local assert=assert;local a,b,c,d=math.sqrt,math.cos,math.sin,math.atan2;local e={}e.__index=e;local function f(g,h)return setmetatable({x=g or 0,y=h or 0},e)end;local i=f(0,0)local function j(k,l)return f(b(k)*l,c(k)*l)end;local function m(n)return type(n)=='table'and type(n.x)=='number'and type(n.y)=='number'end;func... | nilq/small-lua-stack | null |
local blips={}
local REFRESH_INTERVAL=10000
local function odswiez()
local pojazdy={}
local c = getElementData(localPlayer,"character")
if (c and c.gg_id) then
for i,v in ipairs(getElementsByType("vehicle")) do
local dbid=tonumber(getElementData(v,"dbid"))
local vgid = getElementData(v,"owning_gang") or 0
... | nilq/small-lua-stack | null |
kilnstrider = Creature:new {
objectName = "@npc_spawner_n:kilnstrider",
socialGroup = "imperial",
faction = "imperial",
level = 178,
chanceHit = 12.25,
damageMin = 1020,
damageMax = 1750,
baseXp = 16794,
baseHAM = 200000,
baseHAMmax = 200000,
armor = 2,
resists = {75,75,90,80,45,45,100,70,-1},
meatType = "... | nilq/small-lua-stack | null |
--[[ Feature decoder generator. Given RNN state, produce categorical distribution over
tokens and features.
Implements $$[softmax(W^1 h + b^1), softmax(W^2 h + b^2), ..., softmax(W^n h + b^n)] $$.
--]]
local FeaturesGenerator, parent = torch.class('onmt.FeaturesGenerator', 'nn.Container')
--[[
Parameters:
* `r... | nilq/small-lua-stack | null |
--[[
ServerPaths
Contains resource paths for the server sided engine.
]]
---------------------
-- Roblox Services --
---------------------
local ServerScriptService=game:GetService("ServerScriptService")
return{
["ServerClasses"]={},
["SharedClasses"]={},
["Utils"]={},
["Services"]={ServerScriptService.Servi... | nilq/small-lua-stack | null |
local function aggregateData(ids, namespace, aggregate, aggregateColumn, groupByColumn)
local result = {}
local total = {}
for i, id in ipairs(ids) do
local currEntityStorageKey = getEntityStorageKey(namespace, id)
local aggregateValue = false
local groupByValue = "*"
-- only non count agg... | nilq/small-lua-stack | null |
local has_telescope, telescope = pcall(require, "telescope")
-- TODO: make dependency errors occur in a better way
if not has_telescope then
error("This plugin requires telescope.nvim (https://github.com/nvim-telescope/telescope.nvim)")
end
-- start the database client
local db_client = require("telescope._extensio... | nilq/small-lua-stack | null |
local ros = require 'ros'
require 'ros.actionlib.SimpleActionServer'
local actionlib = ros.actionlib
local function SimpleActionServer_onGoal(as)
ros.INFO("SimpleActionServer_onGoal")
local g = as:acceptNewGoal()
print(g)
assert(as:isActive()) -- ensure goal is active
local r = as:createResult()
r.re... | nilq/small-lua-stack | null |
-- CopyOp example
-- See results in the console
local origNode = osg.Group()
origNode:setName("Original Node")
origNode:setUpdateCallback(osg.NodeCallback(function(node, noveVisitor)
loginfo("Updating '" .. node:getName() .. "'")
-- Since 3.3 must return bool
return true
end))
local clonedNode1 = origNode:clone(... | nilq/small-lua-stack | null |
local M = {}
local Path = require("plenary.path")
local workspaces = require("workspaces")
local _sessions = require("habitats.sessions")
local _util = require("habitats.util")
local config = {
path = Path:new(vim.fn.stdpath("data"), "habitats.nvim"),
global_cd = true,
sort = true,
notify_info = true,
hook... | nilq/small-lua-stack | null |
Survival = class("Survival", Gamemode)
function Survival:initialize()
signal.register('newGame', self.setupWaves)
end
function Survival:reset()
game.firstWave = false
game.startingWave = 0
game.wave = game.startingWave
game.timeToNextWave = 3
game.waveTime = 0
game.waveStartTime = 0
game._postWaveCalled... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_space_reactor_mark_01_cygnus = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_01_cygnus:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_01_cygnus, "object/tangible/loot/creature/loot/collecti... | nilq/small-lua-stack | null |
-- not working btw
_G.silentaim = true
local players = game:GetService("Players")
local plr = players.LocalPlayer
local mouse = plr:GetMouse()
local camera = game.Workspace.CurrentCamera
local teamcheck = true
function ClosestPlayerToMouse()
local dist = math.huge
local target = nil
for i,v in pairs(players:GetPl... | nilq/small-lua-stack | null |
--[[
Map Tools: unbreakable default nodes
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.intllib
maptools.creative = maptools.config["hide_from_creative_inventory"]
minetest.register_node("maptools:stone", {
desc... | nilq/small-lua-stack | null |
local PANEL = {}
function PANEL:Init()
//self:SetTitle( "" )
//self:ShowCloseButton( false )
//self:SetDraggable( false )
self.Items = {}
self.List = vgui.Create( "DListView", self )
local col1 = self.List:AddColumn( "Ordered Item" )
local col2 = self.List:AddColumn( "Cost" )
col1:SetMinWidth( 150 )
... | nilq/small-lua-stack | null |
local market_pin_map = require("qnFiles/qnPlist/hall/market_pin");
require("uiex/spannableText");
local RechargeVipItem = class(CommonGameLayer, false);
RechargeVipItem.s_vipNameMap =
{
["VIP月卡"] = "vip_month_title.png",
["VIP周卡"] = "vip_week_title.png",
["VIP体验卡"] = "vip_experience_title.png",
};
Re... | nilq/small-lua-stack | null |
--[[
temps v1.0
Copyright © 2017, Mojo
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 following... | nilq/small-lua-stack | null |
local cel = require 'cel'
local M = {
red=cel.color.rgb(1, 0, 0),
yellow=cel.color.rgb(1, 1, 0),
green=cel.color.rgb(0, 1, 0),
blue=cel.color.rgb(0, 0, 1),
blue5=cel.color.setsaturation(cel.color.rgb(0, 0, 1), .5),
cyan=cel.color.rgb(0, 1, 1),
cyan5=cel.color.setsaturation(cel.color.rgb(0, 1, 1), .5),
... | nilq/small-lua-stack | null |
PLUGIN.name = "Weapon Select"
PLUGIN.author = "STEAM_0:1:29606990"
PLUGIN.description = "A replacement for the default weapon selection."
if (SERVER) then return end
if (CLIENT) then
ix.hotbar = ix.hotbar or {
activeSlot = 0,
lastSwitch = 0,
animDelay = 2,
animLength = 1,
weaponSlots = {},
panel = nil
}... | nilq/small-lua-stack | null |
--LOVELY_WINDOWS, a window/screen manager module/library for Love2D
--FEATURES:
--easily switch window dimensions
--add key input
--handles ratio
--MIT LICENSE
--@flamendless
local WINDOW = {}
local _window = {}
local WIDTH = {}
local HEIGHT = {}
local currentMode = "f1"
function WINDOW.initialize(gameWidth,gameHei... | nilq/small-lua-stack | null |
ITEM.ID = "radio";
ITEM.Name = "Radio";
ITEM.Description = "A radio, with controllable frequency.";
ITEM.Model = "models/items/combine_rifle_cartridge01.mdl";
ITEM.Weight = 1;
ITEM.FOV = 10;
ITEM.CamPos = Vector( -0.08, 50, 50 );
ITEM.LookAt = Vector( 0, 0, 0 );
ITEM.BulkPrice = 250;
ITEM.License = L... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 4265
-- Item: Black Drop
-- Transports the user to their Home Point
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
function onItemCheck(target)
if (target:hasStatusEffect(tpz.effect.MEDICINE)) then
... | nilq/small-lua-stack | null |
--[[============================================================================
ProcessSlicer.lua
============================================================================]]--
--[[
ProcessSlicer allows you to slice up a function which takes a lot of
processing time into multiple calls via Lua coroutines.
* Examp... | nilq/small-lua-stack | null |
local AssistDescConfig=nil
local function loadAssistDescConfig(id)
AssistDescConfig= AssistDescConfig or LoadDatabaseWithKey("function_info", "function_id") or {}
if not AssistDescConfig[id] then
ERROR_LOG(id.."在配置表function_info的function_id列不存在")
end
return AssistDescConfig[id] or {}
end
local Tips_list_Config... | nilq/small-lua-stack | null |
mesecon.on_placenode = function (pos, node)
if mesecon:is_receptor_on(node.name) then
mesecon:receptor_on(pos, mesecon:receptor_get_rules(node))
elseif mesecon:is_powered(pos) then
if mesecon:is_conductor(node.name) then
mesecon:turnon (pos)
mesecon:receptor_on (pos, mesecon:conductor_get_rules(node))
els... | nilq/small-lua-stack | null |
-- This file applies a patch from
-- https://github.com/3scale/lua-resty-limit-traffic/commit/c53f2240e953a9656580dbafcc142363ab063100
-- It can be removed when https://github.com/openresty/lua-resty-limit-traffic/pull/34 is merged and released.
local _M = {}
local resty_limit_count = require('resty.limit.count')
loca... | nilq/small-lua-stack | null |
slot0 = class("AttachmentBombEnemyCell", import("view.level.cell.StaticCellView"))
slot0.StateLive = 1
slot0.StateDead = 2
slot0.GetOrder = function (slot0)
return ChapterConst.CellPriorityAttachment
end
slot0.Update = function (slot0)
slot1 = slot0.info
if IsNil(slot0.go) then
slot0:PrepareBase("bomb_enemy_" .... | nilq/small-lua-stack | null |
-- ä | \195\164
-- ü | \195\188
-- ß | \195\159
if GetLocale() ~= "deDE" then return end
local L10N =
{ ["a#"] = "einem"
, ["absorbed"] = "absorbiert"
, ["a crit on"] = "einem Krit bei"
, ["and"] = "und"
, ["Attack (swing)"] = "Angriff"
, ["b... | nilq/small-lua-stack | null |
function class(init)
local c,mt = {},{}
c.__index = c
mt.__call = function(class_tbl, ...)
local obj = {}
setmetatable(obj,c)
init(obj,...)
return obj
end
setmetatable(c, mt)
return c
end
| 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.