content stringlengths 5 1.05M |
|---|
require 'common'
local zone_30 = {}
--------------------------------------------------
-- Map Callbacks
--------------------------------------------------
function zone_30.Init(zone)
DEBUG.EnableDbgCoro() --Enable debugging this coroutine
PrintInfo("=>> Init_zone_30")
end
function zone_30.Rescued(zone, name, ... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
-- << init_state.lua
local wesnoth = wesnoth
local addon = creepwars
local ipairs = ipairs
local is_ai_array = addon.is_ai_array
local on_event = wesnoth.require("lua/on_event.lua")
-- kill auto-generated AI leaders (not guards)
for _, unit in ipairs(wesnoth.get_units { canrecruit = true }) do
if is_ai_array[unit.s... |
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')APICKF=b.getInterface('API')cAPI=a.getInterface('cAPI')Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end end)RegisterNetEvent("hoppe:return:item")AddEventHandler("hoppe:return:i... |
--[[
定时器Proxy,用于处理游戏中需要定时操作的逻辑
提供了添加和移除定时器的接口
--]]
local TimerProxy = class("TimerProxy")
local TAG = "<TimerProxy | "
local _scheduler = cc.Director:getInstance():getScheduler()
local TIMER_STATUS = {
INIT = "timer_init";
DELAY = "timer_delay";
RUNNING = "timer_running";
FINISH = "timer_finished";
}
functio... |
name = "Leveling: Route 6 (near Vermilion)"
author = "Liquid"
description = [[This script will train the first pokémon of your team.
It will also try to capture shinies by throwing pokéballs.
Start anywhere between Vermilion City and Route 6.]]
local team = require "teamlib"
local maxLv = 100
local listVermilion_1 = ... |
-- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- Provides access to all lunamark writers without preloading
-- them. Writer modules are loaded only when needed.
--
-- local writers = require("lunamark.writer")
-- local htmlwriter = writers.h... |
local version = luajava.bindClass("android.os.Build").VERSION.SDK_INT;
local function autotheme()
local h=tonumber(os.date("%H"))
--h=0
if version >= 21 then
if h<=6 or h>=22 then
return (android.R.style.Theme_Material)
else
return (android.R.style.Theme_Material_Light)
end
else
if h... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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... |
require 'rnn'
function build_network(inputSize, hiddenSize, outputSize)
-- I0: The model architecture needs more work, why does having a linear layer as per
-- the example in (http://arxiv.org/abs/1511.07889) cause a "size mismatch, m1: [10 x 512], m2: [10 x 512]" error?
-- I1: add in a dropout layer
rnn ... |
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.olsr", package.seeall)
function etx_color(etx)
local color = "#bb3333"
if etx == 0 then
color = "#bb3333"
elseif etx < 2 then
color = "#00cc00"
elseif etx < 4 then
color = "... |
function test.test(callback, signalType, times, interval)
checkArg(1, callback, "function")
checkArg(2, signalType, "string", "nil")
checkArg(3, times, "number", "nil")
checkArg(4, interval, "number", "nil")
local ID = math.random(1, 0x7FFFFFFF)
while handlers[ID] do
ID = math.random(1, 0x7FFFFFFF)
end
hand... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Replication = {}
function ReadOnlyTable(table)
return setmetatable(table, {
__index = function()
return "The metatable is locked"
end;
__newindex = function()
return "The metatable is locked"
end;
})
end
function Replication.Classi... |
-- if execution is slow, perform a maximum of 4 simultaneous updates in order to keep the fixrate
local MAX_SKIP_FRAMES = 4
local function loop(Time)
local accumulator = 0.0
local lastStepTime = 0.0
return function (newTime, stepName, beforeUpdateFn, updateFn)
local dtFixed = Time.DeltaFixed
lo... |
--[[
Copyright (c) 2011-2015 chukong-incc.com
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, publish, di... |
-- Specify input and output paths:
OUTPUT_FILE = "build/rst/index.rst"
INPUT_FILE = "build/xml/index.xml"
FRAME_FILE = "index.rst.in"
-- Usually, Doxygen-based documentation has a main page (created with
-- the \mainpage directive). If that's the case, force-include
-- the contents of 'page_index.rst' into 'index.rst... |
local AddonName, AddonTable = ...
AddonTable.eternalpalace = {
-- Abyssal Commander Sivara
168359, -- abyssal-commanders-mantle
168276, -- claw-of-the-myrmidon
168386, -- gauntlets-of-overflowing-chill
168345, -- helm-of-the-inexorable-tide
168361, -- naga-centaurs-shellplate
168387, -- pal... |
class = require 'middleclass'
push = require 'push'
binser = require 'binser'
-- Seed RNG
math.randomseed(os.time())
-- Make upscaling look pixelated instead of blurry
love.graphics.setDefaultFilter('nearest', 'nearest')
require 'Util'
require 'Constants'
require 'Game'
require 'Skill'
require 'Menu'
require 'Sprit... |
local QuestConfig = utils.class();
local auto_accept_quest_list = {}
local npc_quest_list = {};
local npc_submit_list = {} ---交任务的npc
local npc_status_funcList = {}
local mutex_id_list = {} --互斥Id任务分组
local AutoAcceptNextIdList = {} --自动接下一任务id
local CityContuctId = {41, 42, 43, 44}
local ActivityBountyId = {51, 52,... |
data:extend(
{
{
type = "item",
name = "uranium-fuel",
icon = "__Engineersvsenvironmentalist__/graphics/icons/ore/uraninite.png",
flags = {"goes-to-main-inventory"},
fuel_category = "chemical", fuel_value = "400PJ",
subgroup = "fuel-processing",
order = "c[solid-fuel]",
stack_size = 50
... |
-- Copyright (C) Yichun Zhang (agentzh)
local base = require "resty.core.base"
base.allows_subsystem('http')
local ffi = require "ffi"
local C = ffi.C
local ffi_str = ffi.string
local getfenv = getfenv
local error = error
local errmsg = base.get_errmsg_ptr()
local get_string_buf = base.get_string_buf
local FFI_ERRO... |
dependencies = {}
files = {"init.lua", "receiver.lua", "sender_export.lua"}
exposed = {"receiver.lua"}
function init() print("Version 1.0") end
return {
dependencies = dependencies,
files = files,
exposed = exposed,
init = init
}
|
require "common.p8declares"
function OnPropertyChanged(sProperty)
local propertyValue = Properties[sProperty]
if (LOG ~= nil and type(LOG) == "table") then
LogTrace("OnPropertyChanged(" .. sProperty .. ") changed to: " .. Properties[sProperty])
end
-- Remove any spaces (trim the property)
local trimmedPropert... |
function solveTheta(lat)
local t = lat/2;
local dt = 0
for i=1,20 do
--repeat
dt = -(t + sin(t)*cos(t) + 2*sin(t) - (2+pi*0.5)*sin(lat))/(2*cos(t)*(1+cos(t)))
t = t+dt
--until dt < 0.001
end
return t
end
function get_max_x(y,lat)
if y ~= lasty then
local t = solveTheta(abs(la... |
local doors = {
{x= 191009.0, y= 206329.0, z= 1320.0, h= -90.0, x2= 191012.0, y2= 206707.0, z2= 1322.0, h2=90.0}, -- Comico back entrance
{x= 189357.0, y= 208903.0, z= 1311.0, h= 90.0, x2= 189370.0, y2= 208488.0, z2= 1322.0, h2=-90.0}, -- Comico main entrance
{x= 191238.0, y= 207037.0, z= 1322.0, h= 180.0, x... |
function test_async_post()
print "Async post test"
local function OnLoad (data)
if data ~= "" then print ("Data received") end
System.Application.Exit (0)
end
local callback = Common.File.CreateAsyncLoadHandler (OnLoad)
local FILE_NAME = "http://untgames.com"
local result ... |
local itemKey = ARGV[1]
local vector = ARGV[2]
-- Retrieve all the tripple where the item is the subject.
local SPOTrippleList = redis.call('ZRANGEBYLEX', itemKey, '[SPO:'.. vector ..':', '[SPO:'.. vector ..'\xff')
-- Retrieve all the tripple where the item is the object.
local OPSTrippleList = redis.call('ZRANGEBYLEX... |
--[[
█▀▀█ █▀▀█ █▀▀█ ░░▀ █▀▀ █▀▀ ▀▀█▀▀ ▀▀█ █▀▀ █▀▀█ █▀▀█
█░░█ █▄▄▀ █░░█ ░░█ █▀▀ █░░ ░░█░░ ▄▀░ █▀▀ █▄▄▀ █░░█
█▀▀▀ ▀░▀▀ ▀▀▀▀ █▄█ ▀▀▀ ▀▀▀ ░░▀░░ ▀▀▀ ▀▀▀ ▀░▀▀ ▀▀▀▀
SCRIPT CREADO POR ByBlackDeath
DISCORD DEl CREADOR: ByBlackDeath#5528
]]--
X.OpenGetMenu = function(id)
local elements = {}
ESX.TriggerServerCallback('r... |
-- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Mixins\OrdersMixin\server.lua
-- - Dragon
local oldOrdersMixinOnUpdate = OrdersMixin.OnUpdate
function OrdersMixin:OnUpdate(deltaTime)
oldOrdersMixinOnUpdate(self, deltaTime)
local currentOrder = sel... |
return function(center, surface) --small smelting station
local ce = function(params)
params.raise_built = true
return surface.create_entity(params)
end
local fN = game.forces.neutral
local direct = defines.direction
ce{name = "stone-furnace", position = {center.x-2, center.y-2}, fo... |
--获取随机整数
math.random = jass.GetRandomInt
--求距离
function math.distance(x1, y1, x2, y2)
local x = x1 - x2
local y = y1 - y2
return math.sqrt(x * x + y * y)
end
--
function math.less(x, y)
return x < y
end
function math.more(x, y)
return x > y
end
--计算2个角度之间的夹角
function math.angle(r1, r2)
loca... |
local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
local M = E:GetModule('MiscEnh')
-- Based on ElvUI_TransparentMovers by: Dandruff @ Whisperwind
function M:UpdateMoverTransparancy()
local mover
for name, _ in pairs(E.CreatedMovers) do
move... |
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local Constants = require(script.Parent.Parent.Constants)
local FONT = Constants.Font.MainWindowHeader
local TEXT_SIZE = Constants.DefaultFontSize.MainWindowHeader
local TEXT_COLOR = Constants.Color.Text
local function Head... |
local Block
local Line
if game then
local pluginModel = script.Parent.Parent.Parent.Parent
Block = require(pluginModel.com.blacksheepherd.code.Block)
Line = require(pluginModel.com.blacksheepherd.code.Line)
else
Block = require("com.blacksheepherd.code.Block")
Line = require("com.blacksheepherd.code.Line")
en... |
mmCreateView("t1", "MpiClusterView", "::t1::mcview")
mmCreateModule("SimpleClusterClient", "::mcc")
mmCreateModule("MpiProvider", "::mpi")
mmCreateCall("SimpleClusterClientViewRegistration", "::t1::mcview::register", "::mcc::registerView")
mmCreateCall("MpiCall", "::t1::mcview::requestMpi", "::mpi::provideMpi")
|
--- An output stream that writes to a file.
--
-- @module FileOutputStream
-- @author sci4me
-- @license MIT
-- @copyright Scitoshi Nakayobro 2021
local class = require "middleclass"
local OutputStream = require "iostream.OutputStream"
local char = string.char
local FileOutputStream = class("FileOut... |
--[[ Copyright (c) 2019 robot256 (MIT License)
* Project: Multiple Unit Train Control
* File: checkModuleMatching.lua
* Description: Checks if a pair of locos are RET modular type, and if the module configurations match.
* Returns true if they are not modular locos.
--]]
local moduleTypes = nil
local function ... |
--[[
joli-lune
small framework for love2d
MIT License (see licence file)
]]
local Render = require "src.renderer"
local lg = love.graphics
local ShapeRenderer = Render:extend(Render)
local shapefunc = {
rect = lg.rectangle,
circ = lg.circle,
poly = lg.polygon,
line = lg.line
}
local getArgs = {
rect = functio... |
local tArgs = {...}
if tArgs[1] == nil then
print("Please type a url.")
local url = read()
local file = http.get(url)
print("What would you like to download it as?")
local filename = read()
local f = fs.open(filename, "w")
f.write(file.readAll)
f.close()
f = fs.open(filename, "r")
print("showing the... |
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Patryk Adamowicz <patrykadam.dev@gmail.com>
Discord: PatrykAdam#1293
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
local screenX, screenY = guiGetScreenSize()
local scaleX, scaleY = math.max(0.6, (screenX / 1920)), math.max(0.6... |
function create_refinery(args)
local refinery = table.deepcopy(data.raw["assembling-machine"]["oil-refinery-mk3"])
refinery.name = args.name
refinery.icon = "__built-in-beacons-fe-plus__/graphics/icons/" .. args.name .. ".png"
refinery.icon_size = 64
refinery.icon_mipmaps = nil
refinery.... |
function LGP.GenerateHash()
return ""
end
function LGP:SendEntityCode(Player)
local UploadSpeed = LGP.UploadSpeed:GetInt()
local Script = util.Compress(self.Script)
local Parts = {}
for i = 1, math.ceil(#Script / UploadSpeed) do
table.insert(Parts, Script:sub(i * UploadSpeed, (i + 1) * UploadSpeed - 1))
end
... |
--! file: Base class for a character in a game.
Character = Object:extend()
function Character:new(x, y, speed, imageDir)
self.x = x
self.y = y
self.speed = speed
self.sprite = love.graphics.newImage(imageDir)
self.width = self.sprite:getWidth()
self.height = self.sprite:getHeight()
end
funct... |
local zmq = require "lzmq"
local ztimer = require "lzmq.timer"
IS_WINDOWS = package.config:sub(1,1) == "\\"
zassert = zmq.assert
function sleep(sec)
ztimer.sleep(sec * 1000)
end
function s_sleep(msec)
ztimer.sleep(msec)
end
function printf(fmt, ...)
return io.write((string.format(fmt, ...)))
end
functi... |
local uv = require("uv")
local SOCK = "/tmp/echo.sock"
local client = uv.new_pipe(false)
client:connect(SOCK, function (err)
assert(not err, err)
client:read_start(function (err, chunk)
assert(not err, err)
if chunk then
print(chunk)
else
client:close()
end
end)
client:write("Hell... |
#!/usr/bin/lua
local fs = require "nixio.fs"
local function scrape()
for metrics in fs.glob("/var/prometheus/*.prom") do
output(get_contents(metrics), '\n')
end
end
return { scrape = scrape }
|
utils = require('utils')
function with_temp_ref(...)
local args = {...}
local dtype = 'int32_t'
if type(args[1]) == 'string' then
dtype = table.remove(args, 1)
end
local count = 1
if type(args[1]) == 'number' then
count = table.remove(args, 1)
end
local func = table.remo... |
local BenchmarkBpClass = Inherit(CppObjectBase)
function BenchmarkBpClass:Start()
collectgarbage("stop")
self.m_TestResult = {}
-- GlueFunc
a_("************Start UObject Type Bench****************")
self:TestBPReflection()
self:TestGlueFunction()
-- do return end
a_("************Start Struct Type Bench*******... |
--[[
NPCAttack - Server
by: standardcombo
v0.9.1
Works in conjunction with NPCAIServer. The separation of the two scripts makes it
easier to design diverse kinds of enemies.
--]]
-- Component dependencies
local MODULE = require( script:GetCustomProperty("ModuleManager") )
require ( script:GetCustomProperty("De... |
---------------------------------------------------------------------------------------------
--ATF version: 2.2
--Created date: 03/Nov/2015
--Author: Ta Thanh Dong
---------------------------------------------------------------------------------------------
Test = require('connecttest')
require('cardinalities')
local ... |
util.AddNetworkString("OCRP_UpdateInventory")
util.AddNetworkString("OCRP_UpdateSkills")
function PMETA:UnCompileString( t, to_uncompile_string )
local ExplodedStr = string.Explode( ";", to_uncompile_string )
if t == "inv" then
for k, v in pairs(ExplodedStr) do
local ExplodedSecond = string.Explode( ".", v )
... |
-- make table, grouping all data for the same item
-- input is 2 columns (item, data)
local A
while 1 do
local l=io.read()
if l==nil then break end
local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$')
if a~=A then A=a io.write("\n",a,":") end
io.write(" ",b)
end
io.write("\n")
|
-- see: https://github.com/openresty/lua-nginx-module#nginx-api-for-lua
local RDB = get_RDB()
-- must be before any content
local hdrs = ngx.req.get_headers()
-- remove port number from hostname
local vhost = get_vhostname()
-- map request to a redis key
local rkey = vhost .. '|' .. (ngx.var.uri or '/')
-- look i... |
--[[-------------------------------------------------------------------------
API for adding new
- tilesets
- corporations
- islands
request api:
==============
local path = mod_loader.mods[modApi.currentMod].scriptPath
local islandApi = require(path .."replaceIsland/api")
-----------------
-- Me... |
-- Mite interpreter
-- (c) Reuben Thomas 2000
return {
writes = "Mite interpreter",
output =
[[/* Interpreter output */
typedef struct {
Word ret;
} runW_Output;
]],
prelude = [[
typedef void runW_State;
#define returnWith(r) \
out->ret = r; \
return out
#define checkDiv(d) \
if (d == 0) \
returnWi... |
local old_ST_init = SkillTreeTweakData.init
function SkillTreeTweakData:init(tweak_data)
old_ST_init(self, tweak_data)
local function digest(value)
return Application:digest_value(value, true)
end
self.tier_unlocks = {
digest(0),
digest(0),
digest(0),
digest(0)
}
end |
local MP = minetest.get_modpath("eco_mapgen")
eco_mapgen.register_biome({
name = "ice",
match = {
temperature = 0,
humidity = 20,
min_height = 8
},
flat = MP .. "/schematics/base/grass_flat",
slope_upper = MP .. "/schematics/base/grass_slope_upper",
slope_lower = MP .. "/schematics/base/grass_slope_lower... |
function Client_PresentConfigureUI(rootParent)
rootParentobj = rootParent;
Conditionsrequiredforwinit = Mod.Settings.Conditionsrequiredforwin;
if(Conditionsrequiredforwinit == nil)then
Conditionsrequiredforwinit = 1;
end
Capturedterritoriesinit = Mod.Settings.Capturedterritories;
if(Capturedterritories... |
return {
summary = 'Different data types for samples in a Sound.',
description = 'Sounds can store audio samples as 16 bit integers or 32 bit floats.',
values = {
{
name = 'f32',
description = '32 bit floating point samples (between -1.0 and 1.0).'
},
{
name = 'i16',
descriptio... |
b = BinooAPI
-- enable debug log
-- NOTE: wont catch messages from this same script immediately, should run this in a script before the main script
b:DebugMode(true)
|
#!/usr/bin/env lua
local ui = require "tek.ui"
local Widget = ui.Widget
local Group = ui.Group
local CheckMark = ui.CheckMark
local RadioButton = ui.RadioButton
local floor = math.floor
local Region = require "tek.lib.region"
local L = ui.getLocale("tekui-demo", "schulze-mueller.de")
local RadioImage1 = ui.getStoc... |
-- oUF_SimpleConfig: target
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- Target Config
-----------------------------
L.C.target = {
enabled = true,
size = {272,26},
point = {"LEFT",UIParent,"CENTER",213,-273},
scale... |
--[[
desc: Duelist, a system of duelist management.
author: Musoucrow
since: 2018-6-6
alter: 2019-9-27
]]--
local _CONFIG = require("config")
local _DIRECTOR = require("director")
local _SOUND = require("lib.sound")
local _MAP = require("map.init")
local _FACTORY = require("actor.factory")
local _RESMGR = require(... |
package.path = package.path .. ";./lib/tui/?/init.lua;./lib/tui/?.lua;./lib/utf8_simple/?.lua"
local sirocco = require "sirocco"
local Prompt = sirocco.prompt
local List = sirocco.list
-- Clear whole screen for demo
-- io.write("\27[2J\27[1;1H")
List {
prompt = ("A long prompt that should wrap"):rep(10),
... |
class("GoBackCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
slot3 = slot1:getType() or 1
if getProxy(ContextProxy).getContextCount(slot4) > 1 then
slot5 = slot4:popContext()
slot6 = nil
for slot10 = 1, slot3, 1 do
if slot4:getContextCount() > 0 then
slot6 = slot4... |
-- The following tags are used to categorize certain tests in this file:
-- - #v5.1: test applies to Lua versions 5.1 and older.
-- - #v5.2: test applies to Lua versions 5.2 and newer.
-- - #jit: test applies to Lua JIT versions 2.0 and newer.
-- Tagged tests can be skipped via the --exclude-tags argument to ... |
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\MapEntityLoader.lua
--
-- Created by: Brian Cronin (brianc@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworlds.com =====================
local function hue2rgb(p... |
includeFile("custom_content/tangible/content/eow/final_data_disk.lua")
includeFile("custom_content/tangible/content/eow/final_data_disk_rebel.lua")
|
local Renderer = dtrequire("systems.render.Renderer")
local PhysicsComponent = dtrequire("components.Physics")
local PhysicsOverlayRenderer = Renderer:subtype("droptune.editor.PhysicsOverlayRenderer")
do
PhysicsOverlayRenderer.filter = PhysicsComponent.filter
function PhysicsOverlayRenderer:init()
sel... |
local skynet = require("skynet")
local sharedata = require "skynet.sharedata"
local json = require("cjson")
local codecache = require "skynet.codecache"
local TAG = "ConfigServer"
local ConfigServer = {}
function ConfigServer:init(pGameCode)
-- Log.d(TAG, "11111111111111121212121")
self.m_pGoldRoomConfigTable = {... |
-- benchmark instantiation/destruction
-- params: <n> [destructor]
--- n: number of instantiations
--- "destructor": add a destructor if passed
-- lib
package.path = ";src/?.lua;"..package.path
local Luaoop = require("Luaoop")
class = Luaoop.class
local n, destruct = tonumber(arg[1]) or 1e6, arg[2] == "destructor"
l... |
function removeFromPluginRepresentation()
end
function updatePluginRepresentation()
end
function ext_getItemData_pricing()
local c=readInfo()
local obj={}
obj.name=sim.getObjectName(model)
obj.type='conveyor'
obj.conveyorType='default'
obj.brVersion=0
obj.length=c.length*1000 -- in mm he... |
-- ... c.lua
|
require('packer').use({
'https://github.com/nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
config = function()
-- Enable Tree-sitter-based code folding.
vim.o.foldmethod = 'expr'
vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
-- Enable Tree-sitter-based syntax highlighting.
require('nvim... |
object_mobile_dressed_echo_base_darth_vader = object_mobile_shared_dressed_echo_base_darth_vader:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_echo_base_darth_vader, "object/mobile/dressed_echo_base_darth_vader.iff")
|
project "UI"
language "C#"
kind "SharedLib"
files { "../src/ui/**.cs", "../src/ui/**.glsl", "../src/ui/data/**.png"}
links { "System", "System.Drawing", "OpenTK", "Util", "Graphics", "Engine" }
location "ui"
vpaths { ["*"] = "../src/ui" }
|
-- require('feline').setup()
|
--
--
-- UTF-8 file
--
-- We are using this as the base list of NPC names, so we do not look at the locale
-- to determine whether we should abandon further processing.
local G = Grail.npc.name
local _, release, _, interface = GetBuildInfo()
release = tonumber(release)
interface = tonumber(interface)
if release >= 0... |
local Logger = require("utils.logger")
require("utils.helpers")
local ChassisDealer = require("screenplays.space.chassis_dealer")
chassis_dealer_conv_handler = conv_handler:new {}
function chassis_dealer_conv_handler:runScreenHandlers(pConvTemplate, pPlayer, pNpc, selectedOption, pConvScreen)
local screen = LuaConve... |
fx_version 'bodacious'
game 'gta5'
client_script "client-side/*"
server_script "server-side/*" |
Locales ['pl'] = {
['press_button'] = "Naciśnij ~INPUT_CONTEXT~, aby zakupić lub sprawdzić swoje ubezpieczenie",
['ins_time'] = "~g~Twoje ubezpieczenie %s jest ważne do %s",
['buy_ins'] = "Zakup ubezpieczenia %s",
['3_days'] = "3 dni (5000$)",
['7_days'] = "7 dni (10000$)",
['14_days'] = "14 dni (20000$)",
['31_... |
function Devour( keys )
local caster = keys.caster
local target = keys.target
local ability = keys.ability
local modifier = keys.modifier
ability:ApplyDataDrivenModifier(caster, caster, "modifier_doom_bringer_devour_arena", nil)
caster:SetModifierStackCount("modifier_doom_bringer_devour_arena", caster, target:Ge... |
--[[
Copyright (c) 2022, Vsevolod Stakhov <vsevolod@rspamd.com>
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 ... |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
server_scripts {
"ac_s.lua",
}
client_scripts {
"ac_c.lua",
} |
-- spec script. should NOT be bundled with final game.
-- for lib/list.lua
--
require( "spec.spec_helper" )
List = require( 'list' )
describe( "List", function()
describe( "#new", function()
context( "when no initial values specified", function()
it( "sets first to 0", function()
local q = List:ne... |
--鉄獣の戦線
--
--Script by JustFish
function c101102052.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--disable spsummon
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_SZONE)
e2:Se... |
--------------------------------------------------------------------------------
local _ = require 'cherry.libs.underscore'
local Text = {}
-- displayCounter --> counter
--------------------------------------------------------------------------------
function Text.embossed(options)
local _text =
display.newE... |
---@module fimbul.v35.spell_template
local spell_template = {}
function spell_template:new(y)
local neu = y or {}
setmetatable(neu, self)
self.__index = self
neu.templatetype = "spell"
return neu
end
return spell_template
|
tmr.alarm(0, 1000, 0, function()
dofile("wifi-connect.lua");
dofile("water-tank.lua");
end)
|
--[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... |
local M = {}
local levels = vim.log.levels
local uv = vim.loop
-- vim.notify wrappers
M.notify = {}
M.notify.info = function(message)
vim.notify(message, levels.INFO, { title = "workspaces.nvim" })
end
M.notify.warn = function(message)
vim.notify(message, levels.WARN, { title = "workspaces.nvim" })
end
M.no... |
project "lua_gl"
language "C"
files { "luagl/src/**.cpp" , "luagl/src/**.c" , "luagl/src/**.h" , "luagl/include/**.h" ,}
-- "freeglut/src/**.cpp" , "freeglut/src/**.c" , "freeglut/src/**.h" , "freeglut/include/**.h" }
excludes{ "src/Interpreter.c" , }
links { "lib_lua" }
--defines "FREEGLUT_STATIC"
if WINDOWS th... |
function findRotation(x1,y1,x2,y2)
local t = -math.deg(math.atan2(x2-x1,y2-y1))
if t < 0 then t = t + 360 end
return t
end
function getPointFromDistanceRotation(x, y, dist, angle)
local a = math.rad(90 - angle);
local dx = math.cos(a) * dist;
local dy = math.sin(a) * dist;
retur... |
data:extend({
-- Startup
{
type = "double-setting",
name = "Noxys_Swimming-swimming-speed",
setting_type = "startup",
minimum_value = 0.01,
default_value = 0.35,
maximum_value = 10,
order = "a"
},
{
type = "double-setting",
name = "Noxys_Swimming-swimming-deep-speed",
setting_type = "startup",
... |
Config = {}
Config.DrawDistance = 100.0
Config.JobName = "salvage"
Config.PlatePrefix = "OCEANMAN"
Config.Locale = 'fr'
Config.Vehicles = {
Truck = {
Spawner = 1,
Label = 'dinghy',
Hash = "dinghy",
Livery = 0,
Trailer = "none"
}
}
Config.Zones = {
Cloakroom = {
Pos = {x ... |
ITEM.name = "Harmonica"
ITEM.description = "A playable harmonica."
ITEM.longdesc = "A free reed wind instrument that is used throughout the Zone in which it is featured in many musical genres. The instrument appears to have around 10 holes which the user would blow into to produce a sound. Some STALKERS have mastered t... |
module(...)
local specification = [=====[
--[[
int, int2, int3, int4
float, float2, float3, float4
float2x2, float3x3, float4x4
bool, bool2, bool3, bool4
strin
--]]
local keywords = {
"void",
"attribute", "const", "uniform", "varying",
"break", "continue", "do", "for", "while",
"if", "else",
"void", "true", "f... |
local diagnostic, fn, lsp = vim.diagnostic, vim.fn, vim.lsp
local fmt = string.format
local function get_diagnostic(prefix, severity)
local count
if fn.has('nvim-0.6') == 0 then
count = lsp.diagnostic.get_count(0, severity)
else
local severities = {
['Warning'] = diagnostic.severity.WARN,
['E... |
--[[--------------------
# four <a href="https://travis-ci.org/lubyk/four"><img src="https://travis-ci.org/lubyk/four.png" alt="Build Status"></a>
Lightweight OpenGL rendering engine for providing a basic abstraction layer
for compositional GLSL shader programming and rendering.
<html><a href="https://github... |
local _=function(event)
log("pickup event:"..Inspect(event))
--[[example:
]]--
assert(Session.isServer)
local entity=Entity.find(event.entityName,event.entityId,event.entityLogin)
-- problem: broadcasted delete will return later
-- solution1: do not broadcast deletion to caller
-- generic: broadcast fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.