content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('LandingSpot', {
group = "Challenges",
id = "BlueSunAccumulatedMoney",
latitude = 50,
longitude = -83,
})
PlaceObj('LandingSpot', {
group = "Challenges",
id = "BlueSunExportedRareMetals",
latitude = -24,
longitude = 179,
})
PlaceObj('... | nilq/small-lua-stack | null |
module("HomeSystem", package.seeall)
setmetatable(HomeSystem, {__index=XEventModule})
function new(szName)
local home = {
}
setmetatable(home, {__index=HomeSystem})
home:Init(szName)
return home
end
function Init(self, szName)
XEventModule.Init(self, szName)
-- get home entity
self.entity = ... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local json = require("cjson")
local reportServer = {}
function reportServer:onGetCurDate()
return os.date("%Y/%m/%d", os.time())
end
function reportServer:init(pGameCode)
self.m_redisClientsMgr = require("utils/redisClientsMgr")
self.m_redisClientsMgr:init()
self.m_pServerConfig... | nilq/small-lua-stack | null |
local playsession = {
{"ManuelG", {7926}},
{"Plawerth", {62066}},
{"Ruuyji", {859}}
}
return playsession | nilq/small-lua-stack | null |
-- call with lua generate-lua-ooc.lua from-lua.lua constant-name
local f = assert(io.open(arg[1], "r"))
local code = f:read("*all"):gsub('"', '\\"'):gsub('\\r', '\\\\r'):gsub('\\n', '\\\\n')
f:close()
print(arg[2] .. ' := c"' .. code .. '"')
| nilq/small-lua-stack | null |
local common = require "common"
local directions = {}
directions.n = {0,1,-1}
directions.ne = {1,0,-1}
directions.se = {1,-1,0}
directions.s = {0,-1,1}
directions.sw = {-1,0,1}
directions.nw = {-1,1,0}
local function add(mut, dir)
mut[1] = mut[1] + dir[1]
mut[2] = mut[2] + dir[2]
mut[3] = mut[3] + dir[3]
end
... | nilq/small-lua-stack | null |
------------------------------------------------------------
------------------------ yrp_drugs -------------------------
------------------------------------------------------------
--------------------- Created by Flap ----------------------
------------------------------------------------------------
----------... | nilq/small-lua-stack | null |
d2ffi = {}
function d2ffi.new(class)
local self = {
funcs = {},
types = {},
structs = {},
enums = {},
consts = {},
lkenum = {},
lkconst = {},
lktype = {},
lkfunc = {},
lkstruct = {},
}
table.insert(self.types,{name="uint",alias="unsigned int uint"})
table.insert... | nilq/small-lua-stack | null |
// Meta table adjustments
local Meta = FindMetaTable("Player")
// Get entity
function Meta:GetControllingEntity()
return self:GetNetworkedEntity("GetControllingEntity")
end | nilq/small-lua-stack | null |
Writer = class(function(w,filePath)
w.filePath = filePath or nil
w.useConsole = true
w.useFile = false
w.output = ""
w.isColor = true
if filePath then
w.stream = io.open(filePath, "a")
w.useFile = true
end
end)
function Writer:writeLine(format, ...)
if format then
... | nilq/small-lua-stack | null |
kCombatLocaleMessages = {}
kCombatLocaleMessages["AMMO_PACK_TOOLTIP"] = "1 clip of ammo for any weapon"
kCombatLocaleMessages["COMBAT_REFUND_ALIEN"] = "Re-evolve"
kCombatLocaleMessages["COMBAT_REFUND_TITLE_ALIEN"] = "Re-evolve upgrades"
kCombatLocaleMessages["COMBAT_REFUND_DESCRIPTION_ALIEN"] = "Resets your upgrades so... | nilq/small-lua-stack | null |
local bit32 = require 'bit32'
local bit32s = require 'long.bit32s'
local class = require 'middleclass'
local Long = class('Long')
--[[
* Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
* See the from* functions below for more convenient ways of constructing ... | nilq/small-lua-stack | null |
Npcs.event = GetCurrentResourceName()..":"
Npcs.npcs = {}
--[[ Functions: Npcs ]]--
function Npcs:Register(data)
while not IsNpcsReady do
Citizen.Wait(0)
end
return Npc:Create(data)
end
function Npcs:Destroy(id)
local npc = self.npcs[id]
if not npc then return false end
npc:Destroy()
return true
end
--[[... | nilq/small-lua-stack | null |
local Name, Addon = ...
local Data, Models, Store, Util = Addon:Import("Data", "Models", "Store", "Util")
local Self, Super = Util.TblClass(Models.Model, Models.Recipe)
Self.STORE = "RECIPE"
Self.REF = "rcp"
-------------------------------------------------------
-- Static -... | nilq/small-lua-stack | null |
-- Copyright 2022 SmartThings
--
-- 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 or agreed to in ... | nilq/small-lua-stack | null |
--ScriptManager Class
local Settings = require "Settings/Settings"
local Maybe = require "Lib/Maybe"
local ScriptManager = {}
local Scripts = {}
for name, weight in pairs(Settings.Scripts) do -- load every Script
local script = require("Scripts/" .. tostring(name))
Scripts[script:new()] ... | nilq/small-lua-stack | null |
local blossoms = {}
blossoms.numpetals = 150
blossoms.gravity = 150
blossoms.wind = 100
blossoms.xsitionperiod = 40 -- in frames
blossoms.xdim,blossoms.ydim = 0,0
--mat[row][col]; for ease of computation these are also cumulative
blossoms.transitionmat = {}
blossoms.transitionmat[1] = {0.4,0.9,1,0}
blossoms.transitio... | nilq/small-lua-stack | null |
-- Pistol ammo override
if SERVER then
AddCSLuaFile( "shared.lua" )
end
ENT.Type = "anim"
ENT.Base = "base_ammo_ttt"
ENT.AmmoType = "Pistol"
ENT.AmmoAmount = 20
ENT.AmmoMax = 60
ENT.Model = Model("models/items/boxsrounds.mdl")
| nilq/small-lua-stack | null |
addEvent("gra.cGlobalSettings.load", true, true)
addEvent("gra.cGlobalSettings.set", true, true)
local cache = {}
cGlobalSettings = {}
addEventHandler("gra.cGlobalSettings.load", localPlayer,
function(settings)
cache = settings
end
)
addEventHandler("gra.cGlobalSettings.set", localPlayer,
function(setting, va... | nilq/small-lua-stack | null |
nightspider_poison_spitter = Creature:new {
objectName = "@mob/creature_names:nightspider_poison_spitter",
socialGroup = "spider",
faction = "",
level = 11,
chanceHit = 0.29,
damageMin = 130,
damageMax = 140,
baseXp = 430,
baseHAM = 810,
baseHAMmax = 990,
armor = 0,
resists = {0,0,0,0,0,0,115,-1,-1},
meatT... | nilq/small-lua-stack | null |
local DarkSoul = Class(function(self, inst)
self.inst = inst
inst:AddTag("darksoul")
end)
return DarkSoul
| nilq/small-lua-stack | null |
function love.load()
width = 800
height = 600
plano_de_fundo = {255, 255, 10}
backgraund = love.graphics.newImage("digi_camo.png")
require "class"
require "tank"
myfont = love.graphics.newFont("papercuts.ttf", 160)
musica = love.audio.newSource("mus_zz_megalovania.ogg", "stream")
mu... | nilq/small-lua-stack | null |
--The default name that the avatars will spawn with, with an incrementing number afterward
default_avatar_name = "Avatar #"
--The default for the Avatar Remote Deployment Unit name, with an incrementing number afterward
default_avatar_remote_deployment_unit_name = "ARDU #"
--The default prefix for the avatars deploye... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1718, "DBM-Party-Legion", 7, 800)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15008 $"):sub(12, -3))
mod:SetCreatureID(104215)
mod:SetEncounterID(1868)
mod:SetZone()
mod.onlyMythic = true
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_... | nilq/small-lua-stack | null |
local dadLosing = false
local boyfriendLosing = false
function onUpdate(elapsed)
songPos = getSongPosition()
local currentBeat = (songPos/5000)*(curBpm/60)
setPropertyFromClass('PlayState', 'SONG.speed', 2.8 + (math.sin(currentBeat) * 0.6));
function opponentNoteHit(id, direction, noteType, isSustainNote)
cameraShake(... | nilq/small-lua-stack | null |
-- Copyright 2019 Xingwang Liao <kuoruan@gmail.com>
-- Licensed to the public under the MIT License.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local sys = require "luci.sys"
local m, s, o
local dokodemo_door_list = {}
uci:foreach("v2ray", "inbound", function(s)
local port = s.por... | nilq/small-lua-stack | null |
local Size = require("lualife.models.size")
local Point = require("lualife.models.point")
local FieldSettings = require("biohazardcore.models.fieldsettings")
local GameSettings = require("biohazardcore.models.gamesettings")
local Game = require("biohazardcore.game")
math.randomseed(os.time())
local game = Game:new(Ga... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1467, "DBM-Party-Legion", 10, 707)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15190 $"):sub(12, -3))
mod:SetCreatureID(95885)
mod:SetEncounterID(1815)
mod:DisableESCombatDetection()--Remove if blizz fixes trash firing ENCOUNTER_START
mod:SetZone()
mod:RegisterCom... | nilq/small-lua-stack | null |
-- Actually these regular expressions were obtained from SpamAssassin project, so they are licensed by apache license:
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyr... | nilq/small-lua-stack | null |
object_ship_tiefighter_tier6 = object_ship_shared_tiefighter_tier6:new {
}
ObjectTemplates:addTemplate(object_ship_tiefighter_tier6, "object/ship/tiefighter_tier6.iff")
| nilq/small-lua-stack | null |
servidor = require("servidor")
wificonf = {
-- verificar ssid e senha
ssid = "morsemcu",
pwd = "morsemcu",
--ssid = "reativos",
--pwd = "morsemcu",
got_ip_cb = function (con)
print ("meu IP, porta: ", con.IP, " ", con.port)
servidor.open()
end,
... | nilq/small-lua-stack | null |
cc('src/guids.S', {'$outdir/guids.bin', '$outdir/names.bin'}, {
cflags='$cflags -Wa,-I,$outdir',
})
cflags{
'-Wall', '-Wextra', '-Wno-address-of-packed-member',
'-D _GNU_SOURCE',
'-include $dir/compat.h',
'-I $outdir/include',
'-I $srcdir/src/include',
'-isystem $builddir/pkg/linux-headers/include',
}
sub('too... | nilq/small-lua-stack | null |
object_tangible_furniture_flooring_metal_frn_flooring_metal_s13 = object_tangible_furniture_flooring_metal_shared_frn_flooring_metal_s13:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_flooring_metal_frn_flooring_metal_s13, "object/tangible/furniture/flooring/metal/frn_flooring_metal_s13.iff")
| nilq/small-lua-stack | null |
local help_message = [[
This is a module file for the container quay.io/biocontainers/emboss:6.5.7--2, which exposes the
following programs:
- aaindexextract
- abiview
- acdc
- acdgalaxy
- acdlog
- acdpretty
- acdtable
- acdtrace
- acdvalid
- aligncopy
- aligncopypair
- antigenic
- assemblyget
- backtran... | nilq/small-lua-stack | null |
--[[
This file is part of 'Masque', an add-on for World of Warcraft. For license information,
please see the included License.txt file.
* File...: Locales\deDE.lua
[ Notes ]
To help with translations, use the localization system on WoWAce (https://www.wowace.com/projects/masque/localization)
or contri... | nilq/small-lua-stack | null |
-- Copyright 2018 Matthias Schiffer <mschiffer@universe-factory.net>
-- Licensed to the public under the Apache License 2.0.
local tparser = require 'gluon.web.template.parser'
local unistd = require 'posix.unistd'
return function(config)
local i18ndir = config.base_path .. "/i18n"
local function i18n_file(lang,... | nilq/small-lua-stack | null |
-- make the selected dwarf 20 years old
-- by vjek
--[====[
rejuvenate
==========
Set the age of the selected dwarf to 20 years. Useful if valuable citizens are
getting old, or there are too many babies around...
]====]
function rejuvenate()
local current_year,newbirthyear
unit=dfhack.gui.getSe... | nilq/small-lua-stack | null |
object_mobile_dressed_bh_female_zab_01 = object_mobile_shared_dressed_bh_female_zab_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bh_female_zab_01, "object/mobile/dressed_bh_female_zab_01.iff")
| nilq/small-lua-stack | null |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client\widgets\admin_messagebox.lua
*
* Original File by lil_Toady
*
**************************************]]
MB_WARNING = 1
MB_ERROR = 2
MB_QUESTION = 3
MB_INFO = 4
MB_YESNO = 1
MB_OK = 2
aMessageBox = {
type = { "warning", "error", "que... | nilq/small-lua-stack | null |
--make crazy particles
minetest.register_on_dignode(function(pos, oldnode, digger)
if minetest.registered_nodes[oldnode.name] == nil then
return
end
local tile = minetest.registered_nodes[oldnode.name].tiles
mining_particle_explosion(tile,pos,15,0.5,1,10)
end)
--loops is how different the particles a... | nilq/small-lua-stack | null |
TOOL.Category = "Poser"
TOOL.Name = "#tool.eyeposer.name"
TOOL.Information = {
{ name = "left" },
{ name = "right" }
}
local function SetEyeTarget( Player, Entity, Data )
if ( Data.EyeTarget ) then Entity:SetEyeTarget( Data.EyeTarget ) end
if ( SERVER ) then
duplicator.StoreEntityModifier( Enti... | nilq/small-lua-stack | null |
return require("leftry.utils").ipairs
| nilq/small-lua-stack | null |
function love.conf(t)
t.window.resizable = true
t.window.title = 'Ambilight Simulator'
t.modules.audio = false
t.modules.image = false
t.modules.joystick = false
t.modules.keyboard = false
t.modules.mouse = false
t.modules.physics = false
t.modules.sound = false
t.modules.s... | nilq/small-lua-stack | null |
include("util/cgg/build.lua")
definerule("build_cg",
{
arch = { type="string" }
},
function(e)
-- Remember this is executed from the caller's directory; local
-- target names will resolve there
local headers = clibrary {
name = e.name.."/headers",
srcs = {},
hdrs = {
"mach/proto/cg/*.h",
"m... | nilq/small-lua-stack | null |
local postgres_db = require "kong.dao.db.postgres"
describe("postgres_db", function()
describe("extract_major_minor()", function()
it("extract major and minor version digits", function()
assert.equal("9.4", postgres_db.extract_major_minor("9.4.11"))
assert.equal("9.4", postgres_db.extract_major_mino... | nilq/small-lua-stack | null |
-- This module is used for sending common CORS response header.
return function(origin)
if not origin then
origin = "*"
end
-- Pre-flight response
if ngx.req.get_method() == "OPTIONS" then
ngx.header["Access-Control-Allow-Origin"] = origin
ngx.header["Access-Control-Allow-Methods"] = "GET,POST,OPTI... | nilq/small-lua-stack | null |
local _M = {}
function _M:init_layer_max_map()
end
return _M | nilq/small-lua-stack | null |
local M = {
template_cmd = {
cargo = {
build = "cargo run",
test = "cargo test",
},
make = {
build = "make",
test = "make test",
run = "./main" -- Your executable here
},
npm = {
start = "npm run start",
dev = "npm run dev",
test = "npm run test",
... | nilq/small-lua-stack | null |
-- Copyright 2009-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local type, next, pairs, ipairs, loadfile, table, select
= type, next, pairs, ipairs, loadfile, table, select
local tonumber, tostring, math = tonumber, tostring, math
local pcall, require, setmetatable ... | nilq/small-lua-stack | null |
require "tundra.syntax.glob"
require "tundra.path"
require "tundra.util"
DefRule {
Name = "OpenCLCompile",
Command = "$(OPENCL_COMPILER) $(<) $(@)",
Blueprint = {
Source = { Required = true, Type = "string", Help = "Input filename", },
OutName = { Required = false, Type = "string", Help = "Output filename", },... | nilq/small-lua-stack | null |
dofile("test_setup.lua")
local file1 = [=[
local data = 1
return function()
return data
end
]=]
local file2 = [=[
local data = 2
return function()
return data
end
]=]
local func = DoFileString(file1)
assert(func() == 1)
ReloadFileString(file2)
assert(func() == 2)
ReloadFileS... | nilq/small-lua-stack | null |
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
return onUsePick(player, item, fromPosition, target, toPosition, isHotkey)
end
| nilq/small-lua-stack | null |
do
local circuit_2_tech = cflib.make_technology_name("circuit-2-technology")
local item_subgroup = cflib.add_item_subgroup{
name = "generator-2",
order = "c-2"
}
cflib.add_composite_generator{
name = "electricity-2-a",
energy_production = "380MW",
buffer_capacit... | nilq/small-lua-stack | null |
local number = 852
print(tonumber(string.reverse(tostring(number)))) | nilq/small-lua-stack | null |
if not RPGM.GetDefaultTeam() then
RPGM.AddTeam({
name = "Citizen",
category = "Citizens",
command = "citizen",
model = "models/player/gman_high.mdl",
color = Color(255, 255, 255),
extras = {
salary = 40
}
})
end
RPGM.AddTeam({
name = "Pol... | nilq/small-lua-stack | null |
-- includes
if _ACTION == "android-studio" then
require "android_studio"
end
dofile "premake/options.lua"
dofile "premake/globals.lua"
dofile "premake/app_template.lua"
-- solution
solution ("pmtech_tools_" .. platform)
location ("build/" .. platform_dir)
configurations { "Debug", "Release" }
buildoptions { build... | nilq/small-lua-stack | null |
local SinglePureCollection = {}
SinglePureCollection.__index = SinglePureCollection
function SinglePureCollection.new(pool)
return setmetatable({
_pool = pool
}, SinglePureCollection)
end
function SinglePureCollection:each(callback)
local objects = self._pool.objects
for i, entity in ipairs(self._pool.dense) d... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-- VEAF interpreter for DCS World
-- By Zip (2019)
--
-- Features:
-- ---------
-- * interprets a command and a position, and executes one of the VEAF script comm... | nilq/small-lua-stack | null |
return (function(self, name)
return api.CreateUIObject('texture', name, self)
end)(...)
| nilq/small-lua-stack | null |
package.path = '../?.lua;'..package.path
require "adventure"
Key = object:new("key", {description = "rusty old key",
longdescr = "A rusty old key, granting access to the outside world.",
pickup = function ()
room.all.hall.door.left.locked = false
print("You have the key!")
end,
putdown = function()
room.all.hall.do... | nilq/small-lua-stack | null |
local Entity = require'../entity'
local Class = require'../libs.hump.class'
HitBox = Class {
objType = 'HitBox'
}
function HitBox:init(obj,x,y,w,h,attack, debug)
self.name = "HitBox"
self.collType = "slide" -- default
self.obj = obj
self.x = x
self.y = y
self.w = w
self.h = h
self... | nilq/small-lua-stack | null |
ITEM.name = "Worker's Marseillaise"
ITEM.desc = "An old rusty cassette containing music"
ITEM.model = "models/z-o-m-b-i-e/metro_2033/mafony/m33_cassete_01.mdl"
ITEM.music = "cassettes/WorkersMarseillaise.mp3" | nilq/small-lua-stack | null |
-- Pretty-Printed using HW2 Pretty-Printer 1.27 by Mikail.
-- CpuBuild_Resourcing.lua
--
-- This file is responsible for determining what the CPU player should be building (ships and subsystems) in regards to resourcing
--
aitrace("LOADING CPU RESOURCING")
function ... | nilq/small-lua-stack | null |
----------------------------
-- SSBase --
-- Created by Skeyler.com --
----------------------------
local IsValid, ValidPanel = IsValid, ValidPanel
local color_label = Color(242, 242, 242)
local color_shadow = Color(0, 0, 0, 180)
SS.Scoreboard = {}
SS.Scoreboard.ROW_LEFT = 1
SS.Scoreboard.ROW_RI... | nilq/small-lua-stack | null |
--Displays the current life percentage for each player
local function PLife(pn)
return STATSMAN:GetCurStageStats():GetPlayerStageStats(pn):GetCurrentLife() or 0
end;
local t = Def.ActorFrame {}
local bareBone = isBareBone()
local function lifeBar(pn)
local t = Def.ActorFrame {
InitCommand = function(self) self:q... | nilq/small-lua-stack | null |
local K, C = unpack(KkthnxUI)
local Module = K:GetModule("Chat")
local _G = _G
local string_gmatch = _G.string.gmatch
local string_gsub = _G.string.gsub
local string_match = _G.string.match
local string_trim = _G.string.trim
local ChatFrame_AddMessageEventFilter = _G.ChatFrame_AddMessageEventFilter
-- replace emojis... | nilq/small-lua-stack | null |
local floor = math.floor
local vector3 = vector3
local SetCamRot = SetCamRot
local IsCamActive = IsCamActive
local SetCamCoord = SetCamCoord
local LoadInterior = LoadInterior
local SetFocusArea = SetFocusArea
local LockMinimapAngle = LockMinimapAngle
local GetInteriorAtCoords = GetInteriorAtCoords
local LockMinimapPosi... | nilq/small-lua-stack | null |
--[[
----------------------------------------------------------------------------
App um Notizen zu dem Modellen anzuzeigen und abzuspeichern, in max. 10 Zeilen und 10 Spalten
----------------------------------------------------------------------------
MIT License
Permission is hereby granted, free of ch... | nilq/small-lua-stack | null |
object_intangible_beast_bm_wampa = object_intangible_beast_shared_bm_wampa:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_wampa, "object/intangible/beast/bm_wampa.iff")
| nilq/small-lua-stack | null |
local datetime = require "datetime"
local os = require "os"
local smtp = require "smtp"
local shortport = require "shortport"
local stdnse = require "stdnse"
local base64 = require "base64"
local smbauth = require "smbauth"
local string = require "string"
description = [[
This script enumerates information from remot... | nilq/small-lua-stack | null |
--[[
Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
A copy of the MIT License is included in this file.
Terms of the MIT License:
-------------... | nilq/small-lua-stack | null |
require "lib.classes.class"
local NullBehavior = require "lib.physics.behaviors.NullBehavior"
require "Global.application.application"
--------------------------------------------------------------------------------------------------------
-- class: StaticBehavior
-- param: group:str -> the common group of the objects... | nilq/small-lua-stack | null |
--[[
Utility methods for use elsewhere
Arsenio Santos
https://github.com/arsenio/Region-Playlists
]]--
math.randomseed(os.time())
local util = {}
function util.is_empty(s)
return (not s or s == "")
end
function util.trim(s)
if util.is_empty(s) then
return ""
end
return (s:gsub("^%s*(.-)%s*$", "%1"))
en... | nilq/small-lua-stack | null |
function onCreate()
--Background stuff
makeLuaSprite('back','stages/iglesia/bg',-550, -1030);
addLuaSprite('back',false);
scaleObject('back', 1.35, 1.35);
setLuaSpriteScrollFactor('back', 1, 1);
--Effect stuff
makeLuaSprite('blammedLightsBlack','stages/iglesia/blackwall',-640, -360);
addLuaSprite('blamm... | nilq/small-lua-stack | null |
local table_insert = table.insert
return {
ignore={
-- optimization=true,
-- debug=true, -- reserved
msvc_isystem={external_as_include_system_flag=true},
},
_option_strs = {},
start=function(_, optprefix)
_:_vcond_init({
_not='not',
_and='and',
_or='or',
openblock='',
... | nilq/small-lua-stack | null |
object_tangible_furniture_city_road_torch_6x32_03 = object_tangible_furniture_city_shared_road_torch_6x32_03:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_city_road_torch_6x32_03, "object/tangible/furniture/city/road_torch_6x32_03.iff")
| nilq/small-lua-stack | null |
-- save old require
local oldRequire = require
local function name (moduleName)
local octopusHostDir = ngx.var.octopusHostDir
return octopusHostDir .. ":" .. moduleName
end
package.loaded.MODULES = {}
local function loadModules ()
local octopusHostDir = ngx.var.octopusHostDir
local MODULES = package.loaded.MODU... | nilq/small-lua-stack | null |
--[[
版本保存
]]
local Version = class("Version", function()
local node = display.newNode()
return node
end)
function Version:ctor()
self:retain()
local sp = ""
local fileUitls=cc.FileUtils:getInstance()
--保存路径
self._path = device.writablePath..sp.."version.plist"
--保存信息
self._versionInfo = fileUitls:g... | nilq/small-lua-stack | null |
-- Configuration of vim-fugitive
vim.api.nvim_set_keymap('n', '<leader>gs', ':G<CR>', {noremap = true})
| nilq/small-lua-stack | null |
--These cover the edge of the screen in widescreen modes.
local innerColor = color "#0FB7BF"
local edgeColor = color "#043033"
local f = Def.ActorFrame{}
if SCREEN_WIDTH > SCREEN_WIDTH_43 then
local coverWidth = (SCREEN_WIDTH-SCREEN_WIDTH_43)/2
local quadDefs = {
{x=SCREEN_LEFT, flip=false},
{x=SCREEN_RIGHT, f... | nilq/small-lua-stack | null |
local Vae = torch.class("Vae")
local c = require 'trepl.colorize'
require 'nngraph'
require 'nnutils.init'
function Vae:__init(struct)
-- build model
self.encoder, self.decoder, self.model = self:build(struct)
self.kld = nn.KLDCriterion()
self.rec = nn.BCECriterion()
self.kldWeight = 1
self.recWeight... | nilq/small-lua-stack | null |
local energy_source = require("prototypes.parts.energy_source")
function makeEntity(args)
local cat = args.cat
local raw = args.raw
local name = args.name
local speed = args.speed
local energy = args.energy
local modSlots = args.modSlots
local ingredients = args.ingredients
local iconTint = args.iconTi... | nilq/small-lua-stack | null |
local registredOpcodes = nil
local ServerPackets = {
DailyRewardCollectionState = 0xDE,
OpenRewardWall = 0xE2,
CloseRewardWall = 0xE3,
DailyRewardBasic = 0xE4,
DailyRewardHistory = 0xE5,
RestingAreaState = 0xA9,
BestiaryData = 0xd5,
BestiaryOverview = 0xd6,
BestiaryMonsterData = 0xd7,
BestiaryCharmsData = 0x... | nilq/small-lua-stack | null |
----------------
-- Kbdd widget--
----------------
-- Copyright (c) 2012-2015 Vladimir Gorbunov
-- Release under MIT license, see LICENSE file for more details
local wibox = require("wibox")
local awful = require('awful')
local utils = require("fainty.utils")
local setmetatable = setmetatable
local tonumber = tonumber... | nilq/small-lua-stack | null |
local talkback = {
_VERSION = 'Talkback v1.0.1',
_DESCRIPTION = 'A tiny observer pattern library for Lua',
_URL = 'https://github.com/tesselode/talkback',
_LICENSE = [[
The MIT License (MIT)
Copyright (c) 2015 Andrew Minnich
Permission is hereby granted, free of charge, to any pers... | nilq/small-lua-stack | null |
local lume = dtrequire("lib.lume")
local Agent, State = dtrequire("agent").common()
local Tool = dtrequire("keikaku.interactable").Tool
local ResourcePicker = dtrequire("keikaku.ResourcePicker")
local resource = dtrequire("resource")
local Instantiate = Tool:subtype("droptune.keikaku.tools.Instantiate")
do
local i... | nilq/small-lua-stack | null |
print("# config i2c")
i2c_id = 0
local i2c_sda = 6
local i2c_scl = 5
print("i2c_id: "..i2c_id.." i2c_sda: "..i2c_sda.." i2c_scl: "..i2c_scl)
i2c.setup(i2c_id, i2c_sda, i2c_scl, i2c.SLOW)
-- Wrapping I2C functions to retain original calls
Wire = {}
function Wire.beginTransmission(ADDR)
i2c.start(i2c_id)
i2c.... | nilq/small-lua-stack | null |
local DEMO = {}
DEMO.Title = "Sand"
DEMO.Author = "Capsadmin"
local lines =
{
--surface.GetTextureID("sprites/laser"),
--surface.GetTextureID("sprites/bluelaser"),
surface.GetTextureID("effects/laser1"),
surface.GetTextureID("trails/laser"),
}
local sprites =
{
surface.GetTextureID("particle/fire"),
}
local wh... | nilq/small-lua-stack | null |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("moonpie.test_helpers.string_assertions", function()
it("can check if a string contains a string", function()
assert.contains("ab", "foo-ab-bar")
assert.not_cont... | nilq/small-lua-stack | null |
--[[
* ReaScript Name: Insert FX
* Description: Insert FX on selected tracks. FX name is can be edited witing the script code.
* Instructions: Run
* Author: X-Raym
* Author URI: http://extremraym.com
* Repository: GitHub > X-Raym > EEL Scripts for Cockos REAPER
* Repository URI: https://github.com/X-Raym/REAPER-... | nilq/small-lua-stack | null |
function atComma(str, md)
if not md then md = "," end
local word = {}
local thisWord = 1
for wordd in string.gmatch(str, '([^'..md..']+)') do
word[thisWord] = wordd
thisWord = thisWord + 1
end
return word
end
function round(x)
if x%2 ~= 0.... | nilq/small-lua-stack | null |
ip2proxy = require('ip2proxy')
local ip2prox = ip2proxy:open('./IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.BIN')
local result = ip2prox:get_all('37.252.228.50')
print("country_short: " .. result.country_short)
print("country_long: " .. result.country_long)... | nilq/small-lua-stack | null |
-- SPDX-License-Identifier: MIT
-- Copyright (c) 2014-2020 Iruatã Martins dos Santos Souza
local data = require'data'
local np = {}
-- message types
local Tversion = 100
local Rversion = 101
local Tauth = 102
local Rauth = 103
local Tattach = 104
local Rattach = 105
local Rerror = 107
local Tflush = 108
... | nilq/small-lua-stack | null |
local _M = {}
local http = require "libs.http"
local config_util = require "libs.agollo.util"
local cjson_safe = require "cjson.safe"
local ltn12 = require("ltn12")
local Value = require "libs.agollo.value"
local common_util = require "libs.util.common_util"
function _M.new(nameSpace, app_id)
if not nameSpace or ... | nilq/small-lua-stack | null |
local response = require 'http.functional.response'
local describe, it, assert = describe, it, assert
describe('http.functional.response', function()
it('', function()
assert.not_nil(response)
end)
end)
| nilq/small-lua-stack | null |
local U = require'snippets.utils'
local markdown = {
}
local m = {}
m.get_snippets = function()
return markdown
end
return m
--[[
autocmd Filetype markdown,rmd map <leader>w yiWi[<esc>Ea](<esc>pa)
autocmd Filetype markdown,rmd inoremap ,n ---<Enter><Enter>
autocmd Filetype markdown,rmd inoremap ,b ****<++><Esc>F... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmRandomByWeight",
targetAniEffect = "",
arg_list = {
delay = 0.8,
emitter = "BattleBulletEmitter",
weapon_id = 64391
}
},
{
type = "BattleSkillFire",
casterAn... | nilq/small-lua-stack | null |
--STD addon for Turtles by Microeinstein
loadfile("std")()
__turtle = {}
if not turtle then
error("This is not a turtle.")
end
turtle.faces = turtle.faces or {
N = 0,
E = 1,
S = 2,
W = 3,
U = 4,
D = 5
}
turtle.side = turtle.side or 0
turtle.oldSlot = turtle.oldSlot or {x = 1, y = 1}
turtle.slot = turtle.slot... | nilq/small-lua-stack | null |
--------------------------------
-- @module JumpTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
---@class cc.JumpTiles3D:cc.TiledGrid3DAction
local JumpTiles3D = {}
cc.JumpTiles3D = JumpTiles3D
--------------------------------
--- brief Set the amplitude rate of the effect.
--- param amplitudeRate The valu... | nilq/small-lua-stack | null |
insulate("documentation on Storage", function()
require "init"
require "spec.mocks"
require "spec.asserts"
require "spec.universe"
it("new", function()
local printedLines = {}
local print = function(string)
table.insert(printedLines, string)
end
local s... | 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.