content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
family("compiler")
help([[
GCC Compiler
]])
whatis("Description: ", "GCC compiler 8.1.1")
local package = "gcc"
local version = "8.1.1"
local moduleroot = myFileName():sub(1,myFileName():find(myModuleFullName(),1,true)-7)
local gccdir = "/sw/peak/gcc/8.1.1"
-- Setup Modulepath for packages built by this compiler
pr... | nilq/small-lua-stack | null |
local job = { }
local lib = _3DreamEngine
job.cost = 1
function job:init()
end
function job:queue(times)
local t = love.timer.getTime()
--re render sky cube
if lib.sky_reflection == true then
--request rerender
lib:addOperation("sky", 1.0, false, lib.sky_frameSkip)
--blur sky reflection cubemap
for ... | nilq/small-lua-stack | null |
--***********************************************************************************************--
--***********************************************************************************************--
-- ===========
-- PUZZLE APP
-- ===========
-- Created by Jonathan Beebe.
-- http://jonbeebe.net
-- @jonathanbeebe
--... | nilq/small-lua-stack | null |
local _
if(GetLocale() == "enUS" or true) then
-- ===================== Part for TradeFrameEnchanced ==================
TBT_SPELL_RANK_PATTERN = "Rank (%d)";
TBT_SPELL_PORTAL = "Portal"
TBT_UNLOCK_SKILL_NAME="Pick Lock";
_,_,TBT_GAMETOOLTIP_MADE_BY=string.find(string.gsub(ITEM_CREATED_BY,"%%s","(.+)"),"(<.+>)")... | nilq/small-lua-stack | null |
local map = vim.api.nvim_set_keymap
-----------------------------------------------------------
-- Neovim shortcuts:
-----------------------------------------------------------
-- Save file
map('n', '<Leader>w', ':write<CR>', {noremap = true})
-----------------------------------------------------------
-- Applicatio... | nilq/small-lua-stack | null |
local eventManager = {};
function eventManager.addEventListener(eventName, callback)
if type(eventName) ~= "string" then
error(tostring(eventName).." is not a valid event name!", 2);
end;
local event = eventManager[eventName];
if not event then
event = {callback};
eventManager[eventName] = event; --... | nilq/small-lua-stack | null |
PreViewFactory = {
PackageName = nil,
ComponentName = nil,
UILayer = nil,
IsSingle = nil,
FitScreen = nil
}
function PreViewFactory:new(o,ui_package_name,ui_component_name,
ui_layer,is_single,fit_screen)
o = o or {}
setmetatable(o,self)
self.__index = self
self.PackageName = ui_package_name
sel... | nilq/small-lua-stack | null |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Background = {}
function Background:new(image_name)
local b = {
image = love.graphics.newImage(image_name)
}
setmetatable(b, self)
self.__inde... | nilq/small-lua-stack | null |
local gcrypt = require("lua_gcrypt")
-- The key should be a string with size=32
local key = gcrypt.generateKey()
assert((type(key) == 'string') and (string.len(key) == 32))
-- The initialization vector should be a string with size=16
local iv = gcrypt.generateIV()
assert((type(iv) == 'string') and (string.len(iv) == ... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 01/03/2019
-- Time: 21:57
-- To change this template use File | Settings | File Templates.
--
local getActions = {
pickpocket = {
'hidden',
'delete'
},
employeet = {'delete'},
bombthreat = {'delete'},
spotter = { 'delete' },
... | nilq/small-lua-stack | null |
local a = {}
a.w=225
a.h=32
a.centerX = a.w / 2
a.centerY = a.h / 2
a.animTable={{1694,187},{0,293},{458,293},{229,293}}
a.animSpeed=8
return a | nilq/small-lua-stack | null |
-----------------------------------
-- Ability: Perfect Dodge
-- Allows you to dodge all melee attacks.
-- Obtained: Thief Level 1
-- Recast Time: 1:00:00
-- Duration: 0:00:30
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
-----------------------------------
f... | nilq/small-lua-stack | null |
return class("DexiV3PtPage", import(".TemplatePage.PtTemplatePage"))
| nilq/small-lua-stack | null |
--- Utilities involving orthogonal Vector3s
-- @module OrthogonalUtils
local OrthogonalUtils = {}
function OrthogonalUtils.decomposeCFrameToVectors(cframe)
return {
cframe.LookVector, -- front
-cframe.LookVector,
cframe.RightVector,
-cframe.RightVector,
cframe.UpVector,
-cframe.UpVector,
}
end
functio... | nilq/small-lua-stack | null |
---@meta
---@class ccui.Text :ccui.Widget@all parent class: Widget,BlendProtocol
local Text={ }
ccui.Text=Text
---* Enable shadow for the label.<br>
---* todo support blur for shadow effect<br>
---* param shadowColor The color of shadow effect.<br>
---* param offset The offset of shadow effect.<br>
---* param blur... | nilq/small-lua-stack | null |
local login_pin_map = require("qnFiles/qnPlist/hall/login_pin");
local login_findPsd=
{
name="login_findPsd",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter,
{
name="shiled",type=1,typeName="Image",time=77267575,report=0,x=0,y=0,w... | nilq/small-lua-stack | null |
require("sourcenet")
concommand.Add("setname", function(ply, cmd, args)
if not args[1] then
print("Syntax: setname <name>")
return
end
local netchan = CNetChan()
if not netchan then
print("setname: invalid netchan")
return
end
local buffer = netchan:GetReliableBuffer()
if not buffer then
... | nilq/small-lua-stack | null |
-- Convenience definitions for interactive Lua sessions
--
-- - string functions are added to string metatable
-- - all he definitions are made global
--
-- This is not intended to be used in programs.
--
-- make he global
he = require "he" -- make he global
-- add he string functions to string metatable
he.ext... | nilq/small-lua-stack | null |
-- node tab main
NodeRadar = Node("CanvasRadar")
NodeTerminalMain = Node("TerminalMain")
NodeParInfo = Node("ParInfo")
NodeParNewestMsg = Node("ParNewestMsg")
NodeParGUserSpaceshipStatus = Node("ParGUserSpaceshipStatus")
NodeParGUserSpaceshipCabin = Node("ParGUse... | nilq/small-lua-stack | null |
--[[
Name: "sv_autorun.lua".
Product: "kuroScript".
--]]
local MOUNT = MOUNT;
-- Include some prefixed files.
kuroScript.frame:IncludePrefixed("sh_autorun.lua");
-- Hook a data stream.
datastream.Hook("ks_EnteredArea", function(player, handler, uniqueID, rawData, procData)
if ( procData[1] and procData[2] and procD... | nilq/small-lua-stack | null |
--Template for addition of new protocol 'accnt_bal'
--[[ Necessary changes to other files:
-- - packet.lua: if the header has a length member, adapt packetSetLength;
-- if the packet has a checksum, adapt createStack (loop at end of function) and packetCalculateChecksums
-- - proto/proto.lua: add PROTO.lua to th... | nilq/small-lua-stack | null |
fx_version "bodacious"
games { "gta5" }
description "NoPixel Vehicles"
version "0.1.0"
server_scripts {
'config.lua',
'source/fuel_server.lua',
'server/main.lua',
}
client_scripts {
'client/main.lua',
'client/purge.lua',
'client/ptfx.lua',
'config.lua',
'client/functions_client.lua',
'clien... | nilq/small-lua-stack | null |
require "string_utils" ()
--[[
Transforms:
16b45da2-7d70-4aea-a58d-760e9ecb841d
To:
{ 0x16b45da2, 0x7d70, 0x4aea, { 0xa5, 0x8d, 0x76, 0x0e, 0x9e, 0xcb, 0x84, 0x1d}}
Input:
"16b45da2-7d70-4aea-a58d-760e9ecb841d"
]]
function guidtr(str)
local result = "{ 0x"
local t = str:splitBy("[^%-]+")
if #t ~= 5 the... | nilq/small-lua-stack | null |
getglobal game
getfield -1 GetService
pushvalue -2
pushstring Players
pcall 2 1 0
getfield -1 LocalPlayer
getfield -1 Stats
getfield -1 Level
pushnumber 500
setfield -2 Value
emptystack
getglobal game
getfield -1 GetService
pushvalue -2
pushstring Players
pcall 2 1 0
getfield -1 LocalPlayer
getfield -1 Stats
getfield -... | nilq/small-lua-stack | null |
require "luaClass.init"
_ENV=namespace "test"
using_namespace "luaClass"
--By default, all classes inherit directly or indirectly from LObject
class ("ObjectTest"){
public{
FUNCTION.ObjectTest(function(self)
end)
};
}
local obj=ObjectTest()
--LObject overload the __concat an... | nilq/small-lua-stack | null |
-- this basically just exposes some widgetHandler methods to SB
function widget:GetInfo()
return {
name = "HANDLER_SpringBoard_widget",
desc = "HANDLER_Game-independent editor (widget)",
author = "gajop",
license = "MIT",
layer = -2000,
enabled = true, -- loa... | nilq/small-lua-stack | null |
--- Is expression library
-- @module Utils.Is
-- @usage
-- local Is = require('__stdlib__/stdlib/utils/is')
-- Is.True(true)
-- Is.Not.True(false)
-- Is.Assert.True(true)
-- Is.Assert.Not.True(false)
--- Is Table
-- @section Table
--- Is the test true.
-- @table Is
-- @field Not Is the test not true.
-- @field Assert... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('ResourcePreset', {
'name', "Concrete_VeryLow",
'RepulseSame', 20000,
'RepulseAll', 12800,
'TerrDensity', 150,
'TerrDensity2', 300,
'TerrSizeCount1', range(14, 20),
'TerrSizeVol1', range(250, 450),
'TerrSizeCount2', range(4, 6),
'TerrS... | nilq/small-lua-stack | null |
function love.conf(t)
t.window.title = "Swallow Squad"
t.window.vsync = false
end
| nilq/small-lua-stack | null |
local class = require 'ext.class'
local table = require 'ext.table'
local math = require 'ext.math' -- cbrt
local Function = require 'symmath.Function'
local symmath
local cbrt = class(Function)
cbrt.name = 'cbrt'
cbrt.nameForExporterTable = {}
--cbrt.nameForExporterTable.Console = '∛' -- not supported by Windows Con... | nilq/small-lua-stack | null |
_G.HeadSize = 40
_G.HeadOffset = 20
_G.Enabled = true
game:service'RunService'.Stepped:connect(function()
if _G.Enabled then
for i,v in pairs(game:service'Players':GetPlayers()) do
if v.TeamColor ~= game:service'Players'.LocalPlayer.TeamColor then
--if v.Name ~= game:service'Players'.LocalPlayer.Name then
pcall(functio... | nilq/small-lua-stack | null |
--[[
Jamba - Jafula's Awesome Multi-Boxer Assistant
Copyright 2008 - 2018 Michael "Jafula" Miller
License: The MIT License
]]--
-- Create the addon using AceAddon-3.0 and embed some libraries.
local AJM = LibStub( "AceAddon-3.0" ):NewAddon(
"JambaToon",
"JambaModule-1.0",
"AceConsole-3.0",
"AceEvent-3.0",
"Ac... | nilq/small-lua-stack | null |
sigrix_slix_missions =
{
{
missionType = "retrieve",
primarySpawns =
{
{ npcTemplate = "cenik", npcName = "Cenik (a Spice Collective courier)" }
},
secondarySpawns =
{
{ npcTemplate = "sigrix_thug", npcName = "a Thug" },
},
itemSpawns =
{
{ itemTemplate = "object/tangible/miss... | nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"title", "Construction Extend Length",
"id", "ChoGGi_ConstructionExtendLength",
"steam_id", "1498826528",
"pops_any_uuid", "955d31b1-f4a8-4b2b-b7ad-2d7a5556e934",
"version", 6,
"version_major", 0,
"version_minor", 6,
"image", "Preview.jpg",
"author", "ChoGGi",
"lua_revision", 10070... | nilq/small-lua-stack | null |
--[[
################################################################################
#
# Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), t... | nilq/small-lua-stack | null |
-- Following Websocket RFC: http://tools.ietf.org/html/rfc6455
require'pack'
local bit = require'websocket.bit'
local band = bit.band
local bxor = bit.bxor
local bor = bit.bor
local sunpack = string.unpack
local tremove = table.remove
local spack = string.pack
local srep = string.rep
local ssub = string.sub
local sbyte... | nilq/small-lua-stack | null |
include("shared.lua")
function ENT:Draw()
self:SetRenderAngles(Angle(0, (CurTime() * 360) % 360, 0))
self:DrawModel()
end | nilq/small-lua-stack | null |
context("Redis statistics unit tests", function()
local task = require("rspamd_task")
local ffi = require("ffi")
local rspamd_util = require("rspamd_util")
ffi.cdef[[
struct rspamd_statfile_config {
const char *symbol;
const char *label;
void *opts;
int is_spam;
const char *backend;
... | nilq/small-lua-stack | null |
local M = {}
function M.lsp_highlight(client, bufnr)
if client.resolved_capabilities.document_highlight then
vim.api.nvim_exec(
[[
hi LspReferenceRead cterm=bold ctermbg=red guibg=#454545
hi LspReferenceText cterm=bold ctermbg=red guibg=#454545
hi LspReferenceWrite cterm=bold ... | nilq/small-lua-stack | null |
if GetLocale() ~= "itIT" then return end
local F, L, P, G = unpack(select(2, ...))
--@localization(locale="itIT", format="lua_additive_table")@
| nilq/small-lua-stack | null |
local utils = require("utils")
local schedule = {
func = function(msg)
local tid = msg.text:match("/schedule%s*([ZTKDGCSYztkdgcsy]?%d+)")
local page = utils.curl("http://search.huochepiao.net/checi/" .. tid)
if not page then
return bot.sendMessage(msg.chat.id, "Sorry, network er... | nilq/small-lua-stack | null |
if CustomAbilities == nil then
_G.CustomAbilities = class({})
CustomAbilities.AbilityInfo = {}
CustomAbilities.ClientData = {{}, {}}
CustomAbilities.RandomOMG = {
Ultimates = {},
Abilities = {},
}
end
ModuleRequire(..., "ability_shop")
ModuleRequire(..., "random_omg")
function CustomAbilities:PrepareData()
... | nilq/small-lua-stack | null |
local Plugin = script.Parent.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local RoactRodux = require(Libs.RoactRodux)
local Utility = require(Plugin.Core.Util.Utility)
local Constants = require(Plugin.Core.Util.Constants)
local ContextGetter = require(Plugin.Core.Util.ContextGetter)... | nilq/small-lua-stack | null |
local config = require 'lspservers/config'
local servers = require 'lspservers/servers'
local alias = require 'lspservers/alias'
local runner = require 'lspservers/job/serial_runner'
local M = {}
local ex_commands = {
Install = {
repl = "lua require'lspservers'.install(<f-args>)",
args = {
nargs = '+',... | nilq/small-lua-stack | null |
levels[18]={timeBetweenParticleCreation=150,weightBreakForTwoStars=400,weightBreakForThreeStars=600,numPortExplosionsWeight=150,numDiverterExplosionsWeight=50,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=75,numParticlesInPrisonWeight=75,background="4",particleSpeed=2,maxParticles=2,particlesToComplete=6,p... | nilq/small-lua-stack | null |
local assets =
{
Asset("ANIM", "anim/glowoil.zip"),
Asset( "IMAGE", "images/inventoryimages/glowoil.tex" ),
Asset( "ATLAS", "images/inventoryimages/glowoil.xml" ),
}
local function fn()
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddAnimState()
inst.entity:AddNetwork(... | nilq/small-lua-stack | null |
include("terms")
addition_table = function()
columns = 6
min_range = 10
max_range = 20
ch = {""}
q = {}
for i=0,columns-1 do
edge1 = min_range + math.random(max_range - min_range)
edge2 = min_range -7 + math.random(max_range - min_range)
edge3 = min_range + 7 + math.random(max_range - min_ran... | nilq/small-lua-stack | null |
local args = { ... }
local ui = args[1]
assert(ui, 'Imevul UI library not found')
---@class List : Panel Container with a border and a title
---@field protected _list ScrollPanel
---@field protected _slider Slider
---@field public scrollbar boolean
local List = ui.lib.class(ui.modules.Panel, function(this, data)
loca... | nilq/small-lua-stack | null |
--[[
设置界面
2015_12_03 C.P
功能:音乐音量震动等
]]
local OptionLayer = class("OptionLayer", function(scene)
local optionLayer = display.newLayer(cc.c4b(0, 0, 0, 125))
return optionLayer
end)
local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun")
local g_var = ExternalFun.req_var
local WebViewLayer = appdf.CLI... | nilq/small-lua-stack | null |
--
-- tests/actions/make/cpp/test_target_rules.lua
-- Validate the makefile target building rules.
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
T.make_cpp_target_rules = { }
local suite = T.make_cpp_target_rules
local cpp = premake.make.cpp
local project = premake5.project
--
-- Setup
--
... | nilq/small-lua-stack | null |
return {'laf','lafaard','lafbek','lafenis','lafhartig','lafhartigheid','lafheid','lafjes','lafeber','lafleur','laffra','lafaards','lafbekken','lafenissen','laffe','laffer','lafhartige','lafhartiger','lafhartigste','lafheden','lafst','lafste'} | nilq/small-lua-stack | null |
--[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | nilq/small-lua-stack | null |
local Signals = require "constants.Signals"
local Constants = require "constants.Constants"
Entities = {}
local _entityArray = {}
local _toRemove = {}
Signal.register(Signals.ADD_ENTITY, function(entity)
_entityArray[entity.id] = entity
entity:conception()
end)
Signal.register(Signals.KILL_ENTITY, function(enti... | nilq/small-lua-stack | null |
---
---
--- Created by Go Go Easy Team.
--- DateTime: 2018/7/4 下午5:18
---
local require = require
local tonumber = tonumber
local ipairs = ipairs
local pairs = pairs
local type = type
local xpcall = xpcall
local debug = debug
local str_len = string.len
local table_insert = table.insert
local table_sort = table.sort
lo... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2012-13 Juan Carlos González Amestoy
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, pu... | nilq/small-lua-stack | null |
local CFrameUtils = {}
function CFrameUtils.fromOriginDir(origin, dir, up)
if up then
return CFrame.lookAt(origin, origin + dir, up)
else
return CFrame.lookAt(origin, origin + dir)
end
end
return CFrameUtils | nilq/small-lua-stack | null |
local TEXT_WITHOUT_CODE_FENCES = require(
"tests.fixtures.TEXT_WITHOUT_CODE_FENCES")
local MARKDOWN = require("tests.fixtures.MARKDOWN")
local spy = require("luassert.spy")
local eq = assert.are.same
local tcf_input = require("telescope._extensions.telescope-code-fence.input")
local t... | nilq/small-lua-stack | null |
local ProgressCallback = {
update = 1,
finish = 2
}
cooldownWindow = nil
cooldownButton = nil
contentsPanel = nil
cooldownPanel = nil
lastPlayer = nil
cooldown = {}
cooldowns = {}
groupCooldown = {}
function init()
connect(g_game, { onGameStart = online,
onSpellGroupCooldown = onSpellGroupC... | nilq/small-lua-stack | null |
require "helpers"
local tables = {}
tables.water_point = osm2pgsql.define_table({
name = 'water_point',
schema = schema_name,
ids = { type = 'node', id_column = 'osm_id' },
columns = {
{ column = 'osm_type', type = 'text', not_null = true },
{ column = 'osm_subtype', type = 'te... | nilq/small-lua-stack | null |
function model.setObjectSize(h,x,y,z)
local r,mmin=sim.getObjectFloatParameter(h,sim.objfloatparam_objbbox_min_x)
local r,mmax=sim.getObjectFloatParameter(h,sim.objfloatparam_objbbox_max_x)
local sx=mmax-mmin
local r,mmin=sim.getObjectFloatParameter(h,sim.objfloatparam_objbbox_min_y)
local r,mmax=si... | nilq/small-lua-stack | null |
local Arrow = {}
Arrow.mems = {}
Arrow.col = {1,1,1,0.6}
function Arrow.new(x, y, w, l, sl, rot, col)
arrow = {}
arrow.x = x
arrow.y = y
arrow.rot = rot*math.pi/180
arrow.col = col
arrow.scale = 1
arrow.time = math.random(0,100)
arrow.stem = { -(l/2), -(w/4),
-(l/2)+sl, -(w/4... | nilq/small-lua-stack | null |
local item={
{name="止血草",desc="常见的草药,有止血之功效",pic="物品.止血草",talent="",type=0,level=1,price=30,drop=true,cd=0,
trigger={ {name="AddHp",argvs="360",},{name="",argvs="",}, },
need={ {name="",argvs="",}, },},
{name="小还丹",desc="活血化瘀的丹药,闯江湖必备",pic="物品.小还丹",talent="",type=0,level=1,price=50,drop=true,cd=0,
trigger={ {name="Add... | nilq/small-lua-stack | null |
-- NetHack 3.6 Tourist.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.8 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1991,92 by M. Stephenson, P. Winner
-- NetHack may be freely redistributed. See license for details.
--
--
-- The "start" level for the ... | nilq/small-lua-stack | null |
--
-- A string.format wrapper that gracefully handles invalid arguments
--
local tostring = tostring;
local select = select;
local assert = assert;
local unpack = unpack;
local type = type;
local function format(format, ...)
local args, args_length = { ... }, select('#', ...);
-- format specifier spec:
-- 1. Star... | nilq/small-lua-stack | null |
--
-- air
--
nautilus.GAUGE_AIR_POSITION = {x=0,y=-8.45,z=5.31}
nautilus.MAX_AIR = minetest.settings:get("nautilus_max_air") or 1200
nautilus.REAIR_ON_AIR = minetest.settings:get("nautilus_reair_on_air") or 200
nautilus.OPEN_AIR_LOST = minetest.settings:get("nautilus_open_air_lost") or 20
minetest.register_entity('nau... | nilq/small-lua-stack | null |
slot2 = "ChargeWaitPayCcsView"
ChargeWaitPayCcsView = class(slot1)
ChargeWaitPayCcsView.onCreationComplete = function (slot0)
slot8 = slot0.view
ClassUtil.extends(slot2, slot0, ZoomPopUpChildView, true, slot0, slot0.bg)
end
ChargeWaitPayCcsView.startTick = function (slot0)
slot4 = true
slot0.view.txt_time.setVi... | nilq/small-lua-stack | null |
-- Expose luassert elements as part of global interfcae
assert = require('luassert')
spy = require('luassert.spy')
mock = require('luassert.mock')
stub = require('luassert.stub')
-- Load and expose busted core as part of global interface
local busted = require('busted.core')
it = busted.it
describe ... | nilq/small-lua-stack | null |
require 'dp'
--[[parse command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Plot Channel Curves')
cmd:text('Example:')
cmd:text('$> th plotcurves.lua --entry 1637 --channel "optimizer:feedback:confusion:accuracy,validator:feedback:confusion:accuracy,tester:feedback:confusion:accuracy" --curveName "tr... | nilq/small-lua-stack | null |
project "yaml-cpp"
kind "StaticLib"
language "C++"
staticruntime "Off"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files {
"include/**.h",
"src/**.h",
"src/**.cpp",
}
includedirs {
"include",
... | nilq/small-lua-stack | null |
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.Base = "speeder_base"
ENT.Type = "vehicle"
ENT.PrintName = "X-34 Combat"
ENT.Author = "Liam0102"
ENT.Category = "Star Wars Vehicles: In Development";
list.Set("SWVehiclesEU", ENT.PrintName, ENT);
ENT.AutomaticFrameAdvance = true
ENT.Spawnable = false;
ENT.AdminSpawnable = false;... | nilq/small-lua-stack | null |
--
-- Aliases for map generators
--
--minetest.register_alias("mapgen_stone", "default:stone")
minetest.register_alias("mapgen_stone", "default:steelblock_grey")
minetest.register_alias("mapgen_dirt", "default:steelblock_brown")
minetest.register_alias("mapgen_dirt_with_grass", "default:steelblock_dark_green")
minetes... | nilq/small-lua-stack | null |
ITEM.name = "Burer Stew"
ITEM.description = "A meal made from a burer, cooked in the zone."
ITEM.longdesc = "A watery stew made from Burer meat. Eating this while thinking of the fact that there's one less Burer in the zone gives most STALKERs a peace of mind."
ITEM.model = "models/lostsignalproject/items/consumable/me... | nilq/small-lua-stack | null |
local Position, Circle, Velocity, Projectile, Color, Collider, Animation
= Component.load({"Position", "Circle", "Velocity", "Projectile", "Color", "Collider", "Animation"})
function createBullet(entity, x, y, direction, damage, speed, radius)
entity:add(Position(x, y))
entity:add(Circle(radius))
entity:add(Ve... | nilq/small-lua-stack | null |
--
-- https://github.com/olback/computercraft/blob/master/utils/nano.lua
-- alias for 'edit'
-- move to ../autorun?
--
local args = { ... }
shell.run("edit " .. args[1])
| nilq/small-lua-stack | null |
require "lang.Signal"
LuaFile = require("LuaFile")
local MediationConfig = require("mediation.Config")
describe("MediationConfig", function()
local subject
describe("new", function()
local ads
before_each(function()
ads = {}
subject = MediationConfig(10, ads)
... | nilq/small-lua-stack | null |
return {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
desc_get = "",
name = "北风2",
init_effect = "",
time = 0,
color = "red",
picture = "",
desc = "",
stack = 1,
id = 19180,
icon = 19180,
last_effect = "",
effect_list = {
{
type = "BattleBuffAddBuff",
trigger = {
"onLeader"
},
arg_lis... | nilq/small-lua-stack | null |
dofile 'deferinit.lua'
a = 0;
b = 0;
-- nested calls: can panic transfer
-- from lower in the stack to higher up?
global = 0
function deeper(...)
orig = {...}
local __defers={}
local __zeroret = {}
local __namedNames = {}
local __actual=function(a)
global = global + (a + 3)
panic("pani... | nilq/small-lua-stack | null |
dofile_once("mods/lmn_lukki/files/scripts/libs/private_globals.lua")
dofile_once("mods/lmn_lukki/files/scripts/libs/objectify.lua")
lmn = lmn or {}
lmn.prefix = "lmn_lukki_"
local globals = private_globals(lmn.prefix)
local list = {
CharacterPlatformingComponent = {
"accel_x",
"pixel_gravity",
"swim_idle_buoy... | nilq/small-lua-stack | null |
local enemy = ...
local souls_enemy = require"enemies/lib/souls_enemy"
local game = enemy:get_game()
local map = enemy:get_map()
local hero = map:get_hero()
local sprite
local movement
local DAMAGE = 150
enemy.blood_echoes = 4000
enemy.defense = 104
function enemy:on_created()
sprite = enemy:create_sprite("enemies... | nilq/small-lua-stack | null |
point = {}
local point = point
setmetatable(point, point)
--结构
point.__index = {
--类型
type = 'point',
--坐标
[1] = 0,
[2] = 0,
[3] = 0,
--获取坐标
getXY = function(this)
return this[1], this[2]
end,
getX = function(this)
return this[1]
end,
getY = function(this)
return this[2]
en... | nilq/small-lua-stack | null |
-- Licensed under: AGPLv3 --
-- GNU AFFERO GENERAL PUBLIC LICENSE --
-- Version 3, 19 November 2007 --
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'EssentialMode by Kanersps.'
server_scripts {
'server/sqlite/SQLite.net.dll',
'server/sqlite/sqlite.js',
'confi... | nilq/small-lua-stack | null |
-- threescale_utils.lua
local M = {} -- public interface
-- private
-- Logging Helpers
function M.show_table(t, ...)
local indent = 0 --arg[1] or 0
local indentStr=""
for i = 1,indent do indentStr=indentStr.." " end
for k,v in pairs(t) do
if type(v) == "table" then
msg = indentStr .. M.show_table(v... | nilq/small-lua-stack | null |
local lfm = lfm
local fm = lfm.fm
local util = require("util")
local lfs = require("lfs")
local basename = util.basename
local dirname = util.dirname
local file_split = util.file_split
local M = {}
local function file_exists(path)
return lfs.attributes(path) ~= nil
end
---Copy a string to the clipboard.
---@para... | nilq/small-lua-stack | null |
print(getmetatable("foo")) --> table: 0x7f8aab4050c0
print(getmetatable("bar")) --> table: 0x7f8aab4050c0
print(getmetatable(nil)) --> nil
print(getmetatable(false)) --> nil
print(getmetatable(100)) --> nil
print(getmetatable({})) --> nil
print(getmetatable(print)) --> nil
t = {}
mt = {}
setmetatable(t, mt)
pri... | nilq/small-lua-stack | null |
local server = require "nvim-lsp-installer.server"
local platform = require "nvim-lsp-installer.platform"
local path = require "nvim-lsp-installer.path"
local Data = require "nvim-lsp-installer.data"
local std = require "nvim-lsp-installer.installers.std"
local context = require "nvim-lsp-installer.installers.context"
... | nilq/small-lua-stack | null |
pfUI:RegisterModule("target", function ()
-- do not go further on disabled UFs
if pfUI_config.unitframes.disable == "1" then return end
local default_border = pfUI_config.appearance.border.default
if pfUI_config.appearance.border.unitframes ~= "-1" then
default_border = pfUI_config.appearance.border.unitfr... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'AvaN0x HUD and speedometer'
ui_page 'html/ui.html'
client_scripts {
'client/client.lua'
}
server_scripts {
'server/server.lua'
}
files {
'html/ui.html',
'html/style.css',
'html/main.js',
'html/img/*.png',
'html/img/jobs/*.png',
}
| nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
--
-- Memory widget for Awesome 3.4
-- Copyright (C) 2011 Tuomas Jormola <tj@solitudo.net>
--
-- Licensed under the terms of GNU General Public License Version 2.0.
--
-- Description:
--
-- Displays memory and swap usage statistics as a ver... | nilq/small-lua-stack | null |
#!/bin/env lua
--[[
dependencies (arch):
pacman -S mosquitto lua luarocks
luarocks install lua-mosquitto
]]--
local broker = arg[1] or "mqtt.local"
local base = arg[2] or "/tmp/lua-mqtt-fs"
local mqtt = require("mosquitto")
local client = mqtt.new()
client.ON_CONNECT = function()
client:subscribe("#"... | nilq/small-lua-stack | null |
local computer = require("computer")
local comp = require("component")
local win = require("window-api")
local thread = require("thread")
local gpu = comp.gpu
if not comp.isAvailable("induction_matrix") then
print("No Mekanism Induction Matrix Found!")
os.exit()
end
win.clearAll()
local matrix = comp.induction_... | nilq/small-lua-stack | null |
local class = require 'ext.class'
local Equation = require 'hydro.eqn.eqn'
local NavierStokesDivFree = class(Equation)
NavierStokesDivFree.name = 'Navier-Stokes div-free'
NavierStokesDivFree.numStates = 4
NavierStokesDivFree.initConds = require 'hydro.init.euler':getList()
NavierStokesDivFree.consVars = table{
{n... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------
--
-- main.lua
--
---------------------------------------------------------------------------------
-- hide the status bar
display.setStatusBar( display.HiddenStatusBar )
-- require the composer library
local composer = require "compose... | nilq/small-lua-stack | null |
room_player_info_prop=
{
name="room_player_info_prop",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="imgFrame",type=1,typeName="Image",time=79179592,report=0,x=0,y=0,width=90,height=90,visible=1,fillParentWidth=0,f... | nilq/small-lua-stack | null |
--- Lex FusionScript files.
-- @module fusion.core.lexer
local re = require("re");
--- @table defs
-- @field true Convert input to `true` boolean
-- @field false Convert input to `false` boolean
-- @field bool Convert input to `defs[input]` - should be `true`/`false`
-- @field numberify Convert input to number via `t... | nilq/small-lua-stack | null |
slot0 = class("JiujiuYoyoPage", import("...base.BaseActivityPage"))
slot1 = PLATFORM_CODE == PLATFORM_JP
slot0.OnInit = function (slot0)
slot0.bg = slot0:findTF("AD")
slot0.helpBtn = slot0:findTF("help_btn", slot0.bg)
slot0.taskBtn = slot0:findTF("task_btn", slot0.bg)
slot0.taskRedDot = slot0:findTF("red_dot", slo... | nilq/small-lua-stack | null |
map_entry_quest_checker = async(function(player)
player.dialogType = 0
local mapName = player.mapTitle
if mapName == "Welcome" then
local t = {graphic = convertGraphic(87, "monster"), color = 7}
player:dialogSeq(
{
t,
"Hello and welcome to RetroTK. Please journey south to begin your tutorial quest an... | nilq/small-lua-stack | null |
local m = require("moses")
local class = require("pl.class")
local Factory = require("support.factory")
CBaseEntity = class()
CBaseEntity.entIdx = 0
function CBaseEntity:_init(attributes)
m.extend(self, attributes or {})
if self.entindex == nil then
CBaseEntity.entIdx = CBaseEntity.entIdx + 1
self.entin... | nilq/small-lua-stack | null |
powerups = {
ox = sprites.crate:getWidth() / 2,
oy = sprites.crate:getHeight() / 2,
}
powerups.list = {}
powerups.toRemove = {}
powerups.definitions = {
turbo = {sprite = sprites.pu_turbo, chance = config.powerups.turboChance},
mine = {sprite = sprites.pu_mine, chance = config.powerups.mineChance},
... | nilq/small-lua-stack | null |
local function log_message(event, msg)
print(event.tick .. " [FactoCord] " .. msg)
-- game.write_file("server.log", msg .. "\n", true)
end
local function log_player_message(event, msg_in)
local msg = "Player " .. game.players[event.player_index].name .. " " .. msg_in .. "."
log_message(event, msg)
... | nilq/small-lua-stack | null |
local Prop = {}
Prop.Name = "Subs House 8"
Prop.Cat = "House"
Prop.Price = 450
Prop.Doors = {
Vector( 10805.875000, 2558.000000, -12332.000000 ),
Vector( 10990.000000, 2050.000000, -12332.000000 ),
Vector( 10770.000000, 2054.000000, -12332.000000 ),
Vector( 10662.000000, 2130.000000, -12332.000000 ),
Vector( 1077... | 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.