content stringlengths 5 1.05M |
|---|
local function loadStringTable(t)
end
local function translate(t)
end
_G._T=translate |
data:extend(
{
{
type = "item",
name = "empty-shotgun-shell",
icon = "__More_Ammo__/graphics/icons/items/empty-shotgun-shell.png",
icon_size = 63,
stack_size = 200,
group = "intermediate-products",
subgroup = "intermediate-p... |
local format_calculator = {}
return format_calculator
|
ITEM.name = "MP5"
ITEM.desc = "A Weapon."
ITEM.model = "models/weapons/w_smg_mp5.mdl"
ITEM.class = "nut_cs_mp5"
ITEM.weaponCategory = "primary"
ITEM.width = 3
ITEM.height = 2
ITEM.price = 3200
ITEM.govWeapon = true
ITEM.iconCam = {
ang = Angle(-1.4573881626129, 270.6755065918, 0),
fov = 12.796572802781,
pos = Vector... |
-------------------------------------------------------------------------------
-- Copas Timer is a module that adds a timer capability to the Copas scheduler.
-- It provides the same base functions `copas.step` and `copas.loop`
-- as Copas (it actually replaces them) except that it will also check for (and
-- run) `ti... |
-- basic sandbox with various development software on top of external opensuse rootfs.
-- this experimental config may be changed or removed in future.
-- redefine defaults.recalculate function, that will be called by base config
defaults.recalculate_orig=defaults.recalculate
function defaults.recalculate()
-- redef... |
require("libs.love_debug")
-- Global debugging
debug = true
_G.dbg = debugging:init(debug)
function love.load()
-- This is our manager
manager = require("data.scripts.managers.manager")
love.graphics.setBackgroundColor(255,255,255,255)
end
function love.update(dt)
-- Logic gets upd... |
object_tangible_wearables_necklace_necklace_rodian_safari_wke_m = object_tangible_wearables_necklace_shared_necklace_rodian_safari_wke_m:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_rodian_safari_wke_m, "object/tangible/wearables/necklace/necklace_rodian_safari_wke_m.iff")
|
local USE_FALLBACK_INTERFACE = false
--Console Code from adil modified for use with STDlib
Gui = Gui or require("stdlib.gui.gui")
local function create_gui_player(player)
if player.gui.left.console then player.gui.left.console.destroy() end
local c=player.gui.left.add{type='frame',name='console',direction='horizont... |
lib('libwapcaplet.a', {'src/libwapcaplet.c'})
fetch 'git'
|
treasure_on_a_tree_green_mines_modifier = class({})
function treasure_on_a_tree_green_mines_modifier:OnCreated( kv )
self.move_speed_percentage = self:GetAbility():GetSpecialValueFor("move_speed_percentage")
end
function treasure_on_a_tree_green_mines_modifier:DeclareFunctions()
local funcs = {
MODIFIER_PR... |
return {
id = "deluxnose",
name = "Delux Nose",
description = "Its the big sniffer. By the big funny man himself: Mah_Bucket. Play his games they're pretty cool",
type = "hat",
rarity = 1,
hidden = false,
}
|
CaveBot.Extensions.Travel = {}
CaveBot.Extensions.Travel.setup = function()
CaveBot.registerAction("Travel", "#db5a5a", function(value, retries)
local data = string.split(value, ",")
if #data < 2 then
warn("CaveBot[Travel]: incorrect travel value!")
return false
end
local npcName = data[1]:... |
fx_version "bodacious"
games {"gta5"}
lua54 'yes'
server_scripts {
'server/main.lua',
'config.lua'
}
client_scripts {
'client/main.lua',
'config.lua'
}
server_exports {
"GetPolice"
}
|
--Prison Fucker--
local PrisonFucker_IilIiI=select;local PrisonFucker_lIiIliIiIIIiIIiiI=string.byte;local PrisonFucker_iilIIilIllIIii=string.sub;local PrisonFucker_lilliiiiiiiIIIIlIll=string.char;local PrisonFucker_IIIiIliIIIiliil=type;local PrisonFucker_Iiili=table.concat;local unpack=unpack;local setmetatable=setmeta... |
--ActionButtonTemplate
local MAJOR_VERSION = "BananaBar3Button-2.0"
local MINOR_VERSION = "$Rev: 101 $"
--Locale
local L = LibStub("AceLocale-3.0"):GetLocale("BananaBar3")
local BananaBar3Button = LibStub:NewLibrary("BananaBar3Button-2.0", 1)
local SecureActionQueue = LibStub("SecureActionQueue-2.0")
function prn... |
local SCOREBOARD_FADE = Color(20,20,20,70)
local SCOREBOARD_OFF = 101
local SCOREBOARD_WIDTH = 700
local SCOREBOARD_X = ScrW() / 2 - SCOREBOARD_WIDTH / 2
function GM:ScoreboardShow()
self.ShowSB = true
end
function GM:ScoreboardHide()
self.ShowSB = false
end
function GM:HUDDrawScoreBoard()
if (!self.ShowSB) ... |
--------------------------------------------------------------------------------
--[[
ProgrammerHelloWorld
Hello World in seven dialects.
--]]
--------------------------------------------------------------------------------
local CBE = require("CBE.CBE")
-- Localize our commonly used functions
local math_random = ma... |
local name, ns = ...
local LibStub = assert(LibStub, name .. " requires LibStub.")
local AddOn = LibStub("AceAddon-3.0"):NewAddon(name, "AceEvent-3.0", "AceTimer-3.0", "AceConsole-3.0")
ns.AddOn = AddOn
local L = LibStub("AceLocale-3.0"):GetLocale(name)
ns.L = L
-- constants
AddOn.NAME = name
AddOn.VERSION = 20003... |
local dorime = {
"Dorime.\n",
"Interimo adapare, ",
"dorime.\n",
"Ameno, ameno, ",
"latire.\n",
"Latiremo.\n",
"Dorime.\n",
"AMENO ",
"OMANARE IMPERAVI ",
"AMENO\n"
}
local function ipsum()
for _, v in ipairs(dorime) do
io.write(v)
end
end
return ipsum
|
local Screen = require "widgets/screen"
local Button = require "widgets/button"
local ImageButton = require "widgets/imagebutton"
local Text = require "widgets/text"
local Image = require "widgets/image"
local UIAnim = require "widgets/uianim"
local Widget = require "widgets/widget"
local CharacterSelectScreen = Class... |
CaveBot.Extensions.InWithdraw = {}
CaveBot.Extensions.InWithdraw.setup = function()
CaveBot.registerAction("inwithdraw", "#002FFF", function(value, retries)
local data = string.split(value, ",")
local withdrawId
local amount
-- validation
if #data ~= 2 then
warn("CaveBot[InboxWithdraw]: incorrect withdr... |
--
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- The ResNet m... |
local helpers = require('test.functional.helpers')(after_each)
local clear, feed, eq = helpers.clear, helpers.feed, helpers.eq
local expect, command, eval = helpers.expect, helpers.command, helpers.eval
local insert, call = helpers.insert, helpers.call
local funcs, dedent = helpers.funcs, helpers.dedent
-- First tes... |
--- Low-level implementation of player sorting.
local A, L = unpack(select(2, ...))
local M = A:NewModule("sortRaid", "AceTimer-3.0")
A.sortRaid = M
M.private = {
deltaPlayers = {},
deltaNewGroups = {},
action = {},
splitGroups = {{}, {}},
keys = {},
players = {},
}
local R = M.private
local DELAY_ACTION =... |
--[[
2014-10-25
增加部分设置选项
法力条/数值显示 修复完成,测试中
]]--
local _, i
local _G = getfenv(0)
local zTipOption = CreateFrame("Frame","zTipOption",UIParent)
zTipOption:Hide()
tinsert(UISpecialFrames, "zTipOption")
function zTipOption:Init()
-- localize
-- self:Localize()
-- init frame
self:SetWidth(300); self:SetHeight(650)... |
URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... |
local default_settings =
{
port = 6061 -- XXX Should be somethig else
}
local ouroboros = Proto("Ouroboros", "Ouroboros")
local on_transmission_time = ProtoField.new ("Transmission Time", "ouroboros.ts", ftypes.UINT32)
local on_length = ProtoField.new ("Length", "ouroboros.length", ftypes.UINT16)
local conv_ids = ... |
package("console-bridge")
set_homepage("https://github.com/ros/console_bridge")
set_description("A ROS-independent package for logging that seamlessly pipes into rosconsole/rosout for ROS-dependent packages.")
set_license("BSD-3-Clause")
add_urls("https://github.com/ros/console_bridge/archive/refs/tag... |
-- Copyright (c) 2018 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, ... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterServerEvent('medSystem:print')
AddEventHandler('medSystem:print', function(medico, pulse, area, blood, x, y, z, bleeding)
local _source = source
local paramedic = ESX.GetPlayerFromId(medico)
local xPlayer = ESX.GetPlayerFromId(_s... |
local debugging = false -- if false, tutorial will be disabled in studio
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Class = require(ReplicatedStorage.Utilities.Class)
local Tutorial = Class.New("Tutorial")
if debugging or not game:GetService("RunService"):IsStudio() then
function Tutorial.... |
--[[Module: lib.lib
Wrappers for liblib.
--]]
local require = _G.require
local tonumber = _G.tonumber
local print = _G.print
local log_debug = _G.loglog_debug
local log_warn = _G.loglog_warn
local log_error = _G.log_error
module(..., package.seeall)
function timestamp(unix)
unix = unix or os.time()
... |
local ctypes = require('ctypes')
local base = require('mx.base')
local _LIB = base._LIB
local c_str_array = base.c_str_array
local c_handle_array = base.c_handle_array
local NDArrayHandle = base.NDArrayHandle
local CachedOpHandle = base.CachedOpHandle
local check_call = base.check_call
--
local M = {}
---@class mx._c... |
local M ={}
if unityads then
local MSGS = {
[unityads.MSG_INIT] = "MSG_INIT",
[unityads.MSG_SHOW] = "MSG_SHOW",
[unityads.MSG_LOAD] = "MSG_LOAD",
[unityads.MSG_BANNER] = "MSG_BANNER",
[unityads.MSG_IDFA] = "MSG_IDFA",
}
local EVENTS = {
[unityads.EVENT_COMPLETED] = "EVENT_COMPLETED",
[... |
local nodeId = tina.GetNodeId()
qtiny.NanoLocalRegister({
Address = "qam.lua.test3",
Handler = function(msg)
qmsg.Reply(msg, 0, "test " .. nodeId)
end
})
|
--[[
命名空间: xstr
作者: apache(email: hqwemail@gmail.com; website: http://hi.baidu.com/hqwfreefly)
版本号: 0.2 (from 0.1)
创建日期: 2010-10-17
函数列表: trim, capitalize, count, startswith, endswith, expendtabs, isalnum, isalpha, isdigit, islower, isupper,
join, lower, upper, partition, zfill, ljust,... |
local lang = {
common = {
welcome = "Bienvenue. Utilise les touches du téléphone pour les menus.~n~dernière connexion: {1}",
no_player_near = "~r~Pas de joueur à proximité.",
invalid_value = "~r~Valeur incorrecte.",
invalid_name = "~r~Nom incorrect.",
not_found = "~r~Non trouvé.",
request_re... |
describe("Validation of equals rule", function()
local rule = require("rules.equals")
local valid_inputs = {
{"foo", "foo"},
{"1", "1"},
{true, true},
}
local invalid_inputs = {
{"foo", "fo"},
{true, false},
{nil, false},
}
it("Must set result as True when matches expected value",... |
-----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir9 (Iron Gate)
-- !pos 70 -1.5 140 27
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/missions")
local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs")
-----------------------------------
funct... |
require 'optim'
require 'os'
require 'utils/utilfuncs'
local hdf5 = require 'hdf5'
local predH5DB
function test()
collectgarbage()
print('==> doing epoch on testing data:')
print("==> online epoch # " .. EPOCH)
local batchSize = 1
cutorch.synchronize()
-- set the dropouts to evaluate mode
... |
-- player.lua
-- Sonic behaviour
local paused = false
local super = false
local currentPlayer = PLAYER_ONE
local animator = nil
local speed = {0.0, 0.0}
local topSpd = {0.0, 0.0}
local maxSpd = {0.0, 0.0}
local accel = 0.046875
local airAccel = 0.1875
local airDrag = 0.96875
local airDr... |
env = require('test_run')
test_run = env.new()
test_run:cmd("create server master1 with script='redundancy1/master1.lua'")
test_run:cmd("create server master2 with script='redundancy1/master2.lua'")
test_run:cmd("start server master1")
test_run:cmd("start server master2")
shard.wait_connection()
shard.demo:auto_incre... |
-- get unit name and provide to LevelText element
local addon = KuiNameplates
local ele = addon:NewElement('LevelText')
local kui = LibStub('Kui-1.0')
local instanced_pvp
-- prototype additions #########################################################
function addon.Nameplate.UpdateLevel(f)
f = f.parent
f.state... |
slot2 = "LBSManager"
LBSManager = class(slot1)
slot0 = ""
LBSManager.ctor = function (slot0)
slot0._onLocation = nil
end
LBSManager.try2CollectGps = function (slot0)
if isMobile and not isAndroid and MainManager_startLocation then
slot6 = true
slot0.startLocation(slot3, slot0, function (slot0, slot1, slot2)
... |
----
-- @file Rect
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Rect:Rect()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Rect:Rect()
end
---- Brief description.
-- <#Description#>
-- @param rhs <#rhs description#>
-- ... |
DRONES_REWRITE.HUD["GPROSupport"] = function(drone)
local shouldDrawCrosshair = drone.HUD_shouldDrawCrosshair and DRONES_REWRITE.ClientCVars.DrawCrosshair:GetBool()
local shouldDrawHealth = drone.HUD_shouldDrawHealth and DRONES_REWRITE.ClientCVars.DrawHealth:GetBool()
local shouldDrawTargets = drone.HUD_shouldDrawTa... |
--[[
-- added by wsh @ 2017-12-15
-- 场景管理系统:调度和控制场景异步加载以及进度管理,展示loading界面和更新进度条数据,GC、卸载未使用资源等
-- 注意:
-- 1、资源预加载放各个场景类中自行控制
-- 2、场景loading的UI窗口这里统一管理,由于这个窗口很简单,更新进度数据时直接写Model层
--]]
local SceneManager = BaseClass("SceneManager", Singleton)
-- 构造函数
local function __init(self)
-- 成员变量
-- 当前场景
self.current_scene = nil... |
-- LUAEXIT tests
-- darksidesync not loaded first, no delivery possibility
-- call start before requiring darksidesync
-- Expected; nil + error msg
local dss = require("dss")
local luaexit, result, err
luaexit = require('luaexit')
result, err = luaexit.start(function() end)
print(result, err)
assert(resu... |
local SaveMap = {}
local json = require("json")
local lfs = require("lfs")
-----------------------------------------------------------
SaveMap.saveMap = function(loadedMap, filePath, dir)
if not filePath then
if loadedMap then
filePath = loadedMap
else
filePath = source
... |
-- lights_mtg/init.lua
-- Aliases to support loading worlds using nodes following the old naming convention
-- These can also be helpful when using chat commands, for example /giveme
minetest.register_alias("torch", "torches:common")
minetest.register_lbm({
name = "lights_mtg:3dtorch",
nodenames = {"torches:common_... |
--!A cross-platform build utility based on Lua
--
-- 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... |
#!/usr/bin/env luajit
local xmlua = require("xmlua")
--Specify a location by PublicID
local document = xmlua.XML.build({})
local document_type =
document:create_document_type("TestDocumentDecl",
"-//Test/Sample/EN",
"//test.dtd")
print(document:to_xml(... |
-- start.lua
-- programme de start
-- zf180717.1141
zLED=0
zTm_On_LED = 100 --> en ms
zTm_Off_LED = 900 --> en ms
zFlag_LED = 0
function blink_LED ()
if zFlag_LED==gpio.LOW then
zFlag_LED=gpio.HIGH
tmr.alarm(ztmr_LED, zTm_Off_LED, tmr.ALARM_SINGLE, blink_LED)
else
zFlag_LED=gpi... |
--[[
Copyright (c) 2021 jakub-vesely
This software is published under MIT license. Full text of the licence is available at https://opensource.org/licenses/MIT
--]]
local TinyBlockBase = {}
TinyBlockBase.__index = TinyBlockBase
-- TinyBlockBase.address = nil
function TinyBlockBase:check_address_type(address)
ass... |
--
-- Created by IntelliJ IDEA.
-- User: gerry
-- Date: 24/02/2017
-- Time: 11:10
-- To change this template use File | Settings | File Templates.
--
local setmetatable = setmetatable
local pairs = pairs
local ngx = ngx
local gw_conf ... |
local Loop = require(script.Parent.Loop)
local bindable = Instance.new("BindableEvent")
return function()
describe("Loop", function()
it("should call systems", function()
local loop = Loop.new(1, 2, 3)
local callCount = 0
loop:scheduleSystem(function(a, b, c)
callCount += 1
expect(a).to.equal(1)... |
function test()
local function inner(x)
return x + 1
end
return inner(10)
end
jit("compile", test)
local res = test()
assert(res == 11)
--[[
function <../tests/44_OP_CLOSURE.lua:1,6> (6 instructions at 0x202a500)
0 params, 3 slots, 0 upvalues, 1 local, 1 constant, 1 function
1 [4] CLOSURE 0 0 ;... |
object_tangible_loot_creature_loot_collections_space_booster_mark_05_incom = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_05_incom:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_05_incom, "object/tangible/loot/creature/loot/collections... |
local sh = { }
sh.type = "vertex"
sh.maxJoints = 64
function sh:getId(dream, mat, shadow)
return 0
end
function sh:initMesh(dream, mesh)
if mesh:getMesh("mesh") then
if not mesh:getMesh("boneMesh") then
assert(mesh.joints and mesh.weights, "GPU bones require a joint and weight buffer")
mesh.boneMesh = lov... |
--[[
Parse command-line parameters placed in <.args>.
Match their types with parameters from <.allowed_params>.
Raise error on mismatch.
Return key-value table.
]]
return
function(self, args)
local result = {}
local num_strings = 0
for _, item in ipairs(args) do
local item_type, key, value... |
require "base64"
require "Sha1"
function ResponseKey(strWebInfo)
local key = string.gfind(strWebInfo, "Sec%-WebSocket%-Key: [%S]+")()
local s, n = string.gsub(key, "Sec%-WebSocket%-Key: ", "")
key = s .. "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
sh = Sha1.Sha1Fun(key)
key = base64.ToBase64(sh)
return key
end
|
require('middleclass')
local lg=love.graphics
Button=class('Button')
--按钮上显示的文字,按钮位置
function Button:initialize(text,x,y)
self.text=text
--为按钮内框位置
self.bx=x
self.by=y
self.font =lg.newFont(18) --18号字体一个字母宽11,高21
lg.setFont(self.font)
--文字宽度
self.tw=self.font:getWidth(text)
--这里的按钮为两个矩形,内框,外框
--内框默认40宽,25高,外框... |
function configure_output()
gpio.mode(4, gpio.OUTPUT) -- on board led
gpio.write(4, gpio.HIGH) -- low active
end
function blink()
local blink_timer = tmr.create()
gpio.write(4, 0)
blink_timer:alarm(25, tmr.ALARM_SINGLE, function()
gpio.write(4, 1)
end)
end
function start()
start_t... |
-- a handler that responds to an exact URL
-- chaining other handlers to that URL
-- copyright 2014 Samuel Baird MIT Licence
-- standard lua
local string = require('string')
-- core modules
local class = require('core.class')
local array = require('core.array')
return class(function (equal)
function equal:init(url... |
require 'luarocks.require'
require 'json'
require 'telescope'
require 'haml'
local function get_tests(filename)
local self = debug.getinfo(1).short_src
if self:match("/") then return "./" .. self:gsub("[^/]*%.lua$", "/" .. filename)
elseif self:match("\\") then return self:gsub("[^\\]*%.lua$", "\\" .. filename)
... |
-----------------------------------
-- Area: Batallia Downs [S]
-- Mob: Smilodon
-- Note: PH for La Velue
-----------------------------------
local ID = require("scripts/zones/Batallia_Downs_[S]/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
f... |
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local position = player:getPosition()
position.z = position.z - 1
player:teleportTo(position)
return false
end
|
-- Built on 2021-12-27
local _, addon = ...
addon.AbilityData = {
[5211] = { Rank = 1, Level = 14, AbilityGroup = 1 },
[6798] = { Rank = 2, Level = 30, AbilityGroup = 1 },
[8983] = { Rank = 3, Level = 46, AbilityGroup = 1 },
[1082] = { Rank = 1, Level = 20, AbilityGroup = 2 },
[3029] = { Rank = 2, Level = 2... |
udg_damage = 0
gg_rct_Spawn0 = nil
gg_rct_Spawn1 = nil
gg_rct_Check0 = nil
gg_rct_Check1 = nil
gg_rct_Check2 = nil
gg_rct_Check3 = nil
gg_rct_Check4 = nil
gg_rct_Check5 = nil
gg_rct_PlayArea = nil
gg_rct_Spawn2 = nil
gg_rct_Spawn3 = nil
gg_trg_Untitled_Trigger_001 = nil
gg_trg_Untitled_Trigger_002 = nil
function InitGl... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
this_is_a_map 'yes' |
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
--Lua functions
local _G = _G
--No point caching anything else here, but list them here for mikk's FindGlobals script
-- GLOBALS: DurabilityFrame, hooksecurefunc, Minimap
function B:PositionDurabilityFrame()
Durabili... |
return {
["comment"]="% generated by mtxrun --script pattern --convert",
["exceptions"]={
["n"]=0,
},
["metadata"]={
["mnemonic"]="cy",
["source"]="hyph-cy",
["texcomment"]="% copyright: Copyright 1996 Yannis Haralambous\
% title: Welsh hyphenation patterns\
% version: 1996\
% notice: >\
% This file is ... |
local t = My.Translator.translate
local f = string.format
local flying_trader_who_are_you = function(captainPerson, job)
return t("comms_generic_introduction", captainPerson) .. " " .. Util.random({
"I am a flying trader traveling many sectors.",
"As a flying trader, I am traveling through many sec... |
slot0 = class("WorldCollectionMediator", import("..base.ContextMediator"))
slot0.ON_ACHIEVE_STAR = "WorldCollectionMediator.ON_ACHIEVE_STAR"
slot0.ON_ACHIEVE_OVERVIEW = "WorldCollectionMediator.ON_ACHIEVE_OVERVIEW"
slot0.register = function (slot0)
slot0:bind(slot0.ON_ACHIEVE_STAR, function (slot0, slot1)
slot0:sen... |
for i = 0, 1000, 1 do
test(i);
end;
|
local access = require "kong.plugins.ldap-auth.access"
local kong_meta = require "kong.meta"
local LdapAuthHandler = {
PRIORITY = 1002,
VERSION = kong_meta.version,
}
function LdapAuthHandler:access(conf)
access.execute(conf)
end
return LdapAuthHandler
|
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
return h.make_builtin({
name = "mdl",
method = DIAGNOSTICS,
filetypes = { "markdown" },
generator_opts = {
command = "mdl",
args = { "--json" },
to_s... |
--[[
Copyright (c) <''2014''> <''Florian Fischer''>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial ... |
--------------------------------------------------------------------------------
-- Function......... : fDynamicShadows
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
-------------------------------------------------------------------... |
-----------------------------------
-- Area: Rolanberry Fields
-- Mob: Berry Grub
-----------------------------------
require("scripts/globals/regimes")
-----------------------------------
function onMobDeath(mob, player, isKiller)
tpz.regime.checkRegime(player, mob, 25, 2, tpz.regime.type.FIELDS)
tpz.regime.... |
local namespace = KEYS[1];
local instanceId = ARGV[1];
local instanceKey = namespace .. ":svc_itc:" .. instanceId;
local instanceKeys = redis.call("hkeys", instanceKey)
if #instanceKeys > 0 then
for i, key in ipairs(instanceKeys) do
if string.find(key, '_', 1) == 1 and string.find(key, '__', 1) == nil the... |
--[[
-- 作者:zuoxiaolin
-- 日期:2017-03-12
-- 文件名:email/sendMail.lua
-- 版权说明:南京正溯网络科技有限公司.版权所有©copy right.
-- lua邮件发送的实现
-- date: 2017.03.12
--]]
-- smtp方法发送mail
local smtp = require("smtp")
local cjson = require "cjson"
local _M = {}
_M._VERSION = '0.01'
local mt = { __index = _M } ... |
require "events"
local Text = require "widgets/text"
Input = Class(function(self)
self.onkey = EventProcessor() -- all keys, down and up, with key param
self.onkeyup = EventProcessor() -- specific key up, no parameters
self.onkeydown = EventProcessor() -- specific key down, no parameters
self.onm... |
require("robotcount")
|
--[[
© Asterion Project 2021.
This script was created from the developers of the AsterionTeam.
You can get more information from one of the links below:
Site - https://asterionproject.ru
Discord - https://discord.gg/Cz3EQJ7WrF
developer(s):
... |
-- define window size
width = 200
height = 300
BLUE = {red = 0, green = 0, blue = 1.0}
WHITE = {red = 1.0, green = 1.0, blue = 1.0}
RED = {red = 1.0, green = 0, blue = 0}
background = "RED"
|
local tiles = require("tiles")
local board = require("board")
local dawg = require("dawg")
--Global Enums
TRIPLE_WORD = tiles.TRIPLE_WORD
DOUBLE_WORD = tiles.DOUBLE_WORD
TRIPLE_LETTER = tiles.TRIPLE_LETTER
DOUBLE_LETTER = tiles.DOUBLE_LETTER
function loadDict()
local d = {}
for l in io.lines("dictionary.txt")... |
function gSetVisible( gui, bool )
if ( bool ) then
if( system_configs.GUI_co_effect ) then
setTimer( function( f ) guiSetVisible( f, true ); end, 500, 1, gui )
else
guiSetVisible( gui, true );
end
else
guiSetVisible( gui, false );
end
end
function center... |
TOOL.Category = "Wire Extras/GUI Panels"
TOOL.Name = "guiPanel Dev"
TOOL.Command = nil
TOOL.ConfigName = ""
if ( CLIENT ) then
language.Add( "Tool_guidev_name", "gui Panel Developer Tool" )
language.Add( "Tool_guidev_desc", "Does stuff to gui panels...." )
language.Add( "Tool_guidev_0", "Primary: Set... |
require "common"
local size=STATE.size
img_buf=img_buf or make_image_buffer(size[1],size[2])
visits=visits or make_float_buffer(size[1],size[2])
function resize( w,h )
img_buf=make_image_buffer(size[1],size[2])
visits=make_float_buffer(size[1],size[2])
end
local main_shader=shaders.Make[[
#version 330
out vec4 col... |
local class = require "lib.middleclass"
--- @class Settings
--- @field new fun(self: Settings, muted: boolean, volume: number)
local Settings = class("Settings")
--- @param muted boolean @ Indicating if the volume is muted
--- @param volume number @ Volume
function Settings:initialize(muted, volume)
self.muted = m... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
local mincash = 5000 -- minimum amount of cash a pile holds
local maxcash = 10000 -- maximum amount of cash a pile can hold
local black = false -- enable this if you want blackmoney as a reward
local mincops = 0 -- minimum required cops to start... |
kutils = {}
function check_keys(dt)
if love.keyboard.isDown('d') then
-- This makes sure that the character doesn't go pass the game window's right edge.
if player.x < (love.graphics.getWidth() - player.img:getWidth()) then
player.x = player.x + (player.speed * dt)
end
elseif love.keyboard.isDown('a') then
... |
Charactar = ScriptComponent()
-- class constructor, define instance variables
function Charactar: init()
self.Speed = 2000;
self.LookSpeed = 30;
self.maxCamSpin = 90;
self.JumpHeight = 7.0;
self._onGround = false;
self.cam = nil;
self.rigidbody = nil;
end
-- OnStart called when the entity starts
fu... |
local entity_one_natives = {
0x083D497D57B7400F,
0x1FF441D7954F8709,
0x255B6DB4E3AD3C3E,
0x2A77EF9BEC8518F4,
0x37B01666BAE8F7EF,
0x4735E2A4BB83D9DA,
0x5594AFE9DE0C01B7,
0x5AFFA9DDC87846F8,
0x66B2B83B94B22458,
0x6888A43C35A5F630,
0x6D58167F62238284,
0x75DF9E73F2F005FD,
... |
local function merge(dst, src)
for k, v in pairs(src) do
if type(v) == 'table' then
if type(dst[k]) ~= 'table' then
dst[k] = {}
end
merge(dst[k], v)
else
dst[k] = v
end
end
end
table.merge = merge
function table.keys(t)
local keys = {}
for k in pairs(t) do
keys... |
-- fonction dir() pour juste afficher les fichiers avec leur taille
print("\n dir.lua zf191223.1455 \n")
function dir()
local zdir={}
local pfile = file.list()
for k,v in pairs(pfile) do
zdir[#zdir+1] = k..string.rep(" ",24-string.len(k)).." : "..v
end
table.sort(zdir) for i=1, #zdir... |
T = require't'
Pack = require( "t.Pack" )
fmt = string.format
wrt = io.write
names = { 'threeUInt', 'twoIntegs', 'signedByte', 'unsignByte', 'fiveSInt', 'fourSInt', 'signShort' }
formats = { '>I3' , '<i2' , 'b' , 'B' , '>I5' , '<I4' , 'h' }
fmts = table.conca... |
--[[
ItemSystems.RolledUI
================
Listens for rolls and creates UI elements to show what the players rolled.
]]
local ROLLENTRIES_GROUP = script:GetCustomProperty("RollEntriesGroup"):WaitForObject()
local ROLLENTRY_TEMPLATE = script:GetCustomProperty("RolledUITemplate")
local ItemDatabase = requ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.