content stringlengths 5 1.05M |
|---|
-- Copyright (c) 2019 Phil Leblanc -- see LICENSE file
------------------------------------------------------------------------
--[[
Linux errno constants and text messages
e.g.:
errno.EPERM == 1
errno.ename(1) == "EPERM"
errno.msg(1) == "EPERM - Operation not permitted"
unknown errno values:
errno.ename(999... |
local Mulligrims = RegisterMod("Mulligrim", 1)
local mulligrimEntity = Isaac.GetEntityTypeByName("Mulligrim")
local mulligrimVariant = Isaac.GetEntityVariantByName("Mulligrim")
local spawnCD = 14
local FLAG_SPECTRAL = 1
local FLAG_PIERCING = 1<<1
--Mod Update
function Mulligrims:Update()
--Spawn to g... |
require("geometry")
local matrix = require("lua_matrix")
local symbol = matrix.symbol
table.sort(fe_constraints)
element_stiffness = {}
for i = 1,#fe_elems do
element_stiffness[i] = A*E/elem_length(fe_elems[i])
--print(element_stiffness[i])
end
theta = {}
for i = 1,#fe_elems do
theta[i] = elem_angle(fe_elems[i])
... |
---@class Babeltime.Log.BTLog
---@field IsMainThread bool
---@field level int
---@field OnLineDebugInfoOpen bool
local m = {}
---@param message string
function m.D(message) end
---@param message string
function m.I(message) end
---@param message string
function m.OnLineInfo(message) end
---@param format string
---@para... |
function TorpedoGenerator.generate(x, y, offset_in, rarity_in, warhead_in, body_in) -- server
local offset = offset_in or 0
local seed = rand:createSeed()
local sector = math.floor(length(vec2(x, y))) + offset
local dps, tech = Balancing_GetSectorWeaponDPS(sector, 0)
dps = dps * Balancing_GetSecto... |
--
-- Minetest advmarkers CSM
--
-- Copyright © 2019-2020 by luk3yx
--
advmarkers = {}
-- Get the mod storage
local storage = minetest.get_mod_storage()
-- Convert positions to/from strings
local abs, type = math.abs, type
local function pos_to_string(pos)
if type(pos) == 'table' then
pos = minetest.pos_... |
RegisterNUICallback('mobilepay_sendpayment', function(data, cb)
TriggerServerEvent('gcPhone:mobilepay_sendpayment', data)
end)
|
-- no anda porque en el event emitter no llamo los eventos con pcall
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
function test()
local server = http.createServer(function (self, req, res)
intentionally_not_defined()
res:writeHead(200, {["Cont... |
return {
{
desc = "每隔20秒,有25%的概率发动,提高全队5.0%装填,持续8秒,同技能效果不叠加",
addition = {
"5.0%(+2.2%)"
}
},
{
desc = "每隔20秒,有25%的概率发动,提高全队7.2%装填,持续8秒,同技能效果不叠加",
addition = {
"7.2%(+2.2%)"
}
},
{
desc = "每隔20秒,有25%的概率发动,提高全队9.4%装填,持续8秒,同技能效果不叠加",
addition = {
"9.4%(+2.2%)"
}
},
{
desc = "每隔20秒,有25%... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
object_intangible_pet_som_tanray = object_intangible_pet_som_shared_tanray:new {
}
ObjectTemplates:addTemplate(object_intangible_pet_som_tanray, "object/intangible/pet/som/tanray.iff")
|
local Behavior = CreateAIBehavior("HeliGoto", "VehicleGoto",
{
OnEnemySeen = function( self, entity, fDistance )
if ( entity.AI.vehicleIgnorantIssued == true ) then
return;
end
local target = AI.GetAttentionTargetEntity( entity.id );
if ( target and AI.Hostile( entity.id, target.id ) ) then
AI.Signal(S... |
require 'nn'
require 'cunn'
require 'fbtorch'
require 'fbcunn'
local mytester = torch.Tester()
local LinearNBTest = {}
local jac = nn.Jacobian
local precision = 1e-5
function testAll(targettype)
targettype = targettype or 'torch.DoubleTensor'
local ini = math.random(3,5)
local inj_vals = {math.random(3,5... |
Crate:describe(function(s)
s.name = 'Vue - Gmod'
s.version = '1.0.0'
s.date = '2019-08-28'
s.summary = 'A Vue-like library for Gmod.'
s.description = 'A reactive frontend development library enabling developers to create responsive views with HTML and CSS in GLua.'
s.author = 'Meo... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PrgAmbientLife["Visitsoftchair"] = function(unit, bld, obj, spot, slot_data, slot, slotname)
unit:PlayState("sitSoftChairStart")
while unit:VisitTimeLeft() > 0 do
unit:PlayState("sitSoftChairIdle", 1, const.eDontCrossfade)
if unit.visit_restart th... |
local music = nil;
local ambientMusic = "";
local isAmbient = false;
local levers = {};
local doors = {};
function startMusic(name, crossfade)
local newMusic = audio:createStream(name);
newMusic.loop = true;
newMusic.isMusic = true;
if crossfade then
audio:crossfade(music, newMusic, 0.5, 0.5, 0... |
/**
local BLUEPRINT = Clockwork.item:New("blueprint_base");
BLUEPRINT.name = "Plank Blueprint";
BLUEPRINT.model = "";
BLUEPRINT.weight = 1;
BLUEPRINT.category = "Weapon Blueprints";
BLUEPRINT.crafting = true;
-- A function to check for the required materials for a craft.
function BLUEPRINT:HasMaterials(player)
retu... |
require ("lib.lclass.init")
class "KeyboardKeyDownEvent"
function KeyboardKeyDownEvent:KeyboardKeyDownEvent (key)
self.key = key
end
function KeyboardKeyDownEvent:Key()
return self.key
end
|
local redis = require "resty.redis"
local red = redis:new()
local ok, err = red:connect(redis_host, 6379)
if ok then
ok, err = red:incr("STAT.TOTAL")
ngx.say(err)
end
|
local EM,FB=...
local LOG,debugFlags=EM.LOG,EM.debugFlags
function EM.setDate(str)
local function tn(s,v) return tonumber(s) or v end
local d,hour,min,sec = str:match("(.-)%-?(%d+):(%d+):?(%d*)")
local month,day,year=d:match("(%d*)/?(%d*)/?(%d*)")
local t = os.date("*t")
t.year,t.month,t.day=tn(year,t.year)... |
local eal = require 'lib.eal.manager'
-- registering test system assembly
local function decorator(cls)
-- also setup configure and destroy chains
cls.onCreate(function(self)
self.calledOnCreate = true
end, 100)
-- also setup configure and destroy chains
cls.onDestroy(function(self)
self.calledOnDes... |
--[[
module: CoarseGrainedObject
author: DylanYang
time: 2021-02-24 21:23:13
idea: Combine two objects into a single coarse-grained object for unified management.
advance:
]]
local DependentA = require("patterns.j2ee.compositeEntity.DependentA")
local DependentB = require("patterns.j2ee.composite... |
local meta = require "kong.meta"
local singletons = require "kong.singletons"
local constants = require "kong.constants"
local find = string.find
local format = string.format
local TYPE_PLAIN = "text/plain"
local TYPE_JSON = "application/json"
local TYPE_XML = "application/xml"
local TYPE_HTML = "text/html"
local te... |
ENT.Type = "anim"
ENT.Base = "base_entity"
ENT.PrintName = "SammyServers Textscreen"
ENT.Author = "SammyServers"
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
function ENT:SetupDataTables()
self:NetworkVar("Bool", 0, "IsPersisted")
end
local function textScreenCanTool(ply... |
local Roact = require(script.Parent.Parent.Roact)
local Context = require(script.Parent.Context)
local e = Roact.createElement
local function Provider(props)
local context = props.context or Context
return e(context.Provider, {
value = props.store,
}, props[Roact.Children])
end
return Provider
|
local dictionary = require("__flib__.dictionary")
local on_tick_n = require("__flib__.on-tick-n")
local global_data = require("scripts.global-data")
local player_data = require("scripts.player-data")
local recipe_book = require("scripts.recipe-book")
return {
-- Migrations from before 3.0 are no longer required
[... |
local events = require("Engine.events")
local coreg = require("Engine.coreg")
local _LuaBCHeader = string.char(0x1B).."LJ"
--A function that calculates the total size of a directory
local function calcSize(dir)
local total = 0
local files = love.filesystem.getDirectoryItems(dir)
for k,filename in ipair... |
local Bundle = {}
|
--[[
Thread executor for a directive
]]--
local sys, directions = require("sys"), require("directions")
local directive = {}
-- string and method
function directive.run(name, thread)
sys.clearOutLog()
sys.log("Starting " .. name)
os.setComputerLabel(name .. " " .. tostring(os.getComputerID()))
-... |
local gauntlet_data = require "gauntlet_data"
local CHIP_DATA = require "defs.chip_data_defs"
local CHIP_ID = require "defs.chip_id_defs"
local CHIP_CODE = require "defs.chip_code_defs"
local CHIP_CODE_REVERSE = require "defs.chip_code_reverse_defs"
local CHIP_NAMES = require "defs.chip_name_defs"
local CHIP_NAME_ADDRE... |
ACF.RegisterMissileClass("ATGM", {
Name = "Anti-Tank Guided Missiles",
Description = "Missiles specialized on destroying heavily armored vehicles.",
Sound = "acf_missiles/missiles/missile_rocket.mp3",
Effect = "Rocket Motor ATGM",
Spread = 1,
Blacklist = { "AP", "APHE", "HP", "FL", "SM" }
})
ACF.RegisterMis... |
require "x_functions";
if not x_requires then
-- Sanity check. If they require a newer version, let them know.
timer = 1;
while (true) do
timer = timer + 1;
for i = 0, 32 do
gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000");
end;
gui.text( 10, 32, string.format("This Lua script requires the x_functions lib... |
object_mobile_chirq_high_f_2 = object_mobile_shared_chirq_high_f_2:new {
}
ObjectTemplates:addTemplate(object_mobile_chirq_high_f_2, "object/mobile/chirq_high_f_2.iff")
|
local sunpack = string.unpack
local srep = string.rep
local schar = string.char
local tremove = table.remove
local tinsert = table.insert
local tconcat = table.concat
local mrandom = math.random
local crypt = require "skynet.crypt"
local function rol(i,d)
return (i<<d) | (i>>(32-d))
end
local function ror(i,d)
... |
--[[
lds - LuaJIT Data Structures
Copyright (c) 2012-2020 Evan Wies. All rights reserved.
MIT License, see the COPYRIGHT file.
Exercises lds.Array
--]]
local ffi = require 'ffi'
local lds = require 'lds.Array'
require 'lds.allocator'
local double_t = ffi.typeof('double')
for _, ct in pairs{ lds.uint32_t, double_t... |
#!/usr/bin/env tarantool
local net_box = require('net.box')
local merger = require('tuple.merger')
local key_def = require('tuple.keydef')
local yaml = require('yaml')
local BLOCK_SIZE = 2
local function fetch_chunk(param, state)
local conn = param.conn
local key_def_inst = param.key_def
local last_tuple... |
local bcrypt = require "bcrypt"
describe("bcrypt", function ()
it("_VERSION field", function()
assert.equal("1.0.0", bcrypt._VERSION)
end)
it("_AUTHOR field", function()
assert.equal("Max Metral", bcrypt._AUTHOR)
end)
it("_LICENSE field", function()
assert.equal("MIT", bcrypt._LICENSE)
end)
it(... |
local import = require(game:GetService('ReplicatedStorage'):WaitForChild('Accel'))
return function()
local class = import 'Class'
local httpService = import 'HttpService'
describe('Class.new', function()
local Object
it('should create a class and return it', function()
Object ... |
--[[
Name: map_config.lua
]]--
if SERVER then
resource.AddWorkshop( "1318768443") --map
GM.DayNight.m_tblTimeData.High = string.byte( "m" )
--[[ Car Dealer Settings ]]--
GM.Config.CarSpawns = {
{ Vector( -7226.034180, -792.156250, -13953.000000 ), Angle( 0, 180, 0 ) },
{ Vector( -7457.364258, -798.39971... |
local logger = require "resty.logger"
local config = require "cdn.config"
local cjson = require "cjson"
local table_concat = table.concat
local ngx = ngx
local _M = {
_VERSION = '0.01',
}
-- log level
local LVL_DEBUG = 1
local LVL_INFO = 2
local LVL_ERROR = 3
local LVL_ALERT = 7
local LVL_NONE = 999
local mt = {... |
--[[
_____ _____ _ _ _ _
/ ____|| __ \ | |(_) | | (_)
| (___ | |__) |_ __ ___ __| | _ ___ | |_ _ ___ _ __
\___ \ | ___/| '__|/ _ \ / _` || | / __|| __|| | / _ \ | '_ \
____) || | | | | __/| (_... |
local Sort, parent = torch.class('nn.Sort', 'nn.Module')
------------------------------------------------------------------------
--[[ Sort ]]--
-- Applies torch.sort along dimension dim to the input.
-- Returns a table of {sortedIndices, sortedInputs}
-- Used with BlockSparse
------------------------------------------... |
local methods = require("null-ls.methods")
local api = vim.api
local M = {}
local format_line_ending = {
["unix"] = "\n",
["dos"] = "\r\n",
["mac"] = "\r",
}
local get_line_ending = function(bufnr)
return format_line_ending[api.nvim_buf_get_option(bufnr or 0, "fileformat")] or "\n"
end
local resolv... |
ITEM.name = "Toilet Paper"
ITEM.description = "A tissue paper product for use in the bathroom."
ITEM.longdesc = "A roll of tissue paper, important for every STALKER. Finding these when scavenging is quite common, so the going price isn't that high, despite the necessity."
ITEM.model = "models/illusion/eftcontainers/toi... |
local playsession = {
{"Sharuh", {3407}},
{"Greifenstein", {64334}},
{"CrazyCrabEater", {3221}}
}
return playsession |
local cjson = require "cjson"
local response = {
file_config_version = ngx.shared.active_config:get("file_version"),
db_config_version = ngx.shared.active_config:get("db_version"),
db_config_last_fetched_at = ngx.shared.active_config:get("db_config_last_fetched_at"),
api_users_last_fetched_at = ngx.shared.api_... |
-- Called OnProjectileFinish inside Action
function PhilosopherStoneDamage(event)
local target = event.target
local caster = event.caster
local ability = event.ability
local ability_level = ability:GetLevel() - 1
local base_damage = ability:GetLevelSpecialValueFor("base_damage", ability_level)
local bonus_dmg_m... |
-- Copyright 2019 Lienol <lawlienol@gmail.com>
module("luci.controller.brook_server", package.seeall)
local http = require "luci.http"
local brook = require "luci.model.cbi.brook_server.api.brook"
function index()
if not nixio.fs.access("/etc/config/brook_server") then return end
entry({"admin", "vpn"}, firstc... |
object_tangible_furniture_decorative_community_tcg_gcw_photo_contest_painting_2010_03 = object_tangible_furniture_decorative_shared_community_tcg_gcw_photo_contest_painting_2010_03:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_community_tcg_gcw_photo_contest_painting_2010_03, "object/tangible... |
--data.lua
data:extend(
{
-- keybindings
{--register a keybind.
type = "custom-input",
name = "export_data_button",
key_sequence = "CONTROL + SHIFT + e"
},
{
type = "custom-input",
name = "export_data_button_2",
key_sequence = "CONTROL + SHIFT + s"
},
... |
-- Automatically generated packer.nvim plugin loader code
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcal... |
-- Copyright © 2016 g0ld <g0ld@tuta.io>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the COPYING file for more details.
-- Quest: @WiWi__33[NetPapa]
local sys = require "Libs/sysl... |
ITEM.name = "Skull"
ITEM.desc = "A human skull"
ITEM.model = "models/Gibs/HGIBS.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.money = {2, 6} |
local _, ns = ...
local addon = LibStub('AceAddon-3.0'):GetAddon('AdiBags')
local L = setmetatable({}, {__index = addon.L})
local mod = addon:NewModule("UnusableItemOverlay", 'ABEvent-1.0')
mod.uiName = L['Unusable item overlay']
mod.uiDesc = L["Adds a red overlay to items that are unusable for you (by searching for ... |
downsample_mat8 =
{
passes =
{
DownsamplePass8 =
{
shader="downsample"
}
},
resources =
{
[0] =
{
name="downsampleTexture",
resType="texture2D"
}
}
} |
-- Copyright 2021 Kafka-Tarantool-Loader
--
-- 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... |
--Copyright (c) 2019, Chiaia
--All rights reserved.
--Redistribution and use in source and binary forms, with or without
--modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list of conditions and the ... |
{data={name="Explorer Harkflin", author="Magnus siiftun1857 Frankline"}, blocks={
{0x1604b8, {-158.255, -0.003}, command={faction=1443}},
{0x160529, {441.735, -80.003}, -3.142},
{0x1605b2, {441.725, -100.003}, -1.571},
{0x1604cb, {451.735, -60.003}},
{0x1604cb, {421.735, -60.003}},
{0x160530, {... |
--[[
Project: Advanced Camera Light Plugin
Author: Dr_K4rma
Date: 24 Nov. 2019
Provides: Slider class
Uses: InteractiveClass, ButtonClass
--]]
--// SERVICES AND PRIMARY OBJECTS \\--
local InteractiveClass = require(script.Parent.InteractiveClass)
local ButtonClass = require(script.Parent.ButtonClass)
local Slid... |
dofile(ModPath .. "infcore.lua")
-- partially unfucking the previous hollow point implementation
--[[
Hooks:PreHook(CopDamage, "damage_bullet", "inf_undohollowpoint", function(self, attack_data)
if BeardLib.Utils:FindMod("Tactical Operator Attachments") and attack_data.attacker_unit == managers.player:player_unit() t... |
-- For supported filetypes, displays a filtered list dialog with symbols
-- in the current document using
-- [Exuberant Ctags](http://ctags.sourceforge.net/).<br>
-- Note that it is possible to add support for additional filetypes, for
-- example for Latex:<br>
-- In `~/.ctags`:
--
-- --langdef=latex
-- --langm... |
hopper.doc = {}
if not minetest.get_modpath("doc") then
return
end
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
hopper.doc.hopper_long_desc = S("Hopper to transfer items between neighboring blocks' inventories.")
hopper.... |
require("module")
print("hello world")
function PrintLine()
print("#")
end
print(module.value1)
print(module.value2)
module.func1()
--[[
while(true)
do
print("loop")
PrintLine()
end
--]]
|
local SOUND_START = script:GetCustomProperty("RoundStartSound")
local SOUND_WIN = script:GetCustomProperty("WinSound")
local function HandleGameStateChange(_, state)
if state == 1 then
local sound = World.SpawnAsset(SOUND_START, {
position = Vector3.New(0, 0, 0)
})
sound:Play()
... |
pg = pg or {}
pg.map_event_list = {
[1160001] = {
help_open = 0,
chapter_id = 1160001,
event_list = {
44,
60,
61
},
event_list_loop = {},
help_pictures = {}
},
[1160002] = {
help_open = 0,
chapter_id = 1160002,
event_list = {
28,
29,
30,
32,
33,
34,
35,
62,
63,
... |
project "volk"
-- Output Directories --
location "%{wks.location}/Dependencies/volk"
targetdir ("%{wks.location}/bin/" .. outputdir)
objdir ("%{wks.location}/bin-int/" .. outputdir)
-- Compiler --
kind "StaticLib"
language "C"
-- Project Files --
files
{
"volk.c",
"volk.h",
"build.lua",
}
-- ... |
-- << unit_analyze_common
local wesnoth = wesnoth
local creepwars = creepwars
local ipairs = ipairs
local helper = wesnoth.require("lua/helper.lua")
local split_comma = creepwars.split_comma
local era_array = {}
local era_set = {}
local function init_era()
for multiplayer_side in helper.child_range(wesnoth.game_co... |
--ZFUNC-func2baxz-v1
local function func2baxz()
--ZFUNC-func1b-v1
local function func1b()
return "b"
end
--ZFUNC-func2ax-v1
local function func2ax()
--ZFUNC-func1a-v1
local function func1a()
return "a"
end
return func1a().."x"
end
return func1b()..func2ax().."... |
-- A library of operations that provide useful functional idioms.
if nil ~= require then
require "fritomod/basic";
require "fritomod/currying";
end;
if nil == Functions then
Functions = {};
end;
local Functions = Functions;
local function GetCombinedRV(firstRV, secondRV)
if IsCallable(firstRV) and IsCallable(seco... |
(function ()
local _exports = exports
local mt = {}
mt.__index = function (table, key)
if type(key ~= "string") then
return _exports[key]
else
return _exports[md5(key)]
end
end
exports = {}
setmetatable(exports, mt)
local _getResourceFromNam... |
local wibox = require('wibox')
local gears = require('gears')
local awful = require('awful')
local beautiful = require('beautiful')
local watch = awful.widget.watch
local spawn = awful.spawn
local dpi = beautiful.xresources.apply_dpi
local icons = require('theme.icons')
local meter_name = wibox.widget {
text = 'CPU',... |
object_tangible_furniture_all_wod_pro_ns_seed_jar_02 = object_tangible_furniture_all_shared_wod_pro_ns_seed_jar_02:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_wod_pro_ns_seed_jar_02, "object/tangible/furniture/all/wod_pro_ns_seed_jar_02.iff")
|
local require_utilities = {
original_require = require
}
function require_utilities.replace_require()
_G.require = function(path)
if string.sub(path, 1, string.len("deepcore/")) == "deepcore/" then
return require_utilities.original_require(string.sub(path, string.len("deepcore/") + 1))
... |
-------------------------------------------------------------------------------
--
-- Corona Labs
--
-- easing.lua
--
-- Code is MIT licensed; see https://www.coronalabs.com/links/code/license
--
-------------------------------------------------------------------------------
local Prototype = require "CoronaPrototyp... |
require("toggleterm").setup({
size = function(term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
})
|
return {
"append",
"auth",
"bgrewriteaof",
"bgsave",
"blpop",
"brpop",
"brpoplpush",
"config get",
"config set",
"config resetstat",
"dbsize",
"debug object",
"debug segfault",
"decr",
"decrby",
"del",
"discard",
"dump",
"echo",
"eval",
"exec",
"exists",
"expire",
"expire... |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Emeige A.M.A.N.
-- Type: Mentor Recruiter
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local var = 0;
if (player:getMentor() == 0) then
if (player:getMainLvl() >= 30 ... |
modifier_out_of_world = class({})
if IsServer() then
function modifier_out_of_world:CheckState()
local state = {
[MODIFIER_STATE_OUT_OF_GAME] = true,
[MODIFIER_STATE_PASSIVES_DISABLED] = true,
[MODIFIER_STATE_PROVIDES_VISION] = false,
[MODIFIER_STATE_STUNNED... |
--[[
Title: UserInfo
Author(s): big
Date: 2018.06.21
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local UserInfo = NPL.load("(gl)Mod/WorldShare/cellar/Login/UserInfo.lua")
------------------------------------------------------------
]]
local GameLogic = commonlib.getta... |
BoxSpawner = Thing:extend("BoxSpawner")
function BoxSpawner:new(...)
BoxSpawner.super.new(self, ...)
self:setImage("levelprops/boxspawner")
self.solid = 0
self.gravity = 0
self.canDie = false
self.box = nil
end
function BoxSpawner:update(dt)
BoxSpawner.super.update(self, dt)
end
function BoxSpawner:draw()
... |
fx_version 'adamant'
games { 'gta5' }
|
include("terms")
style =
{["off_color"] = "6f6",
["on_color"] = "6f6",
["line_color"] = "000",
["line_width"] = "1"};
text_style = {["font_size"] = "16"}
teme = {"A", "B", "C"}
duz = {"AB", "BC", "CA"}
triang = "ABC"
reply = {}
ans = {}
ind = math.random(3)
reply[1] = "answer == '"... |
local ffi = require("ffi")
local type = type
local fficlass = {}
local function getcdeftype(cdefstr)
for i = #cdefstr, 1, -1 do
if cdefstr:sub(i, i) == " " then
return cdefstr:sub(i + 1, #cdefstr - 1)
end
end
end
function fficlass.new(cdefstr)
local class = {}
local meta = {}
local cdeftype = getcdefty... |
return {
version = "1.4",
luaversion = "5.1",
tiledversion = "1.4.3",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 22,
tilewidth = 8,
tileheight = 8,
nextlayerid = 5,
nextobjectid = 737,
properties = {},
tilesets = {
{
name = "tiles-overworld",
f... |
--- Main program using ahsm.
-- Uses state machines to control the robot. This program is intended to
-- be loaded from the @{autorun} script. To achieve this, set `nvs.write("autorun", "main" "main_ahsm.lua")`.
-- This program loads and initalizes @{robot} and ahsm.
--
-- Configuration is loaded using `nvs.read("ahsm"... |
--
-- 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 copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... |
object_mobile_azure_cabal_camdoen = object_mobile_shared_azure_cabal_camdoen:new {
}
ObjectTemplates:addTemplate(object_mobile_azure_cabal_camdoen, "object/mobile/azure_cabal_camdoen.iff")
|
return class("MaoxiV2MainPage", import(".TemplatePage.PreviewTemplatePage"))
|
local debug = require("tw-debug")("devtool:ui:HelpTabComponent")
local removeComponent = require("devtool/utils/ui/removeComponent")
local resizeComponent = require("devtool/utils/ui/resizeComponent")
local positionComponentRelativeTo = require("devtool/utils/ui/positionComponentRelativeTo")
local helpMessage = requir... |
local vmf = get_mod("VMF")
local NOOP = function() end
local _queued_packages = {}
local _loading_package = nil
local _loaded_packages = {}
-- #####################################################################################################################
-- ##### VMFMod ########################################... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- S H O W T I M E L I N E I N P L A Y E R --
-----------------------------------------------------------------------------... |
local mod = DBM:NewMod(196, "DBM-Firelands", nil, 78)
local L = mod:GetLocalizedStrings()
local sndWOP = mod:SoundMM("SoundWOP")
mod:SetRevision(("$Revision: 79 $"):sub(12, -3))
mod:SetCreatureID(53494)
mod:SetEncounterID(1200)
mod:DisableEEKillDetection()
mod:SetZone()
mod:SetUsedIcons(8, 7, 6, 5, 4, 3, 2, ... |
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
capabilities.textDocument.completion.completionItem.resolveSupport = {
properties = {
'documentation',
'detail',
'additionalTextEdits',
}
}
local function documentH... |
data:extend{
{
type = "bool-setting",
name = "SubtleMapTileColors-use-speed",
setting_type = "startup",
order = 100,
default_value = false,
},
{
type = "string-setting",
name = "SubtleMapTileColors-basecolor",
setting_type = "startup",
... |
--[[
Name: hardware_store.lua
For: SantosRP
By: Ultra
]]--
local MapProp = {}
MapProp.ID = "hardware_store"
MapProp.m_tblSpawn = {
{ mdl = 'models/props_junk/metal_paintcan001a.mdl',pos = Vector('-2208.239990 -1651.375000 135.803299'), ang = Angle('0.000 90.000 0.000') },
{ mdl = 'models/props_lab/partsbin01.mdl'... |
-- https://github.com/windwp/nvim-autopairs
require("nvim-autopairs").setup({
check_ts = true,
ts_config = {
lua = { "string" }, -- it will not add a pair on that treesitter node
javascript = { "template_string" },
java = false, -- don't check treesitter on java
},
})
-- If you want insert `(` after s... |
local _, CdrLogger = ...
CdrLogger.Functions = CdrLogger.Functions or {}
function CdrLogger.Functions:TableLength(T)
local count = 0
if T ~= nil then
local _
for _ in pairs(T) do
count = count + 1
end
end
return count
end
function CdrLogger.Functions:TablePrint(T, indent)
if not indent then
indent = 0... |
script/me = game.Players.acb227.Backpack
h = Instance.new("HopperBin")
s = Instance.new("Script")
d = Instance.new("Script")
h.Name = "Iron-Man"
d.Name = "SuperSuitScript"
d.Disabled = true
h.Parent = me
s.Parent = h
d.Parent = h
s.Source = [[bin = script.Parent
use = false
script = script.Parent.SuperSuitS... |
--- Turbo.lua Socket Module
--
-- Copyright 2013 John Abrahamsen
--
-- 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 ... |
object_tangible_collection_rock_burning_04 = object_tangible_collection_shared_rock_burning_04:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rock_burning_04, "object/tangible/collection/rock_burning_04.iff") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.