content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ 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, distri...
nilq/small-lua-stack
null
function love.load() sprites = {} sprites.background = love.graphics.newImage('sprites/background.png') sprites.bullet = love.graphics.newImage('sprites/bullet.png') sprites.player = love.graphics.newImage('sprites/player.png') sprites.zombie = love.graphics.newImage('sprites/zombie.png') playe...
nilq/small-lua-stack
null
return function() local HttpService = game:GetService("HttpService") local EncodedValue = require(script.Parent.EncodedValue) local allValues = require(script.Parent.allValues) local function deepEq(a, b) if typeof(a) ~= typeof(b) then return false end local ty = typeof(a) if ty == "table" then l...
nilq/small-lua-stack
null
BindingsGen = {} BindingsGen.name = "BindingsGen" project "BindingsGen" kind "ConsoleApp" language "C#" location "." files { "**.cs", "./*.lua" } dependson { "Bridge", "Generator", "Parser" } links { "System", path.join(depsdir, "cxxi", "build", action, "lib", "Bridge"), path.join(depsdir...
nilq/small-lua-stack
null
local selectionService = game:GetService("Selection") local changeHistoryService = game:GetService("ChangeHistoryService") local toolbar = plugin:CreateToolbar("Texture Randomizer") local button1 = toolbar:CreateButton("Randomize Textures", "Randomize Texture ", "rbxassetid://7509385682") function GetRandomizedValue...
nilq/small-lua-stack
null
local g = aroma.graphics local s = 100 function r() g.rectangle(0,0, s,s) end function flower() for i = 0, 2 do g.push() g.translate(s/2, s/2) g.rotate(i/10 * math.pi*2) g.translate(-s/2, -s/2) r() g.pop() end end function aroma.draw() g.setColor(128,255,128) r() g.setColor(255,1...
nilq/small-lua-stack
null
sptbl["saturator"] = { files = { module = "saturator.c", header = "saturator.h", example = "ex_saturator.c", }, func = { create = "ut_saturator_create", destroy = "ut_saturator_destroy", init = "ut_saturator_init", compute = "ut_saturator_compute", ...
nilq/small-lua-stack
null
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISMoveablesAction : ISBaseTimedAction ISMo...
nilq/small-lua-stack
null
minetest.register_node("twomt_tinker:fabolight", { description = "It´s fabulous.", light_source = 5, tiles = {"default_stone.png^twomt_tinker_fabolight.png"}, is_ground_content = true, groups = {cracky = 2}, drop = "twomt_tinker:fabolight_lump" }) minetest.register_node("twomt_tinker:minevium",...
nilq/small-lua-stack
null
--- the Textadept initializer for the Moonscript module. -- @author [Alejandro Baez](https://twitter.com/a_baez) -- @copyright 2015-2016 -- @license MIT (see LICENSE) -- @module init local _snippets = require("moonscript.snippets") textadept.file_types.extensions.moon = 'moonscript' textadept.editing.comment_string.m...
nilq/small-lua-stack
null
solution "operating_systems" configurations { "Debug", "Release" } project "oscontext" kind "SharedLib" language "C" location "build" targetdir "build" files { "src/*.h", "src/*.c" } links { "rt" } configuration "Debug" defines { "DEBUG" } flags { "Sym...
nilq/small-lua-stack
null
lfs = require "lfs" util = require "util.util" fs = require "util.filesystem" chainsaw = require "util.chainsaw"
nilq/small-lua-stack
null
-- The default minetest.item_place_node from item.lua was hard to work with given some of the details -- of how it handled pointed_thing. It also didn't work right with default:torch and seeds. It was simpler to -- just copy it here and chop out the special cases that were causing problems, and add some special handlin...
nilq/small-lua-stack
null
object_tangible_furniture_jedi_frn_all_banner_dark_s01 = object_tangible_furniture_jedi_shared_frn_all_banner_dark_s01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_jedi_frn_all_banner_dark_s01, "object/tangible/furniture/jedi/frn_all_banner_dark_s01.iff")
nilq/small-lua-stack
null
AmbientVolume = { type = "Sound", Properties = { soundName = "", --iVolume=255, OuterRadius = 10, bEnabled = 1, bIgnoreCulling=0, bIgnoreObstruction=0, bSensitiveToBattle = 0, bLogBattleValue = 0, }, started = 0, Editor={ Model="Editor/Objects/Sound.cgf", Icon="AmbientVolume.bmp", }, bEnab...
nilq/small-lua-stack
null
--- XML utility functions local constants = require "expadom.constants" local ERRORS = constants.ERRORS --local TYPES = constants.NODE_TYPES local M = {} --- Library for UTF-8 support. -- This is either the stock Lua lib, on Lua 5.3 or higher. Or the one from -- the Lua 5.3 compatibility module; "compat53.utf8". --...
nilq/small-lua-stack
null
--[[ LICENSE HEADER MIT License Copyright © 2017 Jordan Irwin 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 us...
nilq/small-lua-stack
null
dofile("/models/testcube.lua"); data.visibles["visible/testcube"] = { objects = { { mesh = "mesh/testcube", submesh_id = 0 } } } data.prototypes["prototype/testcube"] = { visible = "visible/testcube", world_position = true, rotation = true } data.shaders["s...
nilq/small-lua-stack
null
--* locale config {GUI} suiLC = function(lang) local E, C, L, _ = SohighUI:unpack() --// Main //-- if lang == 'suigui_main' then lang = L_GUI_MAIN end if lang == 'suigui_mainmaxUIScale' then lang = L_GUI_MAIN_UISCALE end if lang == 'suigui_mainrestyleUI' then lang = L_GUI_MAIN_RESTYLEUI end ...
nilq/small-lua-stack
null
--[[ Takes a table and returns the field count ]] return function(t) local fieldCount = 0 for _ in pairs(t) do fieldCount = fieldCount + 1 end return fieldCount end
nilq/small-lua-stack
null
local M = {} -- interface: https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#binarySearch(float[],%20int,%20int,%20float) -- (but conforming to Lua 1-based table indexes instead of Java's 0-based indexes) -- implementation: https://stackoverflow.com/questions/19522451/binary-search-of-an-array...
nilq/small-lua-stack
null
--[[-------------------------------------------------- GUI Editor client item_resolution.lua define the resolution right click menu items --]]-------------------------------------------------- function createItem_resolution() return MenuItem_Toggle:create(false, "Preview in resolution"):set({onClick = resoluti...
nilq/small-lua-stack
null
local inspect = require 'Data.lua.inspect' print("Current SkyBox Is: "); print(inspect(eyeGetSkyBox())); print("List of All SkyBox:"); print(inspect(eyeGetAllSkyBox())); print("Set SkyBox to SkyCube_Evergreen03a.dds"); eyeSetSkyBox("SkyCube_Evergreen03a.dds"); eyeDisableSkyBox(); eyeSetSkyBoxColor({0,255,0,128});
nilq/small-lua-stack
null
NMS_MOD_DEFINITION_CONTAINER = { ["MOD_FILENAME"] = "AlwaysDay.pak", ["MOD_AUTHOR"] = "Mjjstral", ["NMS_VERSION"] = "1.77", --version on first mod release ["MOD_DESCRIPTION"] = "", --optional, not used ["MODIFICATIONS"] = { { ["PAK_FILE_SOURCE"] = "NMSARC.59B126E2.pak", --globals [...
nilq/small-lua-stack
null
--[[ Author: Noya Date: 9.1.2015. Plays a looping and stops after the duration ]] function AcidSpraySound( event ) local target = event.target local ability = event.ability local duration = ability:GetLevelSpecialValueFor( "duration", ability:GetLevel() - 1 ) target:EmitSound("Hero_Alchemist.AcidSpray") -- St...
nilq/small-lua-stack
null
local entity = {} entity["level"] = [[79]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Megidola]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Maragidyne]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Ligh...
nilq/small-lua-stack
null
help( [[ elastix is open source software, based on the well-known Insight Segmentation and Registration Toolkit (ITK). The software consists of a collection of algorithms that are commonly used to solve (medical) image registration problems. The modular design of elastix allows the user to quickly configure, test, and ...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 4994 -- Scroll of Mages Ballad -- Teaches the song Mages Ballad ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(386) end function onItemUse(target) target:addSpell(386) end
nilq/small-lua-stack
null
local games = require("Games") local misc = require("Misc") local werewords = {} werewords.desc = "A social deduction game for 4-10 players. One player picks a secret word, and the other players ask them yes or no questions to try to deduce it. Certain players are secretly werewolves, and trying to prevent the word fr...
nilq/small-lua-stack
null
-- Path of Building -- -- Class: Calc Breakdown Control -- Calculation breakdown control used in the Calcs tab -- local t_insert = table.insert local m_max = math.max local m_min = math.min local m_ceil = math.ceil local m_floor = math.floor local m_sin = math.sin local m_cos = math.cos local m_pi = math.pi local band ...
nilq/small-lua-stack
null
kSkulkMucousShieldPercent = 0.2 kGorgeMucousShieldPercent = 0.13 kLerkMucousShieldPercent = 0.14 kFadeMucousShieldPercent = 0.16 kMucousShieldMaxAmount = 85
nilq/small-lua-stack
null
local skynet = require "skynet" local meiru = require "meiru.meiru" local config = require "config" local router = require "router" local api_router = require "api_router" local auth = require "component.auth" local response = require "component.response" local renderfunc = require "common.renderfunc" local asset...
nilq/small-lua-stack
null
Pastelizer = {} require("util") require("components/slider") math.randomseed( love.timer.getDelta() / math.random() ) function love.load() local starterColors = { Pastelizer:RGB(247, 223, 31), Pastelizer:RGB(237, 41, 57), Pastelizer:RGB(106, 79, 236), Pastelizer:RGB(247, 106, 140) } Pasteliz...
nilq/small-lua-stack
null
-- lua/rs/FlinchMixin.lua FlinchMixin = CreateMixin(FlinchMixin) FlinchMixin.type = "Flinch" FlinchMixin.expectedCallbacks = { TriggerEffects = "The flinch effect will be triggered through this callback.", GetMaxHealth = "Returns the maximum amount of health this entity can have.", SetPoseParam = "Set the...
nilq/small-lua-stack
null
return { module = "NativeOsUtils" }
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------------------- -- The DisplayObject that has graphics capabilities. -- You can call in the method chain MOAIDraw. -- -- <h4>Extends:</h4> -- <ul> -- <li><a href="flower.DrawableObject.html">DrawableObject</a><l/i> -- </ul> -- -- @au...
nilq/small-lua-stack
null
local testing = require 'tests.testing' local fn = require 'fn' local M = {} function M.test_none() testing.forstats({count = 0, sum = 0}, fn.concat()) end function M.test_one() testing.forstats({count = 5, sum = 15}, fn.concat({fn.fromto(1, 5)})) end function M.test_one_none_generated() testing.forst...
nilq/small-lua-stack
null
local PhysService = game:GetService("PhysicsService") local PlayerGroup = PhysService:CreateCollisionGroup("p") PhysService:CollisionGroupSetCollidable("p","p",false) function NoCollide(model) for k, v in pairs(model:GetChildren()) do if v:IsA("BasePart") then PhysService:SetPartCollisionGroup(v,"p") e...
nilq/small-lua-stack
null
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Simple Explosive" ENT.WireDebugName = "Simple Explosive" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) ...
nilq/small-lua-stack
null
#!/usr/bin/env lua local json = require("json") local socket = require("socket") local mime = require("mime") local tcp = socket.tcp() local sf = string.format local page = "sample.json" local action = print if not arg[1] and not arg[2] then print("You need to specify a valid user name and password!") print("E...
nilq/small-lua-stack
null
object_tangible_furniture_city_xwing_event_reward = object_tangible_furniture_city_shared_xwing_event_reward:new { } ObjectTemplates:addTemplate(object_tangible_furniture_city_xwing_event_reward, "object/tangible/furniture/city/xwing_event_reward.iff")
nilq/small-lua-stack
null
local manager = require(script.Manager) -- Manager Modules local datastore = manager('Datastore') local session = manager('Session') local suffix = manager('Suffix') local cache = manager('Cache') -- Cache local sessions = cache.Sessions -- Services local players = game:GetService('Players') local replicated_storage...
nilq/small-lua-stack
null
local subgroups = {"empty-barrel", "fill-barrel"} if settings.startup["unbarrel-subgroup-excludes"] then subgroups = {} for subgroup in string.gmatch(settings.startup["unbarrel-subgroup-excludes"].value, '[^",%s]+') do table.insert(subgroups, subgroup) end end log("hiding subgroups from hand crafting: " .....
nilq/small-lua-stack
null
return { id = "balloon", name = "Balloons", cost = 6000, profit = 1500, desirability = 5, width = 3, dirtyable = true, visitable = true, upkeep = 35, sprites = { { name = "interior", animations = { clean = { first = 0, last = 0, speed = 1, ...
nilq/small-lua-stack
null
-- ---------------------------------------------------- -- sqlite3_create.lua -- -- Oct/29/2014 -- ---------------------------------------------------- require ("luasql.sqlite3") require ("text_manipulate") require ("sql_manipulate") print ("*** 開始 ***") local file_db=arg[1] print (file_db) local env = luasql.s...
nilq/small-lua-stack
null
local format = string.format local cmd = vim.cmd local M = {} M.Hlgroup = { name = '', opts = { gui = nil, guifg = nil, guibg = nil, }, } function M.Hlgroup:embed(text) return format('%%#%s#%s%%*', self.name, text) end function M.Hlgroup:exec() local opts = '' for k, v in pairs(self.opts) d...
nilq/small-lua-stack
null
fx_version 'cerulean' games { 'gta5' } author 'THC' ui_page 'html/index.html' files { 'html/index.html', 'html/style.css', 'html/Achtung!-Polizei.otf' }
nilq/small-lua-stack
null
local value = tonumber(redis.call("hincrbyfloat", KEYS[1], ARGV[3], ARGV[1])) local before = value - ARGV[1] local limit = tonumber(ARGV[2]) if (value > limit) then redis.call("hset", KEYS[1], ARGV[3], limit) if (before >= limit) then return -1 else return limit - before end end return A...
nilq/small-lua-stack
null
local SleepDuration = 50 function main() for x = 0, 92, 4 do for y = 0, 6, 1 do local Col = math.random(8) if Col == 1 then SetLed( x, y, 7, 0, 0 ) elseif Col == 2 then SetLed( x, y, 7, 7, 0 ) elseif Col == 3 then SetLed( x, y, 7, 7, 7 ) ...
nilq/small-lua-stack
null
return { talon_thanos = { acceleration = 0.0015, brakerate = 0.08, buildcostenergy = 440150, buildcostmetal = 29800, builder = false, buildpic = "talon_thanos.dds", buildtime = 350000, canattack = true, canguard = true, canhover = true, canmove = true, canpatrol = true, canstop ...
nilq/small-lua-stack
null
--Created by the QnEditor,do not modify.If not,you will die very nankan! local MAP = { var = { Button_selected = 1, Text_num = 2, Image_congratulation = 3, Image_gold_icon = 4, Text_gold_num = 5, }, ui = { [1] = {"Button_selected"}, [2] = {"Button_selected","Text_num"}, [3] = {"Button_selected","Imag...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- create an mtar v1 file -- local function genHeader(name, len) --io.stderr:write(name, "\n") return string.pack(">I2I1I2", 0xFFFF, 1, #name) .. name .. string.pack(">I8", len) end local function packFile(path) local handle = assert(io.open(path, "r")) local data = handle:read("a") h...
nilq/small-lua-stack
null
require 'nn' local fSize = {2, 96, 192, 256, 256} local featuresOut = fSize[4] local model = nn.Sequential() model:add(nn.SpatialConvolution(fSize[1], fSize[2], 7, 7, 3, 3)) model:add(nn.ReLU()) model:add(nn.SpatialMaxPooling(2,2,2,2)) model:add(nn.SpatialConvolution(fSize[2], fSize[3], 5, 5)) model:add(nn.ReLU()) mo...
nilq/small-lua-stack
null
marauder_soldier = Creature:new { customName = "a Marauder Soldier", socialGroup = "endor_marauder", faction = "endor_marauder", level = 150, chanceHit = 3.75, damageMin = 570, damageMax = 1050, baseXp = 10174, baseHAM = 50000, baseHAMmax = 60000, armor = 0, resists = {20,70,20,60,60,45,80,80,25}, meatType...
nilq/small-lua-stack
null
local shell = require("shell") local filesystem = require("filesystem") local computer = require("computer") if not filesystem.exists("/home/myaenetwork") then filesystem.makeDirectory("/home/myaenetwork") shell.setWorkingDirectory("/home/myaenetwork/") print("Downloading") shell.execute("w...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- --- Head: Require -- local gfs = require('gears.filesystem') -- -- Tail: Require -------------------------------------------------------------------------------- ------------------------------------------------------------------------...
nilq/small-lua-stack
null
racesnumbers = { "first", "gudrace", "city", "mountains", "desert", "longroad", "noname", "antenna", "longroad2", "city2", "coast", "mountains2", "solar", "desert2" } --[[ spawns["name"] = { angle, 1{x,y,z}, 2{x,y,z}, ... } ]...
nilq/small-lua-stack
null
--[[ source: https://github.com/hamishforbes/lua-resty-iputils/blob/master/lib/resty/iputils.lua ]] module(..., package.seeall) _VERSION = '0.3.1' local bit = require("bit") local ipairs = ipairs local tonumber = tonumber local tostring = tostring local type = type local byte = string.by...
nilq/small-lua-stack
null
print("Lua Test A") print("Hello world, Lua!!!") print("\n")
nilq/small-lua-stack
null
--[[ Basically rewriting the c++ code to not be total shit so this can also not be total shit. ]] local allowedCustomization = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay local jcKeys = tableKeys(colorConfig:get_data().judgment) local jcT = {} -- A "T" following a variable name will designat...
nilq/small-lua-stack
null
--============================================================================= -- -- lua/Scoreboard.lua -- -- Created by Henry Kropf and Charlie Cleveland -- Copyright 2011, Unknown Worlds Entertainment -- --============================================================================= --[[ * Main purpose it to main...
nilq/small-lua-stack
null
scrW,scrH = System:screenSize(); imageUrl = "http://g.alicdn.com/ju/lua/2.0.24/doc/icon.png" IMG_W = scrW/3; Download( imageUrl,"baidu.png", function (data) print( data ); --数据流写到文件中 File.save("demo.png",data); print(PathOfResource("demo.png")); --文件创建图片 imageView = Image(); imageView:ima...
nilq/small-lua-stack
null
package = "blunty666.nodes.gui.objects" class = "CheckBox" extends = "Button" constructor = function(self, node, x, y, order) self.super(node, x, y, order, " ", colours.white, colours.black, 1, 1) self.isToggle = true self.activeMainColour = colours.white self.activeTextColour = colours.black self.activeText = "...
nilq/small-lua-stack
null
local CSGSecurity = {{{{{ {}, {}, {} }}}}} Objects = { --Tach createObject ( 3115, -2066.1001, 474.60001, 35.1, 0, 90, 270 ), createObject ( 6959, -1673.4, 799.79999, 35, 0, 90, 0 ), createObject ( 6959, -1673.4, 772.40002, 35, 0, 90, 0 ), createObject ( 6959, -1693, 799.79999, 35, 0, 90, 0 ), createObject ( 6959, -169...
nilq/small-lua-stack
null
local null_ls = require("null-ls") local helpers = require("null-ls/helpers") local methods = require("null-ls/methods") local function make_tool(overrides) local function tool(arg) local defaults = { name = arg.name, filetypes = arg.ft, generator_opts = vim.tbl_extend("...
nilq/small-lua-stack
null
------------------------------------------- --Classes and their stats ------------------------------------------- Classes = {} Classes[1] = { NAME = "Human", COST = 0, WEAPON = "human_gun", DESCRIPTION = "This is the default starting class armed with a glock. Play this class if you plan on saving for ...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_monkey_ki...
nilq/small-lua-stack
null
SPRITES = {} SPRITES.atlas = love.graphics.newImage("res/sprites/atlas.png") local sw = SPRITES.atlas:getWidth() local sh = SPRITES.atlas:getHeight() SPRITES.cell1 = love.graphics.newQuad(1024, 512, 512, 512, sw, sh) SPRITES.cell2 = love.graphics.newQuad(1024, 1024, 512, 512, sw, sh) SPRITES.cell3 = love.graphics.newQu...
nilq/small-lua-stack
null
-- All Sprites (images) Sprites = {} --Sprites.background = love.graphics.newImage() --Sprites.player_img = love.graphics.newImage("assets/sp.png") Sprites.coin_image = love.graphics.newImage("assets/coin_item-1.png") Sprites.player_image = love.graphics.newImage("assets/Spaceship_01_ORANGE.png") Sprites.enemy_image = ...
nilq/small-lua-stack
null
----------------------------------- -- Shining Blade -- Sword weapon skill -- Skill Level: 100 -- Deals light elemental damage to enemy. Damage varies with TP. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: Light -- Modifiers: STR:40% MND:40% -- 100%TP 200%TP 300%TP -- 1.125 2.2...
nilq/small-lua-stack
null
--[[ CONTENTS_EMPTY = 0 CONTENTS_SOLID = 0x1 CONTENTS_WINDOW = 0x2 CONTENTS_AUX = 0x4 CONTENTS_GRATE = 0x8 CONTENTS_SLIME = 0x10 CONTENTS_WATER = 0x20 CONTENTS_BLOCKLOS = 0x40 CONTENTS_OPAQUE = 0x80 CONTENTS_TESTFOGVOLUME = 0x100 CONTENTS_UNUSED = 0x200 CONTENTS_UNUSED6 = 0x400 CONTENTS_TEAM1 = 0x800 CONTENTS_TEAM2 = 0...
nilq/small-lua-stack
null
request = function() param_value = math.random(1,10000) path = "/diamond-server/publishConfig?dataId=linname" .. param_value .. "&group=DEFAULT_GROUP" .. param_value .. "&content=wrkpublish" .. param_value return wrk.format("POST", path) end
nilq/small-lua-stack
null
local chopshop = {} local myChop = 0 chopshop["x"] = 0 chopshop["y"] = 0 chopshop["z"] = 0 local locationset = false local plateshop = {} plateshop["x"] = 0 plateshop["y"] = 0 plateshop["z"] = 0 local lockedplates = {} local chopshopowner = 9999999 local randstrng = { [1] = "Just got another hot vehicle, taking it t...
nilq/small-lua-stack
null
local lm = require "luamake" --the generated file must store into different directory local defined = require "compile.luajit.defined" local arch = defined.arch local LUAJIT_ENABLE_LUA52COMPAT = defined.LUAJIT_ENABLE_LUA52COMPAT local LUAJIT_NUMMODE = defined.LUAJIT_NUMMODE local luajitDir = defined.luajitDir local ...
nilq/small-lua-stack
null
--[[ TODO: * Require module from client once required from server. --]]
nilq/small-lua-stack
null
------------------------------------------------------------ ------------------------ yrp_drugs ------------------------- ------------------------------------------------------------ --------------------- Created by Flap ---------------------- ------------------------------------------------------------ ----------...
nilq/small-lua-stack
null
local function isInvalid(arg) local from, to, err = ngx.re.find(arg, ".*(shell|bash|root|select .* from).*", "jo") if not from then return false end return true end local arg = ngx.req.get_uri_args() for k,v in pairs(arg) do if isInvalid(k) or isInvalid(v) then ngx.exit(ngx.HTTP_INT...
nilq/small-lua-stack
null
-- Lua --[=x=] 行コメント print ("I said \"Hello.\" to him.") print ('that\'s good.')--Hello World!と画面に表示する print "Hello World!" --[[この部分が コメントとなります]] for i = 1, 9 do array = {} for j = 1, 9 do table.insert(array , i*j) io.write( string.format("%3d", array[j]) ) end io.write("\n") end io.write --[===[ コメント print([...
nilq/small-lua-stack
null
-- Loaders data.raw.item["transport-belt-loader"].subgroup = "transport-dead-loader" data.raw.item["transport-belt-loader"].order = "a" data.raw.item["fast-transport-belt-loader"].subgroup = "transport-dead-loader" data.raw.item["fast-transport-belt-loader"].order = "b" data.raw.item["express-transport-belt-loader"].su...
nilq/small-lua-stack
null
project "Test Lua" language "C#" kind "ConsoleApp" files { "../src/testLua/**.cs" } links { "System", "Lua"} location "testLua" vpaths { ["*"] = "../src/testLua" }
nilq/small-lua-stack
null
local coordsVisible = false ShowNotificationTicker = function(message) BeginTextCommandThefeedPost('STRING') AddTextComponentSubstringPlayerName(message) EndTextCommandThefeedPostTicker(0, 1) end RegisterCommand('copycoords', function() --Copy coords command. You can change the command to what yo...
nilq/small-lua-stack
null
-- AudioTest -- Author:LuatTest -- CreateDate:20200717 -- UpdateDate:20210830 module(..., package.seeall) local waitTime1 = 3000 local waitTime2 = 1000 --音频播放优先级,数值越大,优先级越高 local PWRON, CALL, SMS, TTS, REC = 4, 3, 2, 1, 0 local playVol = 0 local micVol = 0 local count = 1 local speed = 4 local ttsStr = "上海合宙通信科技有限公...
nilq/small-lua-stack
null
-- chatbox/messageManager.lua by Bonyoze -- Manager formatting messages and player avatars bsuChat.imageDataCache = {} function bsuChat.formatMsg(...) -- formats regular print message data table for use in html local msg = {} for k, arg in pairs({...}) do if type(arg) == "string" then table.Add(msg, bsuChat....
nilq/small-lua-stack
null
-- gruvbox-material vim.g.gruvbox_material_background = 'hard' vim.g.gruvbox_material_palette = 'material' vim.g.gruvbox_material_enable_italic = 1 vim.g.gruvbox_material_disable_italic_comment = 0 vim.g.gruvbox_material_enable_bold = 1 vim.g.gruvbox_material_visual = 'green background' vim.g.gruvbox_material_menu_sele...
nilq/small-lua-stack
null
turtle.select(16) turtle.refuel(16) turtle.select(1) for i = 1, 32 do turtle.dig() turtle.forward() turtle.digUp() os.sleep(0.5) turtle.digDown() turtle.turnLeft() for u = 1, 2 do turtle.dig() turtle.forward() turtle.digUp() os.sleep(0.5) turtle.digDow...
nilq/small-lua-stack
null
#!/usr/bin/env lua --[[ local map = { ["apple"] = "蘋果", ["banana"] = "香蕉", ["cherry"] = "櫻桃" } --]] local map = { apple = "蘋果", banana = "香蕉", cherry = "櫻桃" } -- set map["apple"] = "這是蘋果。" map["banana"] = "這是香蕉。" map["cherry"] = "這是櫻桃。" print(map["apple"]) print(map["banana"]) print(map["cherry"])
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_ig_88_head = object_tangible_loot_creature_loot_collections_shared_ig_88_head:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_ig_88_head, "object/tangible/loot/creature/loot/collections/ig_88_head.iff")
nilq/small-lua-stack
null
util.AddNetworkString("net_enable_celshading_on_players") util.AddNetworkString("net_enable_gm13halos_on_players") net.Receive("net_enable_celshading_on_players", function(_, ply) if not ply:IsAdmin() then return end RunConsoleCommand("enable_celshading_on_players", net.ReadString()) end) net.Receive("net_en...
nilq/small-lua-stack
null
-------------------------------------------------------------------------- -- cours exported from GestionPtfEfficienceMarko.txt -------------------------------------------------------------------------- GestionPtfEfficienceMarko = Tmv(GESTION_PTF_EFFICIENCE_MARKO_TITLE_ID,GESTION_PTF_EFFICIENCE_MARKO_TITLE_HEADER_ID)...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_kashyyyk_loot_uwari_fluid = object_tangible_loot_creature_loot_kashyyyk_loot_shared_uwari_fluid:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_uwari_fluid, "object/tangible/loot/creature_loot/kashyyyk_loot/uwari_fluid.iff")
nilq/small-lua-stack
null
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- License -- ============================================================= --[[ > SSK is free to use. > SSK is free to edit. > ...
nilq/small-lua-stack
null
-- Disable imaps (using Ultisnips) vim.g.vimtex_imaps_enabled = 0 -- Do not open pdfviwer on compile vim.g.vimtex_view_automatic = 0 -- Disable conceal vim.g.vimtex_syntax_conceal = { accents = 0, cites = 0, fancy = 0, greek = 0, math_bounds = 0, math_delimiters = 0, math_fracs = 0, math...
nilq/small-lua-stack
null
dantari_chief = Creature:new { objectName = "@mob/creature_names:dantari_raider_chief", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "dantari_raiders", faction = "dantari_raiders", level = 42, chanceHit = 0.44, damageMin = 345, damageMax = 400, baseXp = 4188, baseHAM = 9300, baseHAMmax...
nilq/small-lua-stack
null
--[[ This file contains an alternative pfilter(...) implementation in pure Lua (utilizing moonbridge_io). This implementation is currently not used since extos already comes with a C implementation (extos.pfilter), which is independent of moonbridge_io and thus preferred to the implementation below. data_out, -- s...
nilq/small-lua-stack
null
---------------------------------- -- Area: Lower Jeuno -- NPC: Mesukiki -- Type: Item Deliverer -- !pos -19.832 -0.101 -39.075 245 -- ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigge...
nilq/small-lua-stack
null
package.path = 'C:/Program Files (x86)/HTTPD/htdocs/TrainMobileFile/LuaCode/lib/?.lua;C:/Program Files (x86)/HTTPD/htdocs/TrainMobileFile/LuaCode/namepipe/?.lua' --idlcpp for apache. --url format: fs_namepipe_client_get_data.php?id=xx&key=xx&pop=1/0... function handle(r) r.content_type = "text/plain" if r.metho...
nilq/small-lua-stack
null
-- -- default.lua -- Default Configs -- local default_config = {} -- ============================================================================= -- Default applications -- ============================================================================= default_config.apps = { terminal = "iTerm", browser = "Brave ...
nilq/small-lua-stack
null
spy_rogue = { cast = function(player, target) if not player:canCast(1, 1, 0) then return end if (player.magic < 30) then player:sendMinitext("You do not have enough mana.") return end if target.level > player.level then player:sendMinitext("Target player must be lower level than you for you to u...
nilq/small-lua-stack
null
local component = require("component") if component.isAvailable("experience") == true then print("Current experience level " .. component.experience.level()) end
nilq/small-lua-stack
null
require("Globals") local Tas = require("Tas"); require("util") local Gui = require("Gui") local GuiEvents = require("GuiEvents") inspect = require("inspect") script.on_init( function() -- Dont capture and print error, players won't see it as they haven't been added to the game -- Instead collect the traceba...
nilq/small-lua-stack
null