content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
wOS.ALCS = wOS.ALCS or {}
wOS.ALCS.Config = wOS.ALCS.Config or {}
wOS.ALCS.Config.Skills = wOS.ALC... | nilq/small-lua-stack | null |
-- ter_fighter1.lua
-- Configuration file for the Terran Mk.1 Fighter
ship = {
uname = "ter_fighter1",
race = "terran",
fullname = "Fighter Mk.1",
model = "fighter.3ds",
cockpit = "canopy02.3ds",
pitch = 80,
yaw = 50,
roll = 90,
mass = 2500,
enginetype = "ter_fusion2.lua",
engines = {
... | nilq/small-lua-stack | null |
ITEM.name = "Moskovskaya Sausage"
ITEM.description = "A lump of sausage"
ITEM.longdesc = "A traditional Russian sausage similar to the Polish kielbasa, this Eastern European sausage is also known as Maskoska. This sausage is made in the Ukraine following the classic Eastern European recipe, pork and beef lightly smoked... | nilq/small-lua-stack | null |
-- Prosody IM
-- Copyright (C) 2014 Daurnimator
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This module allows you to use cqueues with a net.server mainloop
--
local server = require "net.server";
local cqueues = require "cqueues";
assert(cqu... | nilq/small-lua-stack | null |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
Clockwork.json = Clockwork.kernel:NewLibrary("Json");
function Clockwork.json:Enc... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local C = ffi.C
local typeof = ffi.typeof
ffi.cdef([[
int execve(const char *filename, const char *argv[], const char *envp[]);
char *strerror(int errnum);
int execvp(const char *file, const char *argv[]);
]])
local string_array_t = typeof("const char *[?]")
local function execvp(filename... | nilq/small-lua-stack | null |
function todo.create_frame(player, name, caption, close_name)
local frame = player.gui.screen.add({
type = "frame",
name = name,
direction = "vertical"
})
-- Add title bar
local title_bar = frame.add({
type = "flow"
})
local title = title_bar.add({
type =... | nilq/small-lua-stack | null |
-- the hud handles all hud elements
local pBarX, pBarY, pBarW, pBarH = 0
local devFont, hudFont, specialFont = nil
local devInfo = nil
local dangertimer = 0 -- used to modify danger warner text dynamically (size, color)
-- simple init function
function hud_init()
pBarW = math.floor(love.graphics:getWidth() / 6)
... | nilq/small-lua-stack | null |
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
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, dis... | nilq/small-lua-stack | null |
return
{
name = 'sony_morpheus',
ident = '^SCEIHMD',
wm = 'ignore',
tag = 'VR'
};
| nilq/small-lua-stack | null |
return function()
require("stabilize").setup()
end
| nilq/small-lua-stack | null |
includeFile("custom_content/tangible/loot/loot_schematic/dancing_droid_schematic.lua")
includeFile("custom_content/tangible/loot/loot_schematic/deconstructed_armor_schematic.lua")
includeFile("custom_content/tangible/loot/loot_schematic/deconstructed_vehicle_schematic.lua")
includeFile("custom_content/tangible/loot/loo... | nilq/small-lua-stack | null |
--[[
Mob fight arena script
Script made by Grandelf.
]]--
--[[
##################################################################################################
# #
# Emap, Ex, Ey, Ez, Ezone this are the coords of t... | nilq/small-lua-stack | null |
--------------------------------
-- @module PhysicsShapeEdgePolygon
-- @extend PhysicsShape
-- @parent_module cc
--------------------------------
-- Get this polygon's points array count.<br>
-- return An interger number.
-- @function [parent=#PhysicsShapeEdgePolygon] getPointsCount
-- @param self
-- @return int#int... | nilq/small-lua-stack | null |
local api, cmd, fn, g = vim.api, vim.cmd, vim.fn, vim.g
local opt, wo = vim.opt, vim.wo
local fmt = string.format
---- defaults ----
opt.shell='fish'
opt.mouse = 'a'
opt.termguicolors = true
-- ui
opt.cursorline = true
opt.number = true
opt.wrap = false
-- tab, indent
opt.expandtab = true
opt.smarttab = true
opt.aut... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--- Tests on dumocks.ScreenRenderer.
-- @see dumocks.ScreenRenderer
-- set search path to include src directory
package.path = "src/?.lua;" .. package.path
local lu = require("luaunit")
local sr = require("dumocks.ScreenRenderer")
_G.TestScreenRenderer = {}
--- Characterization test to determine ... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------
-- channelwatch.lua v0.02
-- by Jason D. Ozubko - 2012,2018 (jdozubko@gmail.com)
----------------------------------------------------------------------------
-- This script file should be placed in the proper VLC playlist parser directory
-- F... | nilq/small-lua-stack | null |
local Los = require "plugin.wattageTileEngine.lineOfSight"
local ObjectSystem = require "plugin.wattageTileEngine.objectSystem"
local Utils = require "plugin.wattageTileEngine.utils"
local min = math.min
local sqrt = math.sqrt
local AggregateLightTransitioner = {}
AggregateLightTransitioner.new = function(params)
... | nilq/small-lua-stack | null |
vim.o.completeopt = 'menuone,noselect' -- Completion options (for deoplete)
local lspkind = require "lspkind"
lspkind.init()
-- Setup nvim-cmp.
local cmp = require('cmp')
cmp.setup({
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
vim.fn["vsnip#anonymous"](args.bod... | nilq/small-lua-stack | null |
--Arquivo init.lua
--Autor: Elisson Andrade, 2019
dofile("login.lua")
--LEDS Verdes
gpio.mode(0,gpio.OUTPUT)
--LEDS vermelhos, da direita para a esquerda
gpio.mode(1,gpio.OUTPUT)
gpio.mode(2,gpio.OUTPUT)
gpio.mode(3,gpio.OUTPUT)
gpio.mode(4,gpio.OUTPUT)
gpio.mode(5,gpio.OUTPUT)
gpio.mode(6,gpio.OUTPUT)
--LED Amarelo
... | nilq/small-lua-stack | null |
local Star = require('star')
local StarField = {}
StarField.__index = StarField
setmetatable(StarField, {
__call = function(cls, ...)
return cls.create(...)
end
})
function StarField.getRandomStar(width, height)
local x = math.random(-width/4, width/4)
local y = math.random(-height... | nilq/small-lua-stack | null |
-- DONT DELETE THIS FILE
-- ITS A FAILSAVE LUA FILE! | nilq/small-lua-stack | null |
filter {}
location ( "../../build/" .. mpt_projectpathname )
filter {}
preferredtoolarchitecture "x86_64"
configurations { "Debug", "Release", "Checked", "DebugShared", "ReleaseShared", "CheckedShared" }
platforms ( allplatforms )
filter { "platforms:x86" }
system "Windows"
architecture "x86"
filter {... | nilq/small-lua-stack | null |
local ts = require "nvim-treesitter.configs"
local parsers = require "nvim-treesitter.parsers"
vim.treesitter.set_query("lua", "folds", "")
vim.treesitter.set_query("lua", "indents", "")
ts.setup {
highlight = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "... | nilq/small-lua-stack | null |
component = require("component")
computer = require("computer")
serialization = require("serialization")
sides = require("sides")
g = require("gachLib")
local rec = require("draconicRec")
-- tells refinedStorage to start new crafting
redSideNewCrafting = sides.right
-- tells draconic infusion to start craft... | nilq/small-lua-stack | null |
object_mobile_tcg_massiff_pet = object_mobile_shared_tcg_massiff_pet:new {
}
ObjectTemplates:addTemplate(object_mobile_tcg_massiff_pet, "object/mobile/tcg_massiff_pet.iff")
| nilq/small-lua-stack | null |
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')API=b.getInterface('API')cAPI=a.getInterface('cAPI')RegisterServerEvent('_inventory:showInventory')AddEventHandler('_inventory:showInventory',function()local c=source;local d=API.getUserFromSource(c)d:viewInventory()end)RegisterServerEvent('_inven... | nilq/small-lua-stack | null |
---------------------------------------------
-- Tyrranic Blare
--
-- Description: Emits an overwhelming scream that damages nearby targets.
-- Type: Magical?
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Less than or equal to 10.0
-- Notes: Only used by Gulool Ja Ja.
---------------------------------------... | nilq/small-lua-stack | null |
function Doors:ShowSpare1(player)
local trace = player:GetEyeTraceNoCursor()
local entity = trace.Entity
if IsValid(entity) and entity:is_door() and player:GetPos():Distance(entity:GetPos()) < 115 then
local can_lock = hook.run('PlayerCanLockDoor', player, entity) or false
Cable.send(player, 'fl_door_me... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Walls
-- NPC: Juvillie
-- Type: Event Replayer
-- !pos -180.731 -3.451 143.138 239
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player... | nilq/small-lua-stack | null |
--[[---------------------------------------------------------
Duplicator module,
to add new constraints or entity classes use...
duplicator.RegisterConstraint( "name", funct, ... )
duplicator.RegisterEntityClass( "class", funct, ... )
-----------------------------------------------------------]]
... | nilq/small-lua-stack | null |
--- A physical player in the server
-- @classmod Player
if SERVER then
util.AddNetworkString( "GM-ColoredMessage" )
util.AddNetworkString( "GM-SurfaceSound" )
util.AddNetworkString("impulseNotify")
function meta:AddChatText(...)
local package = {...}
netstream.Start(self, "GM-ColoredMessage", package)
end... | nilq/small-lua-stack | null |
--- greetings.lua – turns any document into a friendly greeting
---
--- Copyright: © 2021–2022 Contributors
--- License: MIT – see LICENSE for details
-- Makes sure users know if their pandoc version is too old for this
-- filter.
PANDOC_VERSION:must_be_at_least '2.17'
--- Amends the contents of a document with a sim... | nilq/small-lua-stack | null |
-- 主窗口句柄
local main_window_handle = nil
-- 启动配置对话框
local function launch_config()
local config_program = fs.ydwe_path() / "bin" / "YDWEConfig.exe"
local command_line = string.format('"%s"', config_program:string())
sys.spawn(command_line, fs.ydwe_path())
end
-- 启动魔兽
local function launch_warcraft3()... | nilq/small-lua-stack | null |
id = 'V-38537'
severity = 'low'
weight = 10.0
title = 'The system must ignore ICMPv4 bogus error responses.'
description = 'Ignoring bogus ICMP error responses reduces log size, although some activity would not be logged.'
fixtext = [==[To set the runtime status of the "net.ipv4.icmp_ignore_bogus_error_responses" kerne... | nilq/small-lua-stack | null |
local OrganismController = {}
local Json = require "util.Json"
function OrganismController:new(organismConstructor, initialPosition)
local self = {
organisms;
numberOfGenomes;
genomeSize;
constructor = function (this, initialPosition)
this.numberOfGenomes = 50
this.organisms = {}
... | nilq/small-lua-stack | null |
module_version("/1.0.14", "1.0")
module_version("/2.0.15", "2.0")
module_version("/3.14.15", "3.0")
| nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- hide the status bar
display.setStatusBar( display.HiddenStatusBar )
-- include the Corona "composer" module
local com... | nilq/small-lua-stack | null |
local colors = require "themes.onedark"
local present, bufferline = pcall(require, "bufferline")
if not present then
return
end
bufferline.setup {
options = {
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
buffer_close_icon = "",
modified_icon = "",
close_icon = "",
... | nilq/small-lua-stack | null |
local function removeItemFromPlayerInventory(playerId, itemId)
assert(typeof(playerId) == "string")
assert(typeof(itemId) == "string")
return {
type = script.Name,
playerId = playerId,
itemId = itemId,
replicateTo = playerId,
}
end
return removeItemFromPlayerInventory | nilq/small-lua-stack | null |
return {
{
name = "2015-08-03-132400_init_oidc_user_ratelimiting_metrics",
up = [[
CREATE TABLE IF NOT EXISTS oidc_user_ratelimiting_metrics(
identifier text,
period text,
period_date timestamp without time zone,
value integer,
PRIMARY KEY (identifier, period_date... | nilq/small-lua-stack | null |
local F, C, L = unpack(select(2, ...))
local strsplit, ipairs, wipe = string.split, ipairs, table.wipe
local toggle = 0
local shadeFrame = CreateFrame('Frame')
local shadeTexture = shadeFrame:CreateTexture(nil, 'BACKGROUND', nil, -8)
shadeFrame:SetFrameStrata('BACKGROUND')
shadeFrame:SetWidth(GetScreenWidth() * UI... | nilq/small-lua-stack | null |
function shared_pl_col_logic(a, other)
if other.coin then
other:obtain()
end
if other.balloon then
other:pop()
end
end
function get_direction_for_shooting(xf)
local xdir = 0
local ydir = 0
if btn(1) then
xdir = 1
elseif btn(0) then
xdir = -1
end
... | nilq/small-lua-stack | null |
local assert = require('assert')
local errno = require('errno')
local realpath = require('realpath')
local function test_realpath_resolve()
-- test that resolve pathname
for v, match in pairs({
['.'] = 'lua%-realpath$',
['./test/..'] = 'lua%-realpath$',
['./test/realpath_test.lua'] = 'l... | nilq/small-lua-stack | null |
-- TreeView.lua
-- @Author : DengSir (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 10/20/2018, 4:28:53 PM
--
---@param ns table
local ns = select(2, ...)
local ipairs, type, setmetatable = ipairs, type, setmetatable
local coroutine = coroutine
local ceil, min, max = ceil, min, max
local Hybrid... | nilq/small-lua-stack | null |
--[[
untestable by automatic tests:
ClearUndoMove
SetUndoLoc
GetUndoLoc
IsHighlighted
PawnIsPlayerControlled
MarkHpLoss
GetMoveSkill
SetMoveSkill
SetRepairSkill
]]
local tests = LApi.Tests
tests:AddTests{
"PawnGetOwner",
"PawnSetOwner",
"PawnSetFire",
"PawnGetImpactMaterial",
"PawnSetImpactMaterial",
... | nilq/small-lua-stack | null |
-- JS<-->Lua glue
--
-- Horribly hackish, this is not the right way to do it
js.number = 1
js.string = 2
js.object = 3
js.func = 4
js.lua_table = {}
js.lua_index = 1
js.to_js = function(x)
if type(x) == 'number' then return tostring(x)
elseif type(x) == 'string' then return '"' .. x .. '"'
elseif type(x) == 'f... | nilq/small-lua-stack | null |
--=================--
local libTabMenu = {}
--=================--
-- < Modules > --
local table2 = require "table2"
-- < References > --
local constTabMenu = require "constTabMenu"
--====================================================--
-- class tabMenuEntry --
-- Contains all cust... | nilq/small-lua-stack | null |
return function()
local Component = require(script.Parent.Component)
local NoopRenderer = require(script.Parent.NoopRenderer)
local Children = require(script.Parent.PropMarkers.Children)
local createContext = require(script.Parent.createContext)
local createElement = require(script.Parent.createElement)
local cre... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("King Deepbeard", 1456, 1491)
if not mod then return end
mod:RegisterEnableMob(91797)
mod.engageId = 1812
-------------------------------------------------------------------------... | nilq/small-lua-stack | null |
--[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select... | nilq/small-lua-stack | null |
-- coding: utf-8
--[[
-- PLEASE DO "NOT" EDIT THIS FILE!
-- This file is generated by script.
--
-- If you want to apply corrections visit:
-- http://rom.curseforge.com/addons/addonmanager/localization/
--]]
local lang={}
lang.CAT = {
}
return lang
| nilq/small-lua-stack | null |
local techHandler = LazarusMod:GetModule('techhandler')
techHandler:RemoveTechData(kTechId.GorgeEgg)
techHandler:RemoveTechData(kTechId.LerkEgg)
techHandler:RemoveTechData(kTechId.FadeEgg)
techHandler:RemoveTechData(kTechId.OnosEgg)
| nilq/small-lua-stack | null |
local m = require 'model_helpers'
local inspect = require 'inspect'
local System = {}
local Config = require 'models.config'
local MiddlewareSpec = require 'models.middleware_spec'
local shared_dict = require 'shared_dict'
local jor = require 'jor'
local crontab... | nilq/small-lua-stack | null |
return {"abandoned","abilities","aboriginal","absolutely","absorption","abstracts","academics","acceptable","acceptance","accepting","accessibility","accessible","accessing","accessories","accessory","accidents","accommodate","accommodation","accommodations","accompanied","accompanying","accomplish","accomplished","acc... | nilq/small-lua-stack | null |
local oldKeyboardSetTextInput = love.keyboard.setTextInput
function love.keyboard.setTextInput(config)
end
| nilq/small-lua-stack | null |
local SwapItem = {}
SwapItem.Name = "purchase item"
SwapItem.NumArgs = 3
function SwapItem:Call( hUnit, slotA, slotB )
hUnit:ActionImmediate_SwapItems(slotA[1], slotB[1])
end
return SwapItem
| nilq/small-lua-stack | null |
local Class = require("Classy")
---@class KVstore
--- Simple KeyStore
---@field data table all currently held key=value pairs
local KVstore = Class("KVstore", {data = {}})
function KVstore:new(data)
if data then for k, v in pairs(data) do self.data[k] = v end end
end
function KVstore:setValue(key, value) self.data... | nilq/small-lua-stack | null |
--
-- Abstract: animated sprite or "movieclip" library
-- This library assembles animation sequences from individual image files. For more advanced
-- texture memory handling, see the "sprite sheet" feature in Corona Game Edition.
--
-- Version: 2.1
--
-- Copyright (C) 2010 ANSCA Inc. All Rights Reserved.
--
-- Perm... | nilq/small-lua-stack | null |
function isHarshad(n)
local s=0
local n_str=tostring(n)
for i=1,#n_str do
s=s+tonumber(n_str:sub(i,i))
end
return n%s==0
end
local count=0
local harshads={}
local n=1
while count<20 do
if isHarshad(n) then
count=count+1
table.insert(harshads, n)
end
n=n+1
end
p... | nilq/small-lua-stack | null |
local secrule = 'SecRule'
local secaction = 'SecAction'
local args = 'ARGS'
local operator = 'foo'
local actions = "block,id:12345,msg:'hello world'"
describe("parse_token", function()
local lib = require "resty.waf.translate"
local p = lib.parse_tokens
it("lives ok with four tokens", function()
stub... | nilq/small-lua-stack | null |
local engine = require('engine')
local game = Game:create()
game:start()
print(string.format("The target to reach is %03d", game.target))
local numbers = game.numbers[1]
for i = 2, #game.numbers do
numbers = numbers .. ', ' .. game.numbers[i]
end
print(string.format("\nThe numbers are %s", numbers))
-- Okay go ti... | nilq/small-lua-stack | null |
-- SearchModule.lua
-- Krysmatic
local SearchModule = {}
function SearchModule:SearchGame(directory, SEARCH_ID)
local children = directory:GetChildren()
local output = {}
local function PrintResult(typeName, model)
print("--------------------------------------------------------------------------------... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local snax = require "skynet.snax"
local msg = "I am a snax service"
function init(...)
print ("snax service start: ", msg, ...)
end
function exit(...)
print ("snax service exit: ", ...)
end
function response.hello(hello)
return hello
end
function accept.hello(hello)
... | nilq/small-lua-stack | null |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.Author = "n00bmobile" | nilq/small-lua-stack | null |
local database = require("database")
local gps = require("gps")
local posUtil = require("posUtil")
local scanner = require("scanner")
local action = require("action")
local config = require("config")
local args = {...}
local function spreadOnce()
for slot=2, config.farmSize^2, 2 do
gps.go(posUtil.farmToGl... | nilq/small-lua-stack | null |
local player = ...
local pn = ToEnumShortString(player)
local p = PlayerNumber:Reverse()[player]
local show = false
local function getInputHandler(actor)
return (function (event)
if event.GameButton == "Select" and event.PlayerNumber == player then
if event.type == "InputEventType_FirstPress" t... | nilq/small-lua-stack | null |
title = "Hello LowRez"
author = "Calle Englund"
shortname = "hello-lowrez"
version = "0.0.1"
copyright_message = "Copyright (c) 2019 Calle Englund"
| nilq/small-lua-stack | null |
--
-- api.lua
-- Implementation of the workspace, project, and configuration APIs.
-- Author Jason Perkins
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
local p = premake
p.api = {}
local api = p.api
local configset = p.configset
---
-- Set up a place to store the current active objects i... | nilq/small-lua-stack | null |
local consts = require("__LaneBalancer__.const")
data:extend(
{
{
type = "item",
name = "lane-balancer",
icon = consts.graphicsPath.."balancer1.png",
icon_size = 32,
subgroup = "belt",
order = "e[balancer]-a[lane-balancer]",
place_result = "lane-balancer",
stack_size = 50
},
{
type = "item",
nam... | nilq/small-lua-stack | null |
if mg.lua_type ~= "websocket" then
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("\r\n")
mg.write("<!DOCTYPE HTML>\r\n")
mg.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n")
mg.write("<head>\r\n")
mg.write("<meta charset=\"UTF-8\"></meta>\r\n")
mg.write("<title>Serv... | nilq/small-lua-stack | null |
local curPlatform = g_application:getTargetPlatform()
local bIsIosAndUseSimpleAudioEngine = false
if curPlatform == cc.PLATFORM_OS_IPHONE or curPlatform == cc.PLATFORM_OS_IPAD then
include('global_utils/ios_utils.lua')
bIsIosAndUseSimpleAudioEngine = platform_ios_is_use_simple_audio_engine()
end
-- 音频播放相关
if n... | nilq/small-lua-stack | null |
local label = require("engine/ui/label")
-- overlay class: allows to draw labels on top of the screen
local overlay = new_class()
-- parameters
-- layer int level at which the overlay should be drawn, higher on top
-- state vars
-- labels {string: label} table of labels to draw, identified by... | nilq/small-lua-stack | null |
proj = "project18a"
-- full init =
-- 1 init
-- 2 WIFI
-- 3 TIME
-- then your "project" is ready to start
-- short init might skip WIFI/TIME
-- following makes missing file into non-panic:
local df=dofile
dofile=function(f)
if file.exists(f) then
df(f)
else
print("File ", f, "... | nilq/small-lua-stack | null |
local colors = {
{
hex="#ffa0a0"
},
{
hex="#ffe0a0"
},
{
hex="#ffffa0"
},
{
hex="#ffffa0"
},
{
hex="#ffffa0"
},
{
hex="#ffffa0"
},
{
hex="#ffffa0"
},
{
hex="#e0ffa0"
},
{
hex="#a0f... | nilq/small-lua-stack | null |
----------------------------------------------------------------------
--
-- Deep Genetic Programming: Reifying an AI researcher.
--
-- Set of modules the researcher has access to and init functions
-- * Initialize tables
-- * Setup list of models
-- * Processing functions
--
----------------------------------... | nilq/small-lua-stack | null |
ITEM.name = "Hula Doll"
ITEM.desc = "An old hula doll, the head still bobs when shaken"
ITEM.model = "models/props_lab/huladoll.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.money = {1, 4} | nilq/small-lua-stack | null |
-- Copyright (C) Jingli Chen (Wine93)
-- Copyright (C) Jinzheng Zhang (tianchaijz)
local base = require "resty.addon.base"
local register = base.register
local register_handlers = base.register_handlers
local init = base.init
local run = base.run
local exec = base.exec
local next_handler = base.next_handler
local... | nilq/small-lua-stack | null |
local arch = ({
aarch64='arm64',
x86_64='x86',
})[config.target.platform:match('[^-]*')]
sub('tools.ninja', function()
toolchain(config.host)
exe('unifdef', {'scripts/unifdef.c'})
end)
rule('header', 'sed -E -f $dir/header.sed $in >$out.tmp && { $outdir/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ $out.tmp >$out; [... | nilq/small-lua-stack | null |
setDefaultTab("Main")
local panelName = "newHealer"
local ui = setupUI([[
Panel
height: 19
BotSwitch
id: title
anchors.top: parent.top
anchors.left: parent.left
text-align: center
width: 130
!text: tr('Friend Healer')
Button
id: edit
anchors.top: prev.top
anchors.left: prev.r... | nilq/small-lua-stack | null |
--- wand cores
minetest.register_craftitem("sorcery:basic_core", {description = "Basic Wand Core", inventory_image = "basic_core.png"})
minetest.register_craft({
output = "sorcery:basic_core",
recipe = {
{"", "default:glass", ""},
{"default:glass", "default:torch", "default:glass"},
... | nilq/small-lua-stack | null |
local Animal = require("animal")
local Timer = require("timer")
local lume = require("vendor/lume")
local Fox = {}
setmetatable(Fox, {__index = Animal})
Fox.speed = 100
Fox.spacing = 30
Fox.visionDistance = 300
Fox.gestationPeriod = 60
Fox.color = {1, .5, 0}
Fox.size = 15
function Fox.new(x, y, gender)
local sel... | nilq/small-lua-stack | null |
#!/opt/local/bin/lua
local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?>
<ns1:basic_gYear xmlns:ns1="http://test_example.com">1973</ns1:basic_gYear>]=]
mhf = require("schema_processor")
basic_gYear = mhf:get_message_handler("basic_gYear", "http://test_example.com");
local content, msg = basic_gYear:from_xm... | nilq/small-lua-stack | null |
local function removeOsSpecificLibraryAffixes(filename)
if path.islinkable(filename) then
local basename = path.getbasename(filename)
if os.host() == "windows" then
return basename
elseif string.startswith(basename, "lib") then
return string.sub(basename, 4, -1)
else
return basename
end
end
return... | nilq/small-lua-stack | null |
--[[ PLAYER SPAWN POINT LIST
revive_point(<map_id>, <x_pos>, <y_pos>);
start_point(<map_id>, <x_pos>, <y_pos>);
respawn_point(<map_id>, <x_pos>, <y_pos>);
--]]
start_point(19, 5196.1, 5182.86);
respawn_point(19, 5212.27, 5184.06);
| nilq/small-lua-stack | null |
-- Path of Building
--
-- Module: Tree Tab
-- Passive skill tree tab for the current build.
--
local ipairs = ipairs
local t_insert = table.insert
local m_min = math.min
local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
self.ControlHost()
self.build = build
self.viewer = new("PassiveTr... | nilq/small-lua-stack | null |
local addOnName, ns = ...;
local RPTAGS = RPTAGS;
local Module = RPTAGS.queue:GetModule(addOnName);
Module:WaitUntil("before MODULE_G",
function(self, event, ...)
local Utils = RPTAGS.utils;
local Config = Utils.config;
local Locale = Utils.locale;
local loc ... | nilq/small-lua-stack | null |
--waf.lua
| nilq/small-lua-stack | null |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
SWEP.BulletLength = 9
SWEP.CaseLength = 19
SWEP.MuzVel = 255.905
SWEP.Attachments = {
[1] = {"reflex"}}
SWEP.InternalParts = {
[1] = {{key = "ergonomichandle"}}}
if ( CLIENT ) then
SWEP.PrintName = "Glock 18"
SWEP.Author = "Counter-Strike"
SWEP.Sl... | nilq/small-lua-stack | null |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.ui.moon_display", function()
require "game.ui"
local moon = require "game.entities.moon"
it("displays the text of the current state", function()
local m... | nilq/small-lua-stack | null |
local net = require 'net'
local sh = require 'shell'
local argv = {...}
local dst = table.remove(argv, 1)
local path = net.path("home", dst)
table.remove(path,1)
sh.execute("connect " .. table.concat(path, "; connect ")
.. '; '..table.concat(argv, "; "))
| nilq/small-lua-stack | null |
require "lib"
require("prototypes.item")
| nilq/small-lua-stack | null |
return { name={
[1] = "UnexposedDecl";
[2] = "StructDecl";
[3] = "UnionDecl";
[4] = "ClassDecl";
[5] = "EnumDecl";
[6] = "FieldDecl";
[7] = "EnumConstantDecl";
[8] = "FunctionDecl";
[9] = "VarDecl";
[10] = "ParmDecl";
[11] = "ObjCInterfaceDecl";
[12] = "ObjCCategoryDecl";
[13] = "ObjCProtocolDecl";
[14] = "ObjCProperty... | nilq/small-lua-stack | null |
return {
level = 87,
need_exp = 260000,
clothes_attrs = {
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
},
} | nilq/small-lua-stack | null |
-- Code for basic item handling
-- cItem: Objects which can be picked up and carried
-- TODO
cItem = {__metatable=cItem, __index=cItem}
cItem.size = 1 -- Nominally, number of coke cans (volume)
cItem.weight = 0 -- Nominally, in kg
-- TODO cItem.CanTouch, CanPickup, CanDrop
-- cWieldable: Objects which can be used ... | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
-- (c) 2014 Team THORwIn
local ok = pcall(dofile,'../fiddle.lua')
if not ok then dofile'fiddle.lua' end
local util = require'util'
local xbox360 = require 'xbox360'
local rospub = require 'rospub'
local signal = require'signal'.signal
local gettime = require'unix'.time
require'hcm'
rospub.init('... | nilq/small-lua-stack | null |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("renameteam","BasicCommands","Renames a given team.")
self.... | nilq/small-lua-stack | null |
for _, objectReference in pairs(script:GetCustomProperties()) do
objectReference:WaitForObject():LookAtLocalView(false)
end
| nilq/small-lua-stack | null |
--- === plugins.core.console ===
---
--- Search Console
local require = require
local application = require "hs.application"
local config = require "cp.config"
local tools = require "cp.tools"
local unpack = table.unpack
local mod = {}
-- plugins.core.console._app... | nilq/small-lua-stack | null |
local canEnd = false
function onEndSong()
-- Block the first countdown and start a timer of 0.8 seconds to play the dialogue
if isStoryMode and not canEnd then
setProperty('inCutscene', true);
triggerEvent('startDia')
canEnd = true
runTimer('endDialogue',2)
return Function_Stop;
else
return Function_Cont... | 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.