content stringlengths 5 1.05M |
|---|
--// Vortex Gauntlets created by SavageMunkey
--// Thx for ideas and help: dangerspookycanyon(3 Attack Ideas, Body Suit Prototypes),georgeyeo(RayCast help), AltairStarMaster(like 99999999 attack ideas), and others
Plr = game.Players.LocalPlayer
Char = Plr.Character
Mouse = Plr:GetMouse()
local sine,change = 0,1
-------... |
--Ok cancel dialog script.
--When form load.
function ud_ok_cancel_fm_load(self)
return 1
end
--When form show.
function ud_ok_cancel_fm_show(self)
local ui = self:GetUI()
self.Left = (ui.Width - self.Width) / 2
self.Top = (ui.Height - self.Height) / 2
return 1
end
--When ok butt... |
teststring = "foo"
bar = {
barstr = "apple"
} |
local parse = {}
local urlType = {
"other", -- 1
"block", -- 2
"home", -- 3
"article", -- 4
"video", -- 5
"category", -- 6
"message", -- 7
"user", -- 8
"comment", -- 9
"action" -- 10
}
local newTaskIdType = {"home", "category", "message"}
local actType = ... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for WHCCalendar
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
require "ICComm"
require "I... |
local command = require('distant.command')
describe('command.parse_input', function()
it('should fail if quote is unclosed', function()
assert.has.errors(function()
command.parse_input('"')
end)
end)
it('should support empty string', function()
local cmd = command.parse... |
--[[
for n in pairs(_G) do
print(n)
end
--]]
print_table = function (tbl)
print("-------- mdb start -------");
for kn, n in pairs(tbl) do
if type(n) ~= "table" then
if type(n) == "function" then
print(kn.."=<function>")
else
print(kn.."="..n)
end
else
print("'"..kn.."' table ")
... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "ISUI/ISPanelJoypad"
---@class ISClothingInsPanel : ISPanelJoypad
ISClothingInsPanel ... |
---@class ClubFinderInfo
C_ClubFinder = {}
---@param clubFinderGUID string
function C_ClubFinder.ApplicantAcceptClubInvite(clubFinderGUID) end
---@param clubFinderGUID string
function C_ClubFinder.ApplicantDeclineClubInvite(clubFinderGUID) end
---@param clubFinderGUID string
function C_ClubFinder.CancelMembership... |
-- print object
function po(object)
if not object then
print("nil");
return;
end
if object.id then
utils::printObject(object:id());
else
utils::printObject(object);
end
end
-- print objc object properties
function pd(object)
if object.id then
utils::print... |
local Mechanics = {}
local VehiclesInGarage = {}
local TempColors = {}
AddEvent("OnPackageStart", function()
log.info("Loading mechanics...")
local _table = File_LoadJSONTable("packages/" .. GetPackageName() .. "/mechanic/mechanics.json")
for _, config in pairs(_table) do
CreateMechanic(config)
... |
describe('Set', function()
local Set = require 'Set'
it('should create an empty set when given no elements', function()
assert.are.same({}, Set())
assert.are.same({}, Set({}))
end)
it('should create a set of the provided elements', function()
assert.are.same({
hello = true,
goodbye = t... |
----------------------------------------------------------------------------------------------------
-- localized English (social module) strings
--
--get the add-on engine
local Engine = _G.Cecile_QuickLaunch;
--prepare locale
local L = LibStub("AceLocale-3.0"):NewLocale(Engine.Name, "enUS", true);
if not L then ret... |
local __def = function(ADDON_NAME, LIB, Table, pformat)
local format, unpack, pack, tinsert = string.format, Table.unpackIt, Table.pack, Table.insert
local C = LIB:NewAceLib('Config')
if not C then return end
---- ## Start Here ----
function C:OnAfterInitialize(...)
local args = unpack({..... |
local playsession = {
{"MrJSelig", {70586}},
{"Kastroil", {1052}},
{"Paladin_Brandis", {61139}},
{"Gas1", {6020}}
}
return playsession |
-- vm-provisioning-plugin-for-slurm
-- Copyright 2019-2021 VMware, Inc.
-- SPDX-License-Identifier: BSD-2
--
-- This product is licensed to you under the BSD-2 license (the "License").
-- You may not use this product except in compliance with the BSD-2 License.
--
-- This product may include a number of subcomponent... |
local skynet = require "skynet"
-- 启动服务(启动函数)
skynet.start(function()
-- 启动函数里调用Skynet API开发各种服务
print("======Server start=======")
local gateserver = skynet.newservice("mygateserver") --启动刚才写的网关服务
skynet.call(gateserver, "lua", "open", {--需要给网关服务发送open消息,来启动监听
port = 8888, --监听的端口
ma... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Boid Meat"
ITEM.model = Model("models/kek1ch/hide_burer.mdl")
ITEM.width = 1
ITEM.height = 1
ITEM.description = "The uncooked meat from some passive airborne creature."
ITEM.category = "Non-Approved Food";
... |
pathtest = string.match(test, "(.*/)") or ""
dofile(pathtest .. "common.lua")
function thread_init(thread_id)
local table_name
set_vars()
table_name = "sbtest".. (thread_id+1)
db_query("PREPARE testplan (text, int) AS UPDATE ".. table_name .." SET c=$1 WHERE id=$2")
end
function event(thread_id)
local... |
local cfg = {}
-- define static item transformers
-- see https://github.com/ImagicTheCat/vRP to understand the item transformer concept/definition
cfg.item_transformers = {
-- example of harvest item transformer
--[[{
name="Trash Can", -- menu name
-- permissions = {"harvest.water_bottle_tacos"}, -- you ... |
local cmp = require("cmp")
local luasnip = require("luasnip")
local pairs = require("nvim-autopairs.completion.cmp")
vim.opt.completeopt = "menuone,noselect"
local config = {
completion = {
completeopt = "menu,menuone,noinsert",
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(... |
fx_version 'cerulean'
game 'gta5'
author 'FuriousFoxGG'
description 'An announcment script made by FuriousFoxGG. with T-Notify'
version '1.0'
server_script 'server.lua'
|
--[[
Quest system used in HeroBorne
To learn how to use it, the instruction video can be found here:
https://www.youtube.com/watch?v=LaFIAhgfVqk
Update Video:
https://youtu.be/mYWO6c5-xhI
All Quest data can be found in QUESTDATA.lua in dependencies.
The JSON editor I use is: https://jsoneditoronline.org/
Checkou... |
function Emote.UI.DrawWedge(x, y, r, r2, startAng, endAng, step, cache)
local positions = {}
local inner = {}
local outer = {}
startAng = startAng or 0
endAng = endAng or 0
for i = startAng - 90, endAng - 90, step do
table.insert(inner, {
x = math.ceil(x + math.cos(math.rad... |
--[[
Scripted BY ROBLOXTUTOR - AKA DeathToTheStadium
Date: 9/16/2021,
Time: 8:30AM PST
]]
local ENV = require(game:GetService('ServerStorage').models.utilitiy.ENV)
local Profileservice = require(ENV.Modules.ProfileService)
local DataStoreClass = require(ENV.Modules.datastore)
local PlayerClass = require(ENV.Modules... |
-- Error.lua
-- @Author : DengSir (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 10/17/2018, 12:42:22 PM
--
---@type ns
local ns = select(2, ...)
local ipairs, date, time = ipairs, date, time
local debugstack = debugstack
local max = math.max
local format = string.format
local tinsert, tremove, ... |
local spawn = require("awful.spawn")
local app = {}
function app.start(cmd, is_shell, have_class, callback)
local is_shell = is_shell or nil -- bool
local have_class = have_class or nil -- string
spawn(cmd)
if callback then callback() end
end
function app.shell(cmd)
spawn.with_shell(terminal .. " -e " .. c... |
CombatChoiceState = {}
CombatChoiceState.__index = CombatChoiceState
function CombatChoiceState:Create(context, actor)
local this =
{
mStack = context.mStack,
mCombatState = context,
mActor = actor,
mCharacter = context.mActorCharMap[actor],
mUpArrow = gGame.World.mIcons:... |
#!/usr/bin/env lua
local fl = require( "fltk4lua" )
local window = fl.Window( 360, 370 )
local scroll = fl.Scroll( 10, 10, 340, 285 )
local pack = fl.Pack{ 10, 10, 340, 285, box = "FL_DOWN_FRAME" }
fl.Button( 35, 35, 25, 25, "b1" )
fl.Button( 45, 45, 25, 25, "b2" )
fl.Button( 55, 55, 25, 25, "b3" )
fl.Button( 65, 65, ... |
local vim = vim
vim.cmd([[ autocmd BufNewFile,BufRead *.thrift setlocal filetype=thrift ]])
|
--[[
File l3build-ctan.lua Copyright (C) 2018-2020 The LaTeX Project
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
license or (at your option) any later version. The latest version
of this license is in the file
http://www.latex... |
-- By:latiao QQ:3497780275 Web:latiaoawa.cf
local function tp()
local position = localplayer:get_position()
position.z = position.z - 1000
localplayer:set_position(position)
end
local function TpNpcvoid()
local position = localplayer:get_position()
position.z = position.z - 1000
for p i... |
object_mobile_som_droid_8t88 = object_mobile_som_shared_8t88:new {
}
ObjectTemplates:addTemplate(object_mobile_som_droid_8t88, "object/mobile/som/8t88.iff")
|
module(..., package.seeall)
-- Per-creature death functions.
death_fns = {}
-- Set a death function for a particular creature
function set_death_fn(creature_base_id, fn)
death_fns[creature_base_id] = fn
end
function die(creature_id, creature_base_id, attacking_creature_id, map_id)
local death_fn = dea... |
local objects =
{
createObject(2713,-2383.2002000,1547.0000000,30.9000000,0.0000000,0.0000000,0.0000000,0);
createObject(1997,-2401.6001000,1542.1000000,31.9000000,0.0000000,0.0000000,90.0000000,0);
createObject(1997,-2401.6001000,1538.6000000,31.9000000,0.0000000,0.0000000,90.0000000,0);
createObject(1997,-2401.50000... |
-- Made by St_vn#3931, 9/11/2020
-- Aka St_vnC in roblox
-- Meant to replace TweenService
local emptyTable = {}
local tasks = {}
local function LerpFunction(start, goal, alpha)
return start + (goal - start) * alpha
end
game:GetService("RunService").RenderStepped:Connect(function(step)
for index, task in pairs(tas... |
local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local cache = require "kong.tools.database_cache"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local API_URL = spec_helper.API_URL
describe("ACL Hooks", function()
setup(function()
... |
TOOL.Category = "Construction"
TOOL.Name = "#Smart Door"
TOOL.ClientConVar["title"] = ""
TOOL.ClientConVar["friends"] = "1"
TOOL.ClientConVar["material"] = "1"
TOOL.ClientConVar["sound"] = "1"
TOOL.Materials = {
[1] = "models/wireframe",
[2] = "sprites/heatwave",
[3] = "Models/effects/comball_tape",
[... |
local httpc = require "httpc"
local crypt = require "crypt"
local type = type
local pairs = pairs
local ipairs = ipairs
local assert = assert
--[[
文档地址: https://lbs.qq.com/webservice_v1/index.html
目前所有API接口仅支持SN码签名校验, 请自行在腾讯位置服务端`后台管理`->`key管理`中进行设置获取key并且生成sn码.
所有接口数据均返回原生http code与json数据, 请开发者自行进行接口判断与json de... |
id = 'V-38517'
severity = 'medium'
weight = 10.0
title = 'The Transparent Inter-Process Communication (TIPC) protocol must be disabled unless required.'
description = 'Disabling TIPC protects the system against exploitation of any flaws in its implementation.'
fixtext = [=[The Transparent Inter-Process Communication (T... |
require("config")
-- Composite Entity
local _composite_entity = table.deepcopy( data.raw["ammo-turret"]["gun-turret"] )
_composite_entity.name = "composite-entity"
local _composite_item = table.deepcopy( data.raw.item["gun-turret"] )
_composite_item.name = "composite-entity"
_composite_item.place_result = "composite-... |
object_draft_schematic_furniture_furniture_outbreak_shackled_prisoner = object_draft_schematic_furniture_shared_furniture_outbreak_shackled_prisoner:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_outbreak_shackled_prisoner, "object/draft_schematic/furniture/furniture_outbreak_shackled_... |
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Geuhbe
-- Type: Event Scene Replayer
-- !pos -74.309 -1 -114.174 245
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:st... |
function PainStealStart(keys)
local caster = keys.caster
local ability = keys.ability
local unit = keys.unit
local damage_taken = keys.DamageTaken
local ability_level = ability:GetLevel() - 1
local pain_steal_heroes = ability:GetLevelSpecialValueFor("pain_steal", ability_level)
local pain_steal_creeps = abi... |
--[[
Vultaic::Addon::Maptest
--]]
local settings = {
allow_deletes = {
race = true,
},
}
function onMapAccepted(mapName)
if getPlayerCount() < 100 then
outputChatBox("#19846dMap Testing :: #ffffffThe map #19846d"..mapName.."#ffffff has been #00ff00accepted#ffffff!", root, 255, 255, 255, true)
exports.core:ref... |
util.AddNetworkString("Minigolf.SetSwapTimeLimit")
util.AddNetworkString("Minigolf.EndSwapTimeLimit")
util.AddNetworkString("Minigolf.SetPlayerTimeLimit")
util.AddNetworkString("Minigolf.PlayerHasFinished")
util.AddNetworkString("Minigolf.PlayerShowScoreboard")
Minigolf.Holes = Minigolf.Holes or {}
Minigolf.Holes.Cach... |
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-- VEAF transport mission command and functions for DCS World
-- By zip (2018)
--
-- Features:
-- ---------
-- * Listen to marker change events and creates a tran... |
-----------------------------------
--
-- tpz.effect.MND_DOWN
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(tpz.mod.MND) - effect:getPower()) < 0) then
effect:setPower(target:getStat(... |
require("lib.lclass")
require("lib.ecs.Component")
class "OrbitComponent" ("Component")
function OrbitComponent:OrbitComponent()
self.typeName = "OrbitComponent"
self.origin = {
x = 0,
y = 0
}
self.angle = 0
self.radius = 0
self.speed = 0
end
|
---------------------- FAST BELT PICTURES
fast_belt_horizontal =
{
filename = "__base__/graphics/entity/fast-transport-belt/fast-transport-belt.png",
priority = "extra-high",
width = 40,
height = 40,
frame_count = 32
}
fast_belt_vertical =
{
filename = "__base__/graphics/entity/fast-transp... |
function onStartCountdown()
setProperty('health', 2)
end
function onUpdate(elapsed)
songPos = getSongPosition()
local currentBeat2 = (songPos/1000)*(curBpm/60)
local currentBeat = (songPos/5000)*(curBpm/60)
setCharacterX('dad',getCharacterX('dad') + (math.sin(currentBeat2) * 1.4))
setCharacterY('dad',getCharacterY('da... |
return {
id = "WorldG125",
events = {
{
alpha = 0.3,
style = {
text = "G.M系统已开启,周边区域中的各类事件将以不同标记的形式显示在系统的可视化面板上。",
mode = 2,
posY = 211.02,
char = "1",
dir = 1,
posX = 328.22,
ui = {
path = "OverlayCamera/Overlay/UIMain/top/adapt/right_stage/compass_panel"
}
}
},
{
... |
local setmetatable = setmetatable
local capture = ngx.location.capture
--- Ngx+lua (resty) template loader
--- @class aspect.loader.resty
local resty_loader = {}
local mt = {
__call = function(self, name)
local res = capture(self.url .. name, {
method = "GET"
})
if res and res.s... |
local yui_path = (...):match('(.-)[^%.]+$')
local Object = require(yui_path .. 'UI.classic.classic')
local ImageButton = Object:extend('ImageButton')
function ImageButton:new(yui, settings)
self.yui = yui
self.x, self.y = 0, 0
self.settings = settings
self.ix, self.iy = settings.ix or 0, settings.iy or... |
require("model")
require("structures")
calculation = {
interface = {},
util = {}
}
-- Updates the whole subfactory calculations from top to bottom
function calculation.update(player, subfactory, refresh)
if subfactory ~= nil and subfactory.valid then
local player_table = get_table(player)
... |
--task.New(self, function()
-- local a = 0
-- while true do
-- local Bullet = require("BHElib.units.bullet.bullet_prefab")
-- local bullet = Bullet("ball", COLOR_BLUE, GROUP_ENEMY_BULLET, 12, 1, true)
-- bullet.x = boss.x
-- bullet.y = boss.y
-- bullet.bound = true
-- loc... |
-- Pre-built inventory quickhacks for easy use.
local InventoryHack = {}
local Logger = require("utility/logger")
local Glossary = require("data/glossary")
local ItemHandler = require("handler/item")
local EquipmentHandler = require("handler/equipment")
function InventoryHack:GiveEndgameMods()
local itemspecs = {... |
return function()
local Pool = require(script.Parent.Parent.Core.Pool)
local Registry = require(script.Parent.Registry)
local Collection = require(script.Parent.Collection)
local SingleCollection = require(script.Parent.SingleCollection)
local t = require(script.Parent.Parent.t)
local function makeEntities(regis... |
red = gr.material({0.8, 0.1, 0.1}, {0.5, 0.5, 0.5}, 25)
blue = gr.material({0.0, 0.0, 1.0}, {0.5, 0.5, 0.5}, 25)
rblue = gr.smaterial({0, 0, 0}, {1, 1, 1}, 50, 1, 1.65, 0)
blue = gr.material({0.0, 0.1, 1}, {0.5, 0.5, 0.5}, 25)
green = gr.material({0.0, 1.0, 0.0}, {0.5, 0.5, 0.5}, 25)
rgreen = gr.material({0.0, 0.1, 0.0... |
local logger = require "kong.cmd.utils.log"
local pgmoon = require "pgmoon"
local arrays = require "pgmoon.arrays"
local stringx = require "pl.stringx"
local semaphore = require "ngx.semaphore"
local setmetatable = setmetatable
local encode_array = arrays.encode_array
local tonumber = to... |
_G.discordia = require("discordia")
_G.client = discordia.Client()
discordia.extensions()
_G.spawn = require("coro-spawn")
_G.split = require("coro-split")
_G.parse = require("url").parse
_G.settings = require("settings")
_G.functions = require("functions")
_G.queue = {}
client:on("ready", function()
prin... |
require("vue/__tests__/e2eUtils")
describe('e2e: grid', function()
local = setupPuppeteer()
local columns = {'name', 'power'}
function assertTable(data)
expect():toBe(#data * #columns)
local i = 0
repeat
local j = 0
repeat
-- [ts2lua]data[i+1]下标访问可能不正确
expect():toContain(... |
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
local packer = require("packer")
packer.init({
git = {
clone_timeout = 300,
subcommands = { install = "clone --depth %i --progress" }
},
profile = { enable = true }
... |
local function filter(arr, p)
local result, j = {}, 0
for i = 1, #arr do
if p(arr[i], i, arr) then
j = j + 1
result[j] = arr[i]
end
end
return result
end
return filter
|
return require "resty.session.encoders.base16" |
--
--
-- UTF-8 file
--
if GetLocale() ~= "itIT" then return end
local G = Grail.npc.name
local _, release, _, interface = GetBuildInfo()
release = tonumber(release)
interface = tonumber(interface)
if release >= 0 then
G[0]='Se stesso'
G[1]=ADVENTURE_JOURNAL
G[500022]='Secchio delle Caramelle'
G[500032]='Nozdormu'
G[5... |
-- // Variables
local FileSystem = { Name = "FileSystem" }
-- // Methods
function FileSystem:Require(Module, ...)
local Module = require(Module)
local ModuleType = type(Module)
if ModuleType == "function" then
Module(FileSystem.Infinity, ...)
end
end
function FileSystem:LoadTable(Table, ...)
... |
local Root = script:FindFirstAncestor('MazeGeneratorPlugin')
local Plugin = Root.Plugin
local Roact = require(Root:WaitForChild('Roact'))
local Config = require(Plugin.Config)
local Version = require(Plugin.Version)
local Assets = require(Plugin.Assets)
local Theme = require(Plugin.Components.Theme)
local url = 'htt... |
include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Draw()
self.Entity:DrawModel()
end
function ENT:DrawTranslucent()
self:Draw()
end
net.Receive("STALKERNPCRagdoll",function()
local TEMP_ENT = net.ReadEntity()
if(IsValid(TEMP_ENT)&&TEMP_ENT!=nil&&TEMP_ENT!=NULL) then
local Doll = TEMP_E... |
local S = {}
local function splitNice(pos,dims,sections)
local m = sections
local bins = {1,1,1}
local p = 2
while m > 1 do
for i = 1,3,1 do
while m % p == 0 and dims[i] % p == 0 do
bins[i] = p * bins[i]
m = m / p
dims[i] = dims[i] / p
end
end
p = p + 1
end
t1 = {}
for i = 1,bins[1],... |
return {
name = "user-roles-join",
description = "Gives back user group roles when they rejoin.",
run = function(self, guildSettings, member, conn)
if not guildSettings.group_channel_id then return end
if not guildSettings.give_back_roles then
conn:exec("DELETE FROM user_roles WHERE guild_id = '"..membe... |
print(vim.inspect({{_cursor_}}))
|
local Player = game:GetService("Players").LocalPlayer
local common = game:GetService("ReplicatedStorage"):WaitForChild("common")
local Packages = common:WaitForChild("Packages")
local Knit = require(Packages:WaitForChild("knit"))
Knit.OnStart():await()
local StandController = Knit.GetController("StandController")
fu... |
-- Copyright 2004-present Facebook. All Rights Reserved.
-- TemporalKmaxPooling
-- Input : (bsize x) width x height
-- Output : (bisze x) k_out x height
-- with k_out = max(k_out_prop, inputSeqLen)
-- where k_out_prop = max(k, ceil(k_dynamic*inputSeqLen))
require 'cutorch'
require 'nn'
local TemporalKMaxPooling, par... |
local skynet = require "skynet"
local cluster = require "cluster"
skynet.start(function()
local proxy = cluster.proxy "db@sdb" -- cluster.proxy("db", "@sdb")
local largekey = string.rep("X", 128*1024)
local largevalue = string.rep("R", 100 * 1024)
skynet.call(proxy, "lua", "SET", largekey, largevalue)
local v = s... |
--[[
Sample plugin file for highlight 3.45
]]
Description="Inserts a section into each LaTeX output file to concatenate the results later"
Categories = {"latex" }
function formatUpdate(desc)
function DocumentHeader(numFiles, currFile, options)
if (HL_OUTPUT == HL_FORMAT_LATEX and numFiles > 1) then
... |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id login.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/08/31 19:49
- @uses The... |
local world = require "src.world"
local lume = require "lib.lume"
local lang = require "lan"
return {
init = function (self)
world.currentLevel = world:addLevel()
world:square(-40, -20, 44, 54)
world:square(5, 10, 15, 14)
world:square(21, 0, 30, 24)
world:square(52, 6, 5... |
workspace "Havtorn"
architecture "x86_64"
location "Source"
configurations
{ "Debug", "Release" }
startproject "Launcher"
outputdir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}"
engineProj = "Engine"
engineSource = "Source/" .. engineProj .. "/"
editorProj = "Editor"
editorSource = "Source/" .. editorPro... |
//________________________________
//
// NS2 CustomEntitesMod
// Made by JimWest 2012
//
//________________________________
// at this point, all entities are loaded, so best way to search others (for train)
// only for server
if Server then
local overrideInitializePathing = InitializePathing
function ... |
--[[panelData = {
type = "panel",
name = "Window Title", -- or string id or function returning a string
displayName = "My Longer Window Title", -- or string id or function returning a string (optional) (can be useful for long addon names or if you want to colorize it)
author = "Seerah", -- or string i... |
return {'mep','meppen','mepper','meppel','meppelaar','meppelder','meppeler','meppels','meppelink','mepschen','meppers','mept','mepte','mepten','meppende','meppelse'} |
local _widget = require( "widget" )
local M =
{
_options = {},
_widgetName = "widget.newPickerList",
}
local function initPickerList( pickerList, options )
local opt = options
local function onCancel(event)
pickerList:cancel()
return true;
end
local functi... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("sm","BasicCommands","Creates a message visible to everyone. The... |
local rich_autoplace = data.raw["map-gen-presets"]["default"]["rich-resources"]["basic_settings"]["autoplace_controls"]
local rail_autoplace = data.raw["map-gen-presets"]["default"]["rail-world"]["basic_settings"]["autoplace_controls"]
local ribb_autoplace = data.raw["map-gen-presets"]["default"]["ribbon-world"]["basic... |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "Remington 870 AE"
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelMovementScale = 1
SWEP.IconLetter = "k"
killicon.AddFont("cw_ump45", "CW_KillIcons", SWEP.IconLetter, Color(255, 80, 0, 1... |
debug_mode = true
output_scheme = "myauth2"
dont_apply_for = {
"/free_for_access"
}
only_apply_for = {
"/"
}
black_list = {
"/blocked"
}
anon = {
"/pub"
}
basic = {
{
id = "user-1",
pass = "user-1-pass",
urls = {
"/basic-access-[%d]+",
"/basic-access-a"
}
},
{
id = "user-2",
pass = "user-... |
--------------------------------
-- @module SqliteWrapQuery
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#SqliteWrapQuery] fetchError
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function ... |
local M = {}
local fn = vim.fn
local function node_info(winlayout, winid, p_indicator, level, index)
level = level or 0
index = index or 1
local indicator = winlayout[1]
if indicator == 'leaf' then
if winlayout[2] == winid then
return p_indicator, level, index
end
else
... |
local playsession = {
{"cogito123", {360066}},
{"TiTaN", {501495}},
{"Menander", {104637}},
{"Lulaidon", {480370}},
{"Leverage", {260168}},
{"Elements", {16522}},
{"MuddledBox", {292322}},
{"raskl", {154969}},
{"MFH", {339492}},
{"Loriangrei", {3108}},
{"vad7ik", {183871}},
{"realDonaldTrump", {1086}},
{"k... |
-- This is a state module, not a class
-- Mouse/touch down -> slide
local IdleState = {}
local FSM, Renderer;
function IdleState.init(fsm, game, renderer)
FSM = fsm
Renderer = renderer
end
local function draw_status_text()
Renderer.draw_text("Slide")
end
IdleState.draw = {[3] = draw_status_text}
function Idl... |
local summitBackgroundManager = {}
summitBackgroundManager.name = "SummitBackgroundManager"
summitBackgroundManager.depth = 0
summitBackgroundManager.texture = "@Internal@/summit_background_manager"
summitBackgroundManager.placements = {
name = "manager",
data = {
index = 0,
cutscene = "",
... |
-- Turn on coverage analysis if available
pcall(require, 'luacov')
ok, msg = xpcall(function()
-- Make textadept-vi available
package.path = _USERHOME .. "/../../?.lua;".._USERHOME .. "/../scripts/?.lua;" .. package.path
package.cpath = _USERHOME .. "/../../extension/?.so;"..package.cpath
local lfs = require'lfs'
func... |
-----------------------------------
-- Area: East Sarutabaruta
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- !pos 448.045 -7.808 319.980 116
-----------------------------------
local ID = require("scripts/zones/East_Sarutabaruta/IDs")
-----------------------------------
function onTrigger(... |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
function IsAbleToSteal(targetSID, err)
ESX.TriggerServerCallback('esx_thief:getValue', function(result)
local result = result
if result.value then
err(f... |
OpenStorage = function(storageName, storageUUID)
if Default.DiscInventory.Enabled then
TriggerEvent("disc-inventoryhud:openInventory", {
type = "RENZ_MOTEL_STORAGE",
owner = storageUUID .. "-" .. storageName
})
return
end
local storageId = storageU... |
local fmt = string.format
local permission = {}
-- 用户是否有此菜单的权限
function permission.user_have_menu_permission (db, uid, url)
-- 查询用户Role ID
local uinfo = db:query(fmt([[SELECT id, role AS role_id FROM cfadmin_users WHERE `cfadmin_users`.id = %u AND `cfadmin_users`.active = 1 LIMIT 1]], uid))[1]
if type(uinfo) ~=... |
jester.help_map.dialplan_tools = {}
jester.help_map.dialplan_tools.description_short = [[Provides access to dialplan applications.]]
jester.help_map.dialplan_tools.description_long = [[This module provides access to various dialplan applications. An understand of how these applications are used in FreeSWITCH dialplans... |
local onenord = {
fg = "#C8D0E0",
fg_light = "#E5E9F0",
bg = "#2E3440",
gray = "#646A76",
light_gray = "#6C7A96",
cyan = "#88C0D0",
blue = "#81A1C1",
dark_blue = "#5E81AC",
green = "#A3BE8C",
light_green = "#8FBCBB",
dark_red = "#BF616A",
red = "#D57780",
light_red = "#DE878F",
pink = "#E85B... |
--[[
Desc: Skill Component, manage skills of entity.
Author: SerDing
Since: 2018-08-20
Alter: 2021-04-20
]]
local _RESMGR = require("system.resource.resmgr")
local _Skill = require("entity.skill")
local _SETTING = require("setting")
local _Base = require("entity.component.base")
---@class Entity.Component.Skills ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.