content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
------------------------------------------------------------------------------
-- Test command queues.
-- Copyright © 2013–2015 Peter Colberg.
-- Distributed under the MIT license. (See accompanying file LICENSE.)
------------------------------------------------------------------------------
require("strict")
pcall(r... | nilq/small-lua-stack | null |
-- Called OnProjectileHitUnit
function DrunkenHazeStart(event)
local target = event.target
local caster = event.caster
local ability = event.ability
-- Checking if target has spell block, if target has spell block, there is no need to execute the spell
if not target:TriggerSpellAbsorb(ability) then
local abilit... | nilq/small-lua-stack | null |
-- Store the results of ZRANGE to a new unsorted set.
-- If destination already exists, it is overwritten.
-- Returns the number of elements in the resulting set.
local zset = KEYS[1] -- The sorted set.
local dest = KEYS[2] -- The destination key.
local start = ARGV[1] -- Sorted set range start index.
local stop = ... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
--
-- tek.ui.class.canvas
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
-- OVERVIEW::
-- [[#ClassOverview]] :
-- [[#tek.class : Class]] /
-- [[#tek.class.object : Object]] /
-- [[... | nilq/small-lua-stack | null |
module("luci.controller.guest-wifi", package.seeall)
function index()
if not nixio.fs.access("/etc/config/guest-wifi") then
return
end
entry({"admin","network","guest-wifi"}, cbi("guest-wifi"), translate("Guest-wifi"), 16)
end
| nilq/small-lua-stack | null |
-- mod
local Defines = require('defines')
-- stdlib
local table = require('__stdlib__/stdlib/utils/table')
local Is = require('__stdlib__/stdlib/utils/is')
local Event = require('__stdlib__/stdlib/event/event')
local Guibuild =
{
__call = function(self, ...)
return self.new(...)
end
}
l... | nilq/small-lua-stack | null |
local LOWEST_BRANCH = 0x6c; -- The lowest useful branch (real start is at 0)
local HIGHEST_BRANCH = 0x348; -- The highest branch
local BRANCH_OLD_SECONDS = 60; -- How long ago a branch was loaded before it is considered out-of-date
local INITIALIZE_ITEM_DELAY = 1/60.0; -- How much to wait when spamming the in-game comm... | nilq/small-lua-stack | null |
object_mobile_kodo_kara = object_mobile_shared_kodo_kara:new {
}
ObjectTemplates:addTemplate(object_mobile_kodo_kara, "object/mobile/kodo_kara.iff")
| nilq/small-lua-stack | null |
data:extend({
{
type = "bool-setting",
name = "AbandonedRuins-enemy-not-cease-fire",
setting_type = "runtime-global",
default_value = true,
order = "a",
},
{
type = "int-setting",
name = "ruins-min-distance-from-spawn",
setting_type = "runtime-global",
default_value = 200,
... | nilq/small-lua-stack | null |
local game = Concord.world()
-- ADD SYSTEMS
game:addSystem(_systems.physics)
game:addSystem(_systems.renderer)
game:addSystem(_systems.finish)
return game
| nilq/small-lua-stack | null |
package.path = "../?/init.lua;../src/?.lua;../src/?/init.lua;"..package.path
local Util = require("util")
local DOM = require("src")
local udim0 = DOM.UDim2.new(1, 2, 3, 4)
local udim1 = DOM.UDim2.new(4, 3, 2, 1)
local udim2 = DOM.UDim2.new(1, 2, 3, 4)
assert(not pcall(function() return udim0.INDEX_THAT_ISNT_REAL en... | nilq/small-lua-stack | null |
local exports = {}
local tap = require('tap')
local response = require('authman.response')
local error = require('authman.error')
local validator = require('authman.validator')
local v = require('test.values')
local uuid = require('uuid')
local utils = require('authman.utils.utils')
-- model configuration
local config... | nilq/small-lua-stack | null |
-- mod-version:1 lite-xl 2.00
-- for CSS Beautify fortmatter
local config = require "core.config"
local formatter = require "plugins.formatter"
config.cssbeautify_args = {"-r", "-q", "-s 1", "-t"} -- make sure to keep -r arg if you change this
formatter.add_formatter {
name = "CSS Beautifier",
file_patterns = {"%.c... | nilq/small-lua-stack | null |
--lux_lucent_singularity = class({})
local self = {}
--------------------------------------------------------------------------------
function OnSpellStart( keys )
self.target = keys.target_points[1]
self.projectile_speed = keys.ability:GetSpecialValueFor( "projectile_speed" )
self.vision_radius = keys.ability:Ge... | nilq/small-lua-stack | null |
description 'nui_example'
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
ui_page 'html/index.html'
client_scripts {
'main.lua'
}
files {
'html/index.html',
'html/style.css',
'html/reset.css',
'html/listener.js'
} | nilq/small-lua-stack | null |
#!/usr/bin/env lua
local meta = {}
local waldo = {}
print(getmetatable(meta)) -- nil
print(getmetatable(waldo)) -- nil
setmetatable(waldo, meta) -- set meta as the metatable of waldo
print(getmetatable(meta)) -- nil
print(getmetatable(waldo)) -- table: 0x...
print(getmetatable(waldo) == meta) -- true
| nilq/small-lua-stack | null |
biogenicHeraldDealerConvoTemplate = ConvoTemplate:new {
initialScreen = "intro",
templateType = "Lua",
luaClassHandler = "BiogenicHeraldDealerConvoHandler",
screens = {}
}
intro = ConvoScreen:new {
id = "intro",
leftDialog = "@conversation/biogenic_herald_dealer:s_ca3bfa0f", -- Eh... you don't look much like a m... | nilq/small-lua-stack | null |
while true do
wait()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Arrows.Arrow.ArrowPart.CFrame
end | nilq/small-lua-stack | null |
--
-- tests/actions/vstudio/vc200x/header.lua
-- Validate generation of the project file header block.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs200x_header = { }
local suite = T.vstudio_vs200x_header
local vc200x = premake.vstudio.vc200x
--
-- Setup
--
local sln, prj
functi... | nilq/small-lua-stack | null |
--[[
This is the main.lua file. It executes first and, in this demo,
its sole purpose is to set some initial visual settings.
Then, you execute the game or menu scene via Composer.
Composer is the official scene (screen) creation and management
library in Corona; it provides developers with an
easy way to create and ... | nilq/small-lua-stack | null |
local missions = {
[[
mission
{
victory_type vco_victory_type_alternative_1_the_great_game;
key wh_main_long_victory;
issuer CLAN_ELDERS;
primary_objectives_and_payload
{
objective
{
override_text mission_text_text_vco_roc_the_great_game_completed_0;
... | nilq/small-lua-stack | null |
object_ship_dunelizard_s01_tier7 = object_ship_shared_dunelizard_s01_tier7:new {
}
ObjectTemplates:addTemplate(object_ship_dunelizard_s01_tier7, "object/ship/dunelizard_s01_tier7.iff")
| nilq/small-lua-stack | null |
local autoplace = {
type = "autoplace-control",
name = "lead-ore",
richness = true,
order = "b-f"
}
local noiseLayer = {
type = "noise-layer",
name = "lead-ore"
}
local leadOre = {
autoplace =
{
control = "lead-ore",
coverage = 0.02,
peaks =
{
{
noise... | nilq/small-lua-stack | null |
STI = require("libs.sti")
traceTiles = require("libs.mapedgetrace")
Tile = require("entities.core.tile")
Physical = require("entities.core.physical")
Map = class("Map", Physical)
function Map:initialize(mapname, offx, offy)
self.offx = offx or 0
self.offy = offy or 0
self.map... | nilq/small-lua-stack | null |
local status_ok, transparent = pcall(require,"transparent")
if not status_ok then
vim.notify("nvim-transparent not found")
return
end
transparent.setup({
enable = true, -- boolean: enable transparent
extra_groups = { -- table/string: additional groups that should be clear
-- In particular, when you set it ... | nilq/small-lua-stack | null |
local position = require('__stdlib__/stdlib/area/position')
local entity_camera = {}
function entity_camera.create(parent, name, size, data)
local frame = parent.add {
type = 'frame',
name = name .. '_frame',
style = 'inside_deep_frame'
}
local camera = frame.add {
type = '... | nilq/small-lua-stack | null |
local sys = require "luci.sys"
m = Map("netkeeper-interception")
m.title = translate("Netkeeper Interception")
m.description = translate("Netkeeper Account Interception Plugin")
m:section(SimpleSection).template = "netkeeper-interception/netkeeper-interception_status"
s = m:section(TypedSection, "netkeeper-intercept... | nilq/small-lua-stack | null |
require("TSLib")
require("tsp")
function UI(name1,name2,clicks,oder,s)
clicks = clicks or false
oder = oder or 1
s = s or 95
for i,v in ipairs(aoc[name1][name2]) do
if isColor(v[1],v[2],v[3],s) then
else
return false
end
end
if clicks then
click(aoc[name1][name2][oder][1],aoc[name1][name2][oder][2... | nilq/small-lua-stack | null |
function Meta (meta)
meta.old = nil
meta.new = "new"
meta.bool = (meta.bool == false)
return meta
end
| nilq/small-lua-stack | null |
local scene = sl.Scene.empty(sl.device)
local node = scene:createNode()
local renderer = node:addComponent('MeshRenderer')
assert(renderer)
local mesh = sl.Mesh.empty(sl.device)
renderer:setMesh(mesh)
assert(renderer:mesh() == mesh)
local effect = sl.Effect.fromDescriptionFile(sl.device, assetPath('effects/test.lua... | nilq/small-lua-stack | null |
local p = (require 'gamestate._level')()
function p:draw()
p.clear()
p.titleScroll("An #xkcdGameJam game\nbased on the Barrel (Parts 1-5) xkcd comic.\n"..
"Made by @Premek_V (https://premek.itch.io/) in 3 days\n"..
"using LÖVE Game Engine.\n"..
"Original comic: Randall Munroe.\n"..
"Soundtrack: Borealism,... | nilq/small-lua-stack | null |
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\AlienStructure.lua
--
-- Created by: Mats Olsson (mats.olsson@matsotech.se)
--
-- Base class for an alien building. Collects all the standard mixins.
--
-- ========= For more information, visit us at ht... | nilq/small-lua-stack | null |
object_building_kashyyyk_poi_kash_dead_forest_scarecrow_s01 = object_building_kashyyyk_shared_poi_kash_dead_forest_scarecrow_s01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_dead_forest_scarecrow_s01, "object/building/kashyyyk/poi_kash_dead_forest_scarecrow_s01.iff")
| nilq/small-lua-stack | null |
local K, C = unpack(select(2, ...))
local Module = K:GetModule("Skins")
local _G = _G
local table_insert = table.insert
local hooksecurefunc = _G.hooksecurefunc
local function SkinWorldMapStuff()
-- QuestMapFrame.QuestsFrame.StoryTooltip:CreateBorder()
-- QuestScrollFrame.WarCampaignTooltip:CreateBorder()
--Worl... | nilq/small-lua-stack | null |
---@class Path : Animation
local Path = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_Path_CreateControlPoint)
function Path:CreateControlPoint(name, template, order) end
---[Documentation](https://wowpedia.fandom.com/wiki/API_Path_GetControlPoints)
function Path:GetControlPoints() end
---[Documentation... | nilq/small-lua-stack | null |
-- Copyright (c) 2021 StefanT <stt1@gmx.at>
-- See LICENSE.md in the project directory for license information.
local eq = table.deepcopy(data.raw["solar-panel-equipment"]["solar-panel-equipment"])
eq.name = "shuttle-train"
eq.take_result = "shuttle-train"
eq.sprite.filename = "__ShuttleTrainRefresh__/graphics/equipme... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Outer Horutoto Ruins
-- NM: Jack of Batons
-----------------------------------
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/missions")
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("popTime", os.time())
end
... | nilq/small-lua-stack | null |
local GAMEMODE = PIS:GetGamemode()
GAMEMODE:SetName("DarkRP")
GAMEMODE:SetID("darkrp")
GAMEMODE:SetDetectionCondition(function()
return DarkRP
end)
GAMEMODE:SetPlayers(function(author)
local tbl = {}
for i, v in pairs(player.GetAll()) do
if (v == author) then continue end
for _, tbl in pairs(PIS.Config.RPTeamVi... | nilq/small-lua-stack | null |
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ip = require("luci.sys.iptparser").IptParser()
local chains = { }
local targets = { }
for i, rule in ipairs( ip:find() ) do
if rule.chain and rule.target then
chains[rule.chain] = ... | nilq/small-lua-stack | null |
--
--
--
local Class = require ("src.class")
local MapElement = require ("src.entity.map.mapelement")
local Key = Class.new (MapElement)
-- Key initialization
function Key:_init (index)
MapElement._init (self)
self.index = index
self.depth = 0
end
return Key
| nilq/small-lua-stack | null |
-- fire/init.lua
-- Global namespace for functions
fire = {}
-- 'Enable fire' setting
local fire_enabled = minetest.settings:get_bool("enable_fire")
if fire_enabled == nil then
-- enable_fire setting not specified, check for disable_fire
local fire_disabled = minetest.settings:get_bool("disable_fire")
if fire_disa... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local serverdefs = include( "modules/serverdefs" )
local util = include( "modules/util" )
local weighte... | nilq/small-lua-stack | null |
return {
summary = 'Create a view transform that looks from a position to target position.',
description = [[
Sets a view transform matrix that moves and orients camera to look at a target point.
This is useful for changing camera position and orientation. The resulting Mat4 matrix can be
passed to `lo... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local C = ffi.C
ffi.cdef[[
void free(void *ptr);
void *malloc(size_t size);
]]
require 'torch'
local serialize = {}
function serialize.save(func)
local code = torch.serialize(func) -- DEBUG: make it work without torch too ;)
local sz = #code
local code_p = ffi.cast('char*', C.mall... | nilq/small-lua-stack | null |
--[[
This code was inspired by the code here:
http://lists.uclibc.org/pipermail/uclibc/2000-December/020921.html
Which carried the following copyright
/*
* Copyright (C) 2000 Manuel Novoa III
*
* Notes:
*
* The primary objective of this implementation was minimal size.
*
*/
--]]
local LONG_MIN = 0x800... | nilq/small-lua-stack | null |
return {
error_msgs = 1,
typecheck = 1,
}
| nilq/small-lua-stack | null |
local mod = EPGP:NewModule("warnings", "AceHook-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
StaticPopupDialogs["EPGP_OFFICER_NOTE_WARNING"] = {
text = L["EPGP is using Officer Notes for data storage. Do you really want to edit the Officer Note by hand?"],
button1 = YES,
button2 = NO,
timeout = ... | nilq/small-lua-stack | null |
-- Generated by CSharp.lua Compiler
return function (dir)
dir = (dir and #dir > 0) and (dir .. '.') or ""
local require = require
local load = function(module) return require(dir .. module) end
load("Sample.TestCoroutine")
load("Sample.TestHangingScript")
load("Sample.TestHelloWord")
System.init({
"... | nilq/small-lua-stack | null |
--[[
MIT License, Copyright (c) 2018-2019 JWRR.COM, See LICENSE file
Get LUED: git clone https://github.com/jwr/lued
--]]
-- key bindings
-- set_hotkeys(",1,2,3,df,dg,dh,dd,ds,da,")
-- set_hotkeys( ",Sn,Sp,sw,v,VV,w,y,x,z,")
-- set_repeatables(",alt_uu,")
-- set_repeatables(",,")
set_non_repeatables(",alt_ee,a... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
readme '../README.md'
index {
name = 'path',
header = [[A simple module to manipulate file paths in Lua]],
}
------------------------------------------------------------------------------
header()
chapter('about', "About", [[
The prtr... | nilq/small-lua-stack | null |
function guiCreateButton (...)
return exports.mtatr_gui:guiCreateButton(...);
end
function guiCreateEdit (...)
return exports.mtatr_gui:guiCreateEdit(...);
end
function guiCreateWindow (...)
return exports.mtatr_gui:guiCreateWindow(...);
end
function guiEditSetMasked (...)
return exports.mtatr_gui:guiEditSetMask... | nilq/small-lua-stack | null |
---@class CS.UnityEngine.StaticBatchingUtility
---@type CS.UnityEngine.StaticBatchingUtility
CS.UnityEngine.StaticBatchingUtility = { }
---@return CS.UnityEngine.StaticBatchingUtility
function CS.UnityEngine.StaticBatchingUtility.New() end
---@overload fun(staticBatchRoot:CS.UnityEngine.GameObject): void
---@param gos... | nilq/small-lua-stack | null |
EditorDoorData = {}
local DoorConfig = {
[6]=180,
[17]=180,
[18]=180,
[19]=180,
[26]=180,
[27]=180,
[28]=180,
[29]=180,
[30]=180,
[31]=180,
[32]=180,
[33]=180,
[34]=180,
[35]=0,
[36]=270,
[37]=270,
[38]=270,
[39]=270
}
local function Editor_SetPlayerEditor(player, bEnable)
if not... | nilq/small-lua-stack | null |
require('cmp').register_source('cmdline_history', require('cmp_cmdline_history').new())
| nilq/small-lua-stack | null |
help([[Boost provides free peer-reviewed portable C++ source libraries. - Homepage: http://www.boost.org/]])
whatis([[Description: Boost provides free peer-reviewed portable C++ source libraries. - Homepage: http://www.boost.org/]])
local root = "/opt/apps/software/Boost/1.61.0-foss-2016b"
conflict("Boost")
if not ... | nilq/small-lua-stack | null |
---@class AuctionHouse
C_AuctionHouse = {}
| nilq/small-lua-stack | null |
class_C("Player").ctor = function (slot0)
slot0._wastage = 0
slot0._cannonSetType = 0
slot0._cannonMultiply = 0
slot0._position = cc.p(0, 0)
slot0._lastFireTick = 0
slot0._locking = 0
slot0._bulletCount = 0
slot0._canFire = 0
slot0._chairId = 0
slot0._userId = 0
slot0._score = 0
slot0._name = 0
end
return ... | nilq/small-lua-stack | null |
function scene3_load()
backgroundwhite = 0
staralpha = 1
asteroids = {}
bullets = {}
asteroidtimer = 0
rockets = {rocket:new()}
love.audio.play(bgmusic)
rockets[1].x = 50
rockets[1].y = 70
rockets[1].ground = false
rockets[1].inflight = true
table.insert(asteroids, asteroid:new())
if #st... | nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_233 = {
[12800606] = {
cannon = 22,
reload = 150,
speed_growth = 0,
cannon_growth = 626,
rarity = 4,
air = 0,
torpedo = 94,
dodge = 22,
durability_growth = 21600,
antiaircraft = 72,
luck = 0,
reload_growth = 0,
dodge_growth = 360,
hit_growth = 280,
s... | nilq/small-lua-stack | null |
--[[
________________________________________________
AuroraRPG - aurorarpg.com
This resource is property of AuroraRPG.
Author: Anubhav Agarwal
All Rights Reserved 2017
________________________________________________
]]--
local originalColumns = {
[1] = {0.01, 0.02},
[2] = {0.36, 0.02},
[3] = {0.71, 0.... | nilq/small-lua-stack | null |
local Native = require('lib.stdlib.native')
---@class FogModifier : Agent
local FogModifier = class('FogModifier', require('lib.stdlib.oop.agent'))
---destructor
---@return void
function FogModifier:destructor()
--@debug@
checkobject(self, FogModifier, 'destructor', 'self')
--@end-debug@
return Native.Destroy... | nilq/small-lua-stack | null |
--flow/random-pos.lua version 42.06a
local utils = require 'utils'
flowtypes = {
miasma = 0,
mist = 1,
mist2 = 2,
dust = 3,
lavamist = 4,
smoke = 5,
dragonfire = 6,
firebreath = 7,
web = 8,
undirectedgas = 9,
undirectedvapor = 10,
oceanwave = 11,
seafoam = 12
}
validArgs = validArgs or utils.inve... | nilq/small-lua-stack | null |
---@diagnostic disable: trailing-space
-- ===========================================================================
--- Blizzard.j ( define Jass2 functions that need to be in every map script )
-- ===========================================================================
--- ----------------------------------------... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
local test = require("sqltester")
test:plan(21157)
-- it is bad idea to store 20k positive test results in git
test.silent = true
--!./tcltestrunner.lua
-- 2008 June 24
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May yo... | nilq/small-lua-stack | null |
-- Live Simulator: 2 v3.1 splash screen
-- Part of Live Simulator: 2
-- See copyright notice in main.lua
-- luacheck: read_globals DEPLS_VERSION DEPLS_VERSION_NUMBER
local love = require("love")
local timer = require("libs.hump.timer")
local color = require("color")
local Gamestate = require("gamestate")
... | nilq/small-lua-stack | null |
local yaw = {}
local sound_horse = sounds_enabled and sounds.horse
local sound_horse_snort = sounds_enabled and sounds.horse_snort
local sound_horse_neigh = sounds_enabled and sounds.horse_neigh
local sound_entity_hit = sounds_enabled and sounds.entity_hit
function whinny:register_mob(name, def)
core.register_entit... | nilq/small-lua-stack | null |
require "common/class"
require "Secretary"
Debugger = buildClass(Entity)
function Debugger:_init()
Entity._init(self)
self.fps = 0
self.physObjectCount = 0
self.lastTime = love.timer.getTime()
self.visible = false
end
function Debugger:registerWithSecretary(secretary)
Entity.registerWithSecretary(self, s... | nilq/small-lua-stack | null |
--[[
WS2812 Toy
Author: Andre Alves Garzia <andre@andregarzia.com>
Date: 2017-05-11
This is just a demo of WS2812, shining some LEDs with Lua. It plays three animations and stop.
The code is quite naive, focused on creating very explicit and readable code even though it is
spaghetti-ish.
* Animation Str... | nilq/small-lua-stack | null |
package("opengl")
set_homepage("https://opengl.org/")
set_description("OpenGL - The Industry Standard for High Performance Graphics")
on_fetch(function (package, opt)
-- we always get it from compiler toolchain
if package:is_plat("macosx") then
return {frameworks = "OpenGL", de... | nilq/small-lua-stack | null |
GraphPath = class("GraphPath")
GraphPath.Ctor = function (slot0, slot1)
slot0.points = {}
for slot5, slot6 in pairs(slot1.Points) do
table.merge(slot7, slot6)
slot0.points[slot5] = setmetatable({
id = slot5,
nexts = {}
}, Vector2)
end
for slot5, slot6 in pairs(slot1.Edges) do
slot8 = slot0.points[... | nilq/small-lua-stack | null |
local simdefs = include( "sim/simdefs" )
local Situation = class(function(self)
self.units = {}
end)
function Situation:hasUnit(unit)
return self.units[unit:getID()] ~= nil
end
function Situation:isUnitValid(unit)
return unit:isValid() and not unit:isDead() and not unit:isKO()
end
function Situation:isValid()
r... | nilq/small-lua-stack | null |
return Def.Quad{
InitCommand=cmd(zoomto,200,12;diffuse,HSV(0,0,0));
}; | nilq/small-lua-stack | null |
cities = {
{ "corellia", "Bela Vistal", 6766, -5692, 370 },
{ "corellia", "Coronet", -178, -4504, 581 },
{ "corellia", "Doaba Guerfel", 3240, 5391, 516 },
{ "corellia", "Kor Vella", -3420, 3146, 620 },
{ "corellia", "Tyrena", -5217, -2456, 619 },
{ "corellia", "Vreni Island", -5399, -6296, 359 },
{ "dantooi... | nilq/small-lua-stack | null |
local path = require('pandoc.path')
function Pandoc(doc)
print(PANDOC_STATE.resource_path[1])
end | nilq/small-lua-stack | null |
local math = math
--弧度去死吧
local deg = math.deg(1)
local rad = math.rad(1)
--正弦
local sin = math.sin
function math.sin(r)
return sin(r * rad)
end
--余弦
local cos = math.cos
function math.cos(r)
return cos(r * rad)
end
--正切
local tan = math.tan
function math.tan(r)
return tan(r * rad)
end
--反正弦
local asin = math.a... | nilq/small-lua-stack | null |
mtbench.register("itemstack", function(executeCondition)
local count = 0
while executeCondition() do
ItemStack()
count = count + 1
end
return count
end)
| nilq/small-lua-stack | null |
local gauntlet_data = require "gauntlet_data"
local deepcopy = require "deepcopy"
local Gauntlet = {
NAME = "...Gauntlet?!",
}
function Gauntlet:activate(current_round)
self.old_Gauntlet = gauntlet_data.mega_chip_limit
gauntlet_data.mega_chip_limit = gauntlet_data.mega_chip_limit + 3
gauntlet_data.... | nilq/small-lua-stack | null |
---
-- Outline module
-- @author https://github.com/ShadowBonnieRUS
local render = render
local cam = cam
local surface = surface
local hook = hook
local Material = Material
module("outline", package.seeall)
if SERVER then
AddCSLuaFile()
else
OUTLINE_MODE_BOTH = 0
OUTLINE_MODE_NOTVISIBLE = 1
OUTLINE_MODE_VISIBLE... | nilq/small-lua-stack | null |
function PLUGIN:HUDPaint()
local lp = LocalPlayer()
if (!lp:GetCharacter() or !lp:Alive() or ix.gui.characterMenu:IsVisible() or ix.option.Get("disablehud", false)) then return end
local value = 100 - lp:getRadiation()
ix.util.DrawStatusIcon("stalker/ui/art.png", value, ScrW()*0.86, ScrH()*0.79)
end
| nilq/small-lua-stack | null |
-- ___________________________________________________________________________
-- | |
-- | -------------------------------------------------------------------- |
-- | -------------------------------------------------------------------- |
-- | ---- ---- |
-- | ---- ________ ... | nilq/small-lua-stack | null |
-- contrib/nvsmi_all.lua
-- Copyright (C) 2014 Adrian C. <anrxc@sysphere.org>
-- Copyright (C) 2017 Jörg Thalheim <joerg@higgsboson.tk>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by t... | nilq/small-lua-stack | null |
g_lance_staff_wood_s2 = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "lance_staff_wood_s2", weight = 10000000}
}
}
addLootGroupTemplate("g_lance_staff_wood_s2", g_lance_staff_wood_s2) | nilq/small-lua-stack | null |
local A = FonzAppraiser
A.module 'fa.session'
local abacus = AceLibrary("Abacus-2.0")
local util = A.requires(
'util.table',
'util.string',
'util.time',
'util.item'
)
local pricing = A.require 'fa.value.pricing'
local filter = A.require 'fa.filter'
-- SETTINGS --
local defaults = {
ma... | nilq/small-lua-stack | null |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
local PNL = LUIE.InfoPanel
local strformat = zo_strformat
local optionsDataInfoPanel = {}
-- Create Settings Menu
function PNL.CreateSettings()
-- Load LibAddonMenu
local LAM = _G["LibAddonMenu2"]
local panelDataInfoPanel = {
... | nilq/small-lua-stack | null |
local crypto = require("crypto")
local evp = require("crypto.env")
local s = "123456789"
local md5val = evp.digest("md5", s)
print(md5val)
| nilq/small-lua-stack | null |
object_static_worldbuilding_furniture_tech_armoire = object_static_worldbuilding_furniture_shared_tech_armoire:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_tech_armoire, "object/static/worldbuilding/furniture/tech_armoire.iff") | nilq/small-lua-stack | null |
LaserTower = Tower.create()
LaserTower.__index = LaserTower
LaserTower.radius = 190
LaserTower.cost = 900
LaserTower.name = "Laser Tower"
LaserTower.shoot_speed = 3.0
function LaserTower.create()
local instance = {}
setmetatable(instance, LaserTower)
return instance
end
function LaserTower.draw_inner_sha... | nilq/small-lua-stack | null |
--[[
Panluna test suite
Copyright (c) 2017 Albert Krewinkel
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... | nilq/small-lua-stack | null |
aliveai={
version=25,
--========================options==============================
spawning=true, --spawning by self
character_model="aliveai_character.b3d", --character model
set_bones=true,
default_team="Sam",
gravity=10,
check_spawn_space=true,
enable_build=true,
status=false, --show b... | nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------
Copyright (C) 2018 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
local MAJOR, MINOR = "MooZone-1.0", 2
assert(LibStub, MAJOR .. " requires LibStub"... | nilq/small-lua-stack | null |
local selector = 0
function write(addr, data)
if addr == 0x8000 then
selector = data & 0x7
elseif addr == 0xa000 then
if selector < 2 then
mapper_switch_prg(0x8000 + 8 * 1024 * selector, 8, data)
elseif selector < 4 then
mapper_switch_chr(0x0 + 0x800 * (selector - 2), 2, data >> 1)
else
... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
-- Parse a lua table in modules/data and write text
-- to run: lua sp.lua "foo"
sptbl = {}
module = arg[1]
dofile(string.format("modules/data/%s.lua", module))
PG = { name = module }
function PG.printheader(self, str)
io.write("<div class=\"row\">\n")
io.write("<h2>" .. str .. "</h2>")
... | nilq/small-lua-stack | null |
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
local openssl = stdnse.silent_require "openssl"
local ssh2 = stdnse.silent_require "ssh2"
description = [[
Reports hasshServer (i.e. SSH Server Fing... | nilq/small-lua-stack | null |
local config = require("internal.config")
local draw_callbacks = require("internal.draw_callbacks")
local env = require("internal.env")
local fs = require("util.fs")
local WidgetContainer = require("api.gui.WidgetContainer")
if env.is_hotloading() then
return "no_hotload"
end
local draw = {}
local WIDTH = 800
loc... | nilq/small-lua-stack | null |
---
-- This library implements a minimal subset of the BitCoin protocol
-- It currently supports the version handshake and processing Addr responses.
--
-- The library contains the following classes:
--
-- * NetworkAddress - Contains functionality for encoding and decoding the
-- BitCoin network addr... | nilq/small-lua-stack | null |
-- This module defines a proxy on Device2 access to do the syncronisation with the remote cloud
local murano2cloud = require("c2c.murano2cloud")
-- Define in murano2cloud the function to overload matching the device2 operation signature
-- See http://docs.exosite.com/reference/services/device2
if murano2cloud then
... | nilq/small-lua-stack | null |
object_mobile_som_djedi_twk_f_01 = object_mobile_som_shared_djedi_twk_f_01:new {
}
ObjectTemplates:addTemplate(object_mobile_som_djedi_twk_f_01, "object/mobile/som/djedi_twk_f_01.iff")
| nilq/small-lua-stack | null |
make_rule 'superninja' {
command = '"$bin_dir\\wedo.exe" ninja -f $file $targets $extra',
description = 'sudo ninja $targets',
generator = 'true'
}
make_rule 'ninja' {
command = 'ninja -f $file $targets $extra',
description = 'ninja $targets',
generator = 'true'
}
make_rule 'superninjatool' {
com... | nilq/small-lua-stack | null |
object_tangible_furniture_all_frn_all_light_lamp_candlestick_free_s02 = object_tangible_furniture_all_shared_frn_all_light_lamp_candlestick_free_s02:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_light_lamp_candlestick_free_s02, "object/tangible/furniture/all/frn_all_light_lamp_candlestick_... | nilq/small-lua-stack | null |
--[[
Version
0.08 5/24/2021
Changelogs
0.01 - Added Support for Excavation2017.lua
Added Support for Tunnel2017.lua
0.02 - Added Support for StripMining2017.lua
0.03 - Added Pre Support for Bridge2017.lua
0.05 - Fully Added Support for Bridge2017.lua
0.06 - Added Support for BridgeNo... | 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.