content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
gametable = {
screenwidth = 640, screenheight = 480, state = 0
}
| nilq/small-lua-stack | null |
local map = require("utils").map
-- create mappings for running python scripts
-- make sure script contains the shebang specifying the interpreter &,
-- the scpript has the executable permission
map("n", "<C-_>", ":TermExec cmd='./%'<CR>", {})
| nilq/small-lua-stack | null |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
--
-- CHG is a container format file used by
-- [MONOMAKH-SAPR](https://www... | nilq/small-lua-stack | null |
--[[
A Classic Fairytale: Backstab
= SUMMARY =
It is revealed that there's a traitor among the natives.
Player decides whether to kill him or not.
After this, the natives must defeat 3 waves of cannibals.
= FLOW CHART =
== Linear events ==
- Cut scene: startScene (traitor is revealed)
- Player is instructed to deci... | nilq/small-lua-stack | null |
-- Copyright (c) 2016 Thermo Fisher Scientific
--
-- 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, ... | nilq/small-lua-stack | null |
MINIGAME.Base = "base"
MINIGAME.Unique = "headsup"
MINIGAME.Name = "Heads up"
MINIGAME.Description = "Bombs drop from the sky, last one alive wins."
MINIGAME.Author = "Chewgum" | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
require('strict').on()
if package.setsearchroot ~= nil then
package.setsearchroot()
else
local fio = require('fio')
local app_dir = fio.abspath(fio.dirname(arg[0]))
print('App dir set to ' .. app_dir)
package.path = app_dir .. '/?.lua;' .. package.path
package.path = a... | nilq/small-lua-stack | null |
-- Project: OiL - ORB in Lua: An Object Request Broker in Lua
-- Release: 0.6
-- Title : Socket API Wrapper
-- Authors: Renato Maia <maia@inf.puc-rio.br>
local _G = require "_G" --[[VERBOSE]] local verbose = require "oil.verbose"
local error = _G.error
local pa... | nilq/small-lua-stack | null |
-- CONSTANTS
local STRIP = {
["Part"] = true,
["MeshPart"] = true,
["Motor6D"] = true,
["Humanoid"] = true,
}
local CONSTANTS = require(script.Parent:WaitForChild("Constants"))
local ZERO3 = Vector3.new(0, 0, 0)
local UNIT_X = Vector3.new(1, 0, 0)
local UNIT_Y = Vector3.new(0, 1, 0)
local VEC_XZ = Vector3.new(1,... | nilq/small-lua-stack | null |
local majjoha = {}
majjoha.open_current_as_new_tab = function()
local current_pos = vim.fn.getcurpos()
vim.cmd([[tabedit %]])
vim.fn.setpos(".", current_pos)
end
majjoha.customize_colors = function()
-- Highlight current line number, and set the background color to transparent
vim.highlight.create("CursorLi... | nilq/small-lua-stack | null |
posX = 0
posY = 0
ID = 0
macroF = 0
timeRes = 0
maxCap = 0 -- maximum capacity
coop = 0 -- mode
comScope = 0 -- comunication scope
time = 0 -- time passed
cap = 0 -- current capacity
startup = true -- to spawn the
cId = 0 -- company id
bId = 0 -- base id
explorers = 0
transporters = 0
deliveryOre = 0 -- ore delivered ... | nilq/small-lua-stack | null |
PLUGIN.name = "Multiple Characters"
PLUGIN.author = "Cheesenut"
PLUGIN.desc = "Allows players to have multiple characters."
nutMultiChar = PLUGIN
if (SERVER) then
function PLUGIN:syncCharList(client)
if (not client.nutCharList) then return end
net.Start("nutCharList")
net.WriteUInt(#client.nutCharList, 32)
... | nilq/small-lua-stack | null |
return {
init_effect = "",
name = "运输船直线离场",
time = 10,
picture = "",
desc = "运输船直线离场",
stack = 1,
id = 8012,
icon = 8012,
last_effect = "",
effect_list = {
{
type = "BattleBuffFixVelocity",
trigger = {
"onAttach",
"onStack",
"onRemove"
},
arg_list = {
add = 0,
mul = -5000
... | nilq/small-lua-stack | null |
require("prototypes.equipment")
require("prototypes.equipment-grid")
require("prototypes.item")
require("prototypes.recipe")
require("prototypes.technology") | nilq/small-lua-stack | null |
function setupWifi()
-- Connect to the wifi network
print("wifi on")
wifi.setmode(wifi.STATION)
wifi.setphymode(wifi_signal_mode)
wifi.sta.config(wifi_SSID, wifi_password)
wifi.sta.connect()
if client_ip ~= "" then
wifi.sta.setip({ip=client_ip,netmask=client_netmask,gateway=client_ga... | nilq/small-lua-stack | null |
--[[
-------------------------------------------------------------------------------
Menori
@author rozenmad
2020
-------------------------------------------------------------------------------
]]
local modules = (...):match('(.*%menori.modules.)')
local class = require (modules .. 'libs.class')
local ffi
if type(... | nilq/small-lua-stack | null |
module("testScene", package.seeall)
function P(fileName)
if fileName then
return ScutDataLogic.CFileHelper:getPath(fileName)
else
return nil
end
end
------文字资源-------------------------
IDS_JINDOU = "金豆"
IDS_JIFEN = "积分"
IDS_JINGYAN = "经验"
IDS_SORCE = "分数:"
IDS_NICKNAME = "... | nilq/small-lua-stack | null |
--// File Name: Luanoid (Based on Cardinoid, separated from Cardinal Engine and built in a proper class structure.)
--// Creator: Rythian Smythe / Rythian2277
--// Date: April 18, 2021
type Target = BasePart | Vector3
type CustomAccessory = Accessory | Model | BasePart
local RunService = game:GetService("RunService")... | nilq/small-lua-stack | null |
function split(s, delimiter)
local result = {};
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(result, match);
end
return result
end
function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
function getPos(playerid, text)
local command = trim(text)
... | nilq/small-lua-stack | null |
local function repairVehicle(vehicle, closeDoors, serverSide)
if not isElement(vehicle) then
return
end
if vehicle.blown then
return
end
-- Восстановить hp
vehicle.health = 1000
-- Починить фары
for i = 0, 3 do
setVehicleLightState(vehicle, i, 0)
end
-... | nilq/small-lua-stack | null |
module(...,package.seeall)
require "lvsym"
function create()
scr = lvgl.cont_create(nil, nil)
list = lvgl.list_create(scr, nil)
lvgl.obj_set_size(list, 100, 140)
lvgl.obj_align(list, nil, lvgl.ALIGN_CENTER, 0, 0)
lvgl.list_add_btn(list, lvgl.SYMBOL_LIST, "我是列表")
lvgl.list_add_btn(lis... | nilq/small-lua-stack | null |
-- =================================
-- NADMOD PP - Prop Protection
-- By Nebual@nebtown.info 2012
-- Menus designed after SpaceTech's Simple Prop Protection
-- =================================
if !NADMOD then
NADMOD = {}
NADMOD.PropOwners = {}
NADMOD.PPConfig = {}
NADMOD.Friends = {}
end
local Props = NADMOD.Pr... | nilq/small-lua-stack | null |
return {'teil','teilen','teint','teisteren','teistering','teis','teisman','teitsma','teiwes','teixeira','teiltje','teiltjes','teisterde','teisterden','teisteringen','teistert','teis'} | nilq/small-lua-stack | null |
local api= vim.api
local window = require('lspsaga.window')
local saga = require('lspsaga')
local wrap = require('lspsaga.wrap')
local code_actions = {}
local contents_bufnr,contents_winid,border_winid
local function code_action(context)
vim.validate { context = { context, 't', true } }
context = context or { dia... | nilq/small-lua-stack | null |
return {
inactive = 0,
failure = 1,
success = 2,
running = 3,
} | nilq/small-lua-stack | null |
_libs = _libs or {}
_libs.event_items = true
_libs.lists = _libs.lists or require 'lists'
--[[
List of items currently storable with event storage NPC:
Furnishings 1
1. 86 San d'Orian holiday tree
2. 115 Bastokan holiday tree
3. 116 Windurstian holiday tree
4. 87 Kadomatsu
5. 117 Wing egg
6. 1... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0083-Expandable-design-for-proprietary-data-exchange.md
-- User story:TBD
-- Use case:TBD
--
-- Requirement summary:
-- TBD
--
-- Descri... | nilq/small-lua-stack | null |
local wk = require "which-key"
local util = require "util"
vim.o.timeoutlen = 300
local presets = require "which-key.plugins.presets"
presets.objects["a("] = nil
wk.setup {
show_help = false,
triggers = "auto",
plugins = { spelling = true },
key_labels = { ["<leader>"] = "SPC" },
}
-- disable macros
util.nma... | nilq/small-lua-stack | null |
local url = require "socket.url"
local string_format = string.format
local kong_response = kong.response
local get_headers = ngx.req.get_headers
local get_method = ngx.req.get_method
local ngx_re_match = ngx.re.match
local ngx_re_find = ngx.re.find
local HTTP = "http"
local HTTPS = "https"
local function parse_url... | nilq/small-lua-stack | null |
local api = vim.api
local fn = vim.fn
local M = {}
local group = 'Foldsigns'
local config = {}
local function sign_get(buf, lnum, opts)
opts = opts or {}
opts.group = opts.group or '*'
local res = fn.sign_getplaced(buf, {group=opts.group, lnum=lnum})[1].signs
if opts.exclude then
for i, s in ipairs(res) ... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local ToastBox = class('ToastBox')
local utils = require('utils.utils')
local TOAST_BOX_ACTION_TAG = 0x10001
local LOADING_ACTION_TAG = 0x10002
function ToastBox.extend(target, ...)
local t = tolua.getpeer(target)
if not t then
t = {}
tolua.setpeer(target, t)
e... | nilq/small-lua-stack | null |
--[[
# Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights
# reserved.
#
# This file contains proprietary Detector Content created by Cisco Systems,
# Inc. or its affiliates ("Cisco") and is distributed under the GNU General
# Public License, v2 (the "GPL"). This file may also include Detector Co... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local checks = {}
local function get_error_message(v)
-- TODO: windows error formatting
return string.format('error code 0x%08X', v)
end
function checks.success(v)
if v == 0 then
return true
else
return false, get_error_message(v)
end
end
function checks.out(type, callback)
loca... | nilq/small-lua-stack | null |
ForbiddenArea=
{
Server={},
Client={},
Editor={
--Model="Editor/Objects/ForbiddenArea.cgf",
Icon="forbiddenarea.bmp",
},
type = "ForbiddenArea",
Properties=
{
bEnabled=1,
bReversed=1,
DamagePerSecond=35,
esDamageType="punish",
Delay=5,
bShowWarning=1,
bInfiniteFall=0,
teamName="",
ove... | nilq/small-lua-stack | null |
local tostring = tostring
-- Localize
local cwd = (...):gsub("%.[^%.]+$", "") .. "."
local default_options = require("db.default_mongodb_options")
local model = require(cwd .. "MongoModel")
local _M = {
colName = "users"
}
function _M.create()
local h = model:new(default_options)
local col = h:getCol(_M.... | nilq/small-lua-stack | null |
-----------------------------------------------
-- swordItem.lua
-- The code for the sword, when it is in the player's inventory.
-- Created by NimbusBP1729
-----------------------------------------------
return{
name = 'crimson_sword',
description = 'Crimson Sword',
type = 'weapon',
subtype = 'melee',
damag... | nilq/small-lua-stack | null |
package.path = "../?.lua;"..package.path;
local FontMonger = require("FontMonger")
local fm = FontMonger:new()
local function printFaceData(facedata)
local i = facedata.info
print(" FACE: ", facedata.face);
print(" Sizes: ", facedata.sizes, #facedata.sizes);
print(" postscript: ", i.postscr... | nilq/small-lua-stack | null |
--
-- _vstudio.lua
-- Define the Visual Studio 200x actions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
premake.vstudio = { }
local vstudio = premake.vstudio
--
-- Map Premake platform identifiers to the Visual Studio versions. Adds the Visual
-- Studio specific "any" and "mixed" to make s... | nilq/small-lua-stack | null |
-- ======================================= --
-- Symmetool Mirror v1.5.1
-- (c)2019 Nigel Garnett.
-- ======================================= --
-- User Settable Variables
-- ======================================= --
local max_range = 50
local length = 2
local axis_colors = {x = "#FF0000", y = "#00FF00", z = "#0000FF"... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_kashyyyk_loot_uwari_blood = object_tangible_loot_creature_loot_kashyyyk_loot_shared_uwari_blood:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_uwari_blood, "object/tangible/loot/creature_loot/kashyyyk_loot/uwari_blood.iff") | nilq/small-lua-stack | null |
---@class hleaderBoard 排行榜
hleaderBoard = {}
---@private
hleaderBoard.LeaderboardResize = function(lb)
local size = cj.LeaderboardGetItemCount(lb)
if cj.LeaderboardGetLabelText(lb) == "" then
size = size - 1
end
cj.LeaderboardSetSizeByItemCount(lb, size)
end
--- 根据玩家创建排行榜
---@alias hleaderBoar... | nilq/small-lua-stack | null |
function run.init(sx, sy, fx, fy, fw, fh, wallDetect)
function bindings.playerInit(p)
p:stats().mapTime = {min = 0, sec = 0, msec = 0}
p:stats().bestMapTime = {min = 99, sec = 99, msec = 999}
p:stats().lastMapTime = {min = 0, sec = 0, msec = 0}
end
function updateMapTime(p)
local s = p:stats()
if p:w... | nilq/small-lua-stack | null |
return {
{
desc = "炮击时有5%概率发动,机动属性上升30.0%,持续8秒",
addition = {
"30.0%(+3.3%)"
}
},
{
desc = "炮击时有5%概率发动,机动属性上升33.3%,持续8秒",
addition = {
"33.3%(+3.3%)"
}
},
{
desc = "炮击时有5%概率发动,机动属性上升36.6%,持续8秒",
addition = {
"36.6%(+3.3%)"
}
},
{
desc = "炮击时有5%概率发动,机动属性上升39.9%,持续8秒",
addition = {
... | nilq/small-lua-stack | null |
return {[[
1
// oneline
// another line
1 /* block */ 1/* multiple
lines
*/1
TODO get life
2 FIXME should be 3
3 XXX do not commit
1
TODO
1 FIXME
//
/**/
/*
*/
]],
{
{"get", {"num", "1"}},
{"get", {"num", "1"}},
{"get", {"num", "1"}},
{"get", {"num", "1"}},
{"task", "todo", "get life"},
{"get", ... | nilq/small-lua-stack | null |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... | nilq/small-lua-stack | null |
function Spawn( kv )
if not IsServer() then
return
end
if thisEntity == nil then
return
end
thisEntity.bForceKill = false
thisEntity:SetContextThink( "TempleGuardianSpawnerThink", TempleGuardianSpawnerThink, 1 )
end
function TempleGuardianSpawnerThink()
if not thisEntity.bInitialized then
thisEntity.... | nilq/small-lua-stack | null |
function TestGlobalFunction()
MsgBox("TestGlobalFunction2222");
end | nilq/small-lua-stack | null |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2016 (All Rights Reserved)
-- =============================================================
-- Last Updated: 29 NOV 2016
-- Last Updated: 29 NOV 2016
-- ============================================================... | nilq/small-lua-stack | null |
LinkLuaModifier( "modifier_item_heart_transplant", "items/heart_transplant.lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_item_heart_transplant_debuff", "items/heart_transplant.lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_item_heart_transplant_buff", "items/heart_transplant.lua", LUA_MODIFIE... | nilq/small-lua-stack | null |
--[[
wowmock - WoW environment mock
Copyright 2014 Adirelle (adirelle@gmail.com)
See LICENSE for usage.
--]]
package.path = package.path .. ';../?.lua'
local LuaUnit = require('luaunit')
local wowmock = require('wowmock')
tests = {}
function tests:test_pass_arguments()
assertEquals(wowmock('fixtures/checkargs.lua',... | nilq/small-lua-stack | null |
return {'kaolien','kaoline'} | nilq/small-lua-stack | null |
local Camera = {}
Camera.__index = Camera
function Camera.New()
local inst = {}
setmetatable(inst, Camera)
inst:ctor()
return inst
end
function Camera:ctor()
self.transform = FourFourMatrix.New()
self.invTransform = FourFourMatrix.New()
self.rotation = Quaternion.New()
self.projection = FourFourMatrix.... | nilq/small-lua-stack | null |
PROJECT = "ntpp"
VERSION = "1.0.0"
local sys = require "sys"
sys.taskInit(
function()
log.info("wlan", "wlan_init:", wlan.init())
log.info("mode", wlan.setMode(wlan.STATION))
log.info("connect", wlan.connect("xxxx", "123456789"))
-- 等待连上路由,此时还没获取到ip
result, _ = sys.waitUnti... | nilq/small-lua-stack | null |
local answerModule = require "module.answerModule"
local timeModule = require "module.Time"
local weekAnswerFrame = {}
function weekAnswerFrame:Start()
self:initData()
self:initUi()
end
function weekAnswerFrame:moveUI()
self.view.weekAnswerFrameRoot.infoBtn[UnityEngine.RectTransform].anchoredPosition=Unit... | nilq/small-lua-stack | null |
-- The bouncing bullets attack from the documentation example.
spawntimer = 0
bullets = {}
function Update()
spawntimer = spawntimer + 3
if spawntimer%30 == 0 then
local posx = 30 - math.random(60)
local posy = Arena.height/2
local bullet = CreateProjectile('bullet', posx, posy... | nilq/small-lua-stack | null |
local modules = require(game:GetService("ReplicatedStorage"):WaitForChild("modules"))
local projectile = modules.load("projectile")
local placeSetup = modules.load("placeSetup")
local client_utilities = modules.load("client_utilities")
local network = modules.load("network")
local abilityData = {
--> ide... | nilq/small-lua-stack | null |
-- Converters
local Convert = { }
Convert.CELSIUS = 1
Convert.FAHRENHEIT = 2
-- +10 for metric distances
Convert.MILIMETER = 11
Convert.CENTIMETER = 12
Convert.METER = 13
-- +20 for imp distances
Convert.INCH = 21
Convert.FOOT = 22
Convert.YARD = 23
-- +30 metric weight
Convert.GRAM = 31
Convert.CENTIGRAM = 32
Conv... | nilq/small-lua-stack | null |
-- Exercise 1.6: How can you check whether a value is a Boolean
-- without using the function ‘type’?
-- Both predicate functions below are correct ways to do that.
function is_boolean (x)
return x == true
or x == false
end
function is_boolean (x)
return not not x == x
end
| nilq/small-lua-stack | null |
require "System"
System.Test = System.Object:new()
function System.Test.add_notify_System_TestDel(value)
do
_notify = System.TestDel.op_Addition(_notify,value);
end
end
function System.Test.remove_notify_System_TestDel(value)
do
_notify = System.TestDel.op_Substraction(_notify,value);
end
end
function System.T... | nilq/small-lua-stack | null |
Ray=class({
property={
distanceToPoint=function()
end,
intersectSphere=function()
end
}
}) | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- 0370-ordered_named_cat_manager.lua: tests for ordered named cat manager
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
--------------------------------------------... | nilq/small-lua-stack | null |
function GM:PlayerHurt(victim, attacker)
if (attacker:IsPlayer()) then
if (tonumber(victim:GetNWInt( "shield-lives" )) > 0) then
victim:SetNWInt( "shield-lives", victim:GetNWInt( "shield-lives") - 1)
else
victim:SetNWInt("lives", victim:GetNWInt("lives") - 1)... | nilq/small-lua-stack | null |
object_tangible_food_bar_drink_bar_s04 = object_tangible_food_bar_shared_drink_bar_s04:new {
}
ObjectTemplates:addTemplate(object_tangible_food_bar_drink_bar_s04, "object/tangible/food/bar/drink_bar_s04.iff")
| nilq/small-lua-stack | null |
local theme = require(script.Parent.Parent.Themes.Current)
script.CameraButtonTemplate.BackgroundColor3 = theme.Base
script.CameraButtonTemplate.TextColor3 = theme.BaseText
return function(name:string)
local copy = script.CameraButtonTemplate:Clone()
copy.Text = name
return copy
end | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Administrator.
--- DateTime: 2018/6/15 17:15
---
local YK = require("Core.YK")
---@class SceneBaseLua : YKSupportLua.LuaSceneBase
local this = YK.Scene_class()
--[[
默认的构造函数
]]--
---@param ins YKSupportLua.LuaSceneBase
function this:ctor(ins)
... | nilq/small-lua-stack | null |
-- settings.lua
-- holds our settings
--[[
Types:
* bool-setting
* int-setting
* double-setting
* string-setting
]]--
--[[
Setting_types :
* startup: This kind of setting is available in the prototype stage, and can not be changed runtime.
They have to be set to the same values for all players on a server... | nilq/small-lua-stack | null |
local Subject = require 'reactivex.subjects/subject'
local Observer = require 'reactivex.observer'
local util = require 'reactivex.util'
--- @class BehaviorSubject
-- @description A Subject that tracks its current value. Provides an accessor to retrieve the most
-- recent pushed value, and all subscribers immediately ... | nilq/small-lua-stack | null |
return {
armgripn = {
acceleration = 0.175,
bankscale = 1,
blocking = false,
brakerate = 0.04,
buildcostenergy = 15509,
buildcostmetal = 325,
buildpic = "armgripn.dds",
buildtime = 20000,
canattack = true,
canfly = true,
canguard = true,
canmove = true,
canpatrol = true,
canstop = 1,
cate... | nilq/small-lua-stack | null |
--
-- tests/actions/xcode/test_xcode_dependencies.lua
-- Automated test suite for Xcode project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local suite = test.declare("xcode_deps")
local p = premake
local xcode = p.modules.xcode
-----------------------------------------------... | nilq/small-lua-stack | null |
object_static_particle_particle_exar_kun_eyes = object_static_particle_shared_particle_exar_kun_eyes:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_exar_kun_eyes, "object/static/particle/particle_exar_kun_eyes.iff")
| nilq/small-lua-stack | null |
--
-- Author: SunLightJuly
-- Date: 2014-07-31 11:16:16
--
local Hero = class("Hero", function()
return ccs.Armature:create("hero")
end)
function Hero:changeMount(armature)
if nil == armature then
--note
self:retain()
self:playWithIndex(0)
self._mount:getBone("hero"):removeDisp... | nilq/small-lua-stack | null |
class 'VehicleRadio'
function VehicleRadio:__init()
self.radio = nil
self.refresh = nil
self.radioname = "Магнитола: "
self.offname = "Выключено"
self.check = 0
self.cooldown = 0.5
self.cooltime = 0
if LocalPlayer:InVehicle() then
self.PreTickEvent = Events:Subscribe( "PreTick", self, self.P... | nilq/small-lua-stack | null |
local Broadcast = require("core.Broadcast")
return {
listeners = {
channelReceive = function(state)
return function(self, channel, sender, message)
if channel.name ~ -"say" then return end
if not message:upper():match("mellon") then return end
local downExit
for exit, _ in i... | nilq/small-lua-stack | null |
--[[
Name: cl_apps.lua
For: TalosLife
By: TalosLife
]]--
GM.Apps = (GAMEMODE or GM).Apps or {}
GM.Apps.m_tblRegister = (GAMEMODE or GM).Apps.m_tblRegister or {}
GM.Apps.m_tblRegister_Computer = (GAMEMODE or GM).Apps.m_tblRegister_Computer or {}
function GM.Apps:Load()
self:LoadComputerApps()
end
function GM.Apps... | nilq/small-lua-stack | null |
radio = 0
lawVehicles = { [416]=true, [433]=true, [427]=true, [490]=true, [528]=true, [407]=true, [544]=true, [523]=true, [470]=true, [598]=true, [596]=true, [597]=true, [599]=true, [432]=true, [601]=true }
function saveRadio(station)
local vehicle = getPedOccupiedVehicle(getLocalPlayer())
if (vehicle) then
... | nilq/small-lua-stack | null |
local NXFS = require "nixio.fs"
local SYS = require "luci.sys"
local HTTP = require "luci.http"
local DISP = require "luci.dispatcher"
local UTIL = require "luci.util"
m = Map("clash")
s = m:section(TypedSection, "clash")
s.anonymous = true
s.addremove=false
md = s:option(Flag, "proxylan", translate("Proxy Lan... | nilq/small-lua-stack | null |
--[[******************************
* *
* The FrostTeam Project *
* *
******************************
... | nilq/small-lua-stack | null |
return {
name = "Mosaic",
author = "evilnote4d",
version = "0.10",
data = [[
###############
###+###########
### ###&###k###
##~~~# # ##
#g~t~C x 1 x g#
##~~~# # ##
###A###t###B###
## # # ##
#r x 2 x 3 * r#
## # # ##
###g###$###@###
###########... | nilq/small-lua-stack | null |
require('LuaGameScripts\\GameObject')
GameObjects = {}
local newGameObject0 = GameObject:new()
newGameObject0.Position = { x = -4.5, y = 0, z = 5.5 }
newGameObject0.Rotation = { x = 0, y = 0, z = 0, w = 1 }
newGameObject0.Scale = { x = 1, y = 1, z = 1 }
newGameObject0.Type = 'SWITCH'
table.insert(GameObjects, newGameO... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 10/02/2018
-- Time: 14:23
-- To change this template use File | Settings | File Templates.
--
ACTIONLOOKUPLIST = ACTIONLOOKUPLIST or {}
local a = function(str, func) ACTIONLOOKUPLIST[str] = func end
a("rotateLeft", function(a)
scripts.actions.startActions... | nilq/small-lua-stack | null |
module 'mock'
---DEAD LOCK DEBUG HELPER
local DEADLOCK_THRESHOLD = 100
local DEADLOCK_TRACK = 5
local DEADLOCK_TRACK_ENABLED = true
--------------------------------------------------------------------
local function buildFSMScheme( scheme )
-- assert(targetClass,'Target Class required')
assert( scheme, 'FSM Dat... | nilq/small-lua-stack | null |
local crud = require "kong.api.crud_helpers"
local utils = require "kong.tools.utils"
local response = kong.response
--TODO: check params valid
return {
["/route-by-selector/"] = {
before = function(self, dao_factory, helpers)
local method = ngx.req.get_method()
if method =... | nilq/small-lua-stack | null |
---------------------------------------------------------------
-- Copyright 2021 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/deviap-main/blob/master/LICENSE --
... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Ragewing the Untamed", 1358, 1229)
if not mod then return end
mod:RegisterEnableMob(76585)
mod.engageId = 1760
mod.respawnTime = 11
----------------------------------------------... | nilq/small-lua-stack | null |
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- The lua module.
-- It provides utilities for editing Lua code.
module('_M.lua')]]
-- Autocompletion and documentation.
---
-- List of "fake" ctags files to use for autocompletion.
-- The kind ... | nilq/small-lua-stack | null |
local players = game:GetService("Players")
local r6, r15 = script.R6, script.R15
local api = {}
api.RigType = "r15"
local function CompileCharacter(user, outfit)
if user then
user = tostring(user)
local dummy = (api.RigType:lower() == "r15" and r15:Clone()) or r6:Clone()
local oldCF = nil
if not tonumber(... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Talon King Ikiss", 556, 543)
if not mod then return end
mod:RegisterEnableMob(18473)
mod.engageId = 1902
-- mod.respawnTime = 0 -- resets, doesn't respawn
------------------------... | nilq/small-lua-stack | null |
local o = vim.o
local wo = vim.wo
o.autowrite = true
o.updatetime = 100
o.ignorecase = true
o.timeoutlen = 300
o.backup = false
o.writebackup = false
-- o.syntax = 'on'
wo.number = true
wo.relativenumber = true
wo.cursorline = true
| nilq/small-lua-stack | null |
local tops = 8
local posx, posy = 0.55, 0.015
local sizex, sizey = 350, 46+15*(tops+3)
local image = 'backg1a.png'
local imageColor = tocolor(255,255,255,255)
local titleHeight = 38
local topsAreaHeight = 227
local personalTopHeight = 34
local monthlyTopHeight = 34
local textColor = tocolor(255,255,255)
local selfTextC... | nilq/small-lua-stack | null |
--! file: tree.lua
--
-- Scene file: Class to define the trees.
--
Tree = Object:extend()
function Tree:new(x, y)
self.image = love.graphics.newImage("assets/dummy_tree.png")
self.x = x
self.y = y
self.width = self.image:getWidth()
self.height = self.image:getHeight()
self.scale_x = GLOBAL.SCA... | nilq/small-lua-stack | null |
local ffi = require('ffi')
local C = ffi.C
local errors = require("levee.errors")
local Buffer = require("levee.d.buffer")
local iovec_size = ffi.sizeof("struct iovec")
local iovecp = ffi.typeof("struct iovec *")
local tmp_buf = Buffer()
local Iovec_mt = {}
Iovec_mt.__index = Iovec_mt
function Iovec_mt:__tostr... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Splash Breath
-- Deals Water damage in a fan-shaped cone area of effect.
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
--------------------------... | nilq/small-lua-stack | null |
ITEM.name = "Походный посох"
ITEM.desc = "Используется при долгих путешествиях."
ITEM.class = "nut_staff_wood"
ITEM.weaponCategory = "primary"
ITEM.price = 100
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/wooden/staff/w_wooden_staff.mdl"
ITEM.width = 6
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(-2.650163... | nilq/small-lua-stack | null |
if curBeat % 2 == 0 then
if mustHitSection == false then
health = getProperty('health')
if getProperty('health') > 0.3 and getProperty('boyfriend.curCharacter') ~= 'bf@NOWYOU' then
setProperty('health', health- 0.025);
end
end
elseif curBeat % 2 == 1 then
if mustHitSectio... | nilq/small-lua-stack | null |
local hc = require('lib/HC')
local binser = require('lib/binser')
local Vector = require('helper/Vector')
local ShipEntity = require("entities/ShipEntity")
local Laser = require("entities/weapons/Laser")
local Missile = require("entities/weapons/Missile")
local Mortar = require("entities/weapons/Mortar")
local Bouncy ... | nilq/small-lua-stack | null |
local lg = love.graphics
love.window.maximize()
local lineColor = {255, 255, 255, 255}
local tileSize = 64
local tilesN = 200
local tileMap = {}
local tiles = {}
local mode = "default"
local showGrid = true
modes = {
default = {},
chooseTile = {},
}
local EMPTY = 0
local CONNECTOR = -1
local LINE_END = -2
lo... | nilq/small-lua-stack | null |
local datamanager = require "util.datamanager";
local st = require "util.stanza";
local host = module.host;
module:hook("user-registered", function(event)
local username = event.username;
local data = datamanager.load(username, host, "account_details");
local vcard = datamanager.load(username, host, "vcard");
--mo... | nilq/small-lua-stack | null |
/*
* @package : rcore
* @module : base
* @extends : ulib
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (c) 2018 - 2020
* @since : 1.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
*
* MIT ... | nilq/small-lua-stack | null |
local textbox = require("textbox")
local demos = {
"basic",
"cursor",
"callback",
"console"
}
print("Enter a number, or press 'q' to quit:")
for key, value in ipairs(demos) do
print("\t" .. key .. ". " .. value)
end
local demo
while (true) do
local input = io.read()
if (input == "q") then
love.event.push... | nilq/small-lua-stack | null |
local sumneko_opts = {
settings = {
Lua = {
diagnostics = { globals = { "hs" } },
},
},
}
require("lvim.lsp.manager").setup("sumneko_lua", sumneko_opts)
| 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.