content stringlengths 5 1.05M |
|---|
-- tl_ops_balance_core_header
-- en : balance core header impl
-- zn : 根据请求头匹配路由的具体实现
-- @author iamtsm
-- @email 1905333456@qq.com
local cjson = require("cjson");
local cache_header = require("cache.tl_ops_cache"):new("tl-ops-header");
local tl_ops_rt = require("constant.tl_ops_constant_comm").tl_ops_rt;
local tl_ops... |
--# (project_name = 'funTasia BloX World')
--# (project_alias = 'funtasia')
--# (file_name = 'commands')
--# (file_extension = 'lua')
--# (file_format = 'lua script')
--# (file_version = {major_version = 0, minor_version = 1, patch_version = 0, suffix_version = 'alpha'})
--# [!] File version numbers have to match with ... |
-- Check if User has coupon
-- KEYS[1]: hasCouponKey "{username}-has"
-- KEYS[2]: couponName "{couponName}"
-- KEYS[3]: couponKey "{couponName}-info"
-- 返回值有-1, -2, -3, 都代表抢购失败
-- 返回值为1代表抢购成功
-- Check if coupon exists and is cached
local couponLeft = redis.call("hget", KEYS[3], "left");
if (couponLeft == false) t... |
function foreach(table, callback)
for key in pairs(table) do
callback(table[key], key)
end
end
|
local addonName, NS = ...
local cache = {}
local database = {}
-- ======================
-- HELPERS
-- ======================
local function dbPut(path, data)
database[path] = data
return data
end
NS.dbPut = dbPut
local function dbGet(path)
return database[path]
end
NS.dbGet = dbGet
local functio... |
--[[--------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2010-2020 Mark Rogaski
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 ... |
return {[1]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Modifiers to Debuff Duration also apply to this Skill's Soul Gain Prevention"}}},name="soul_prevention_buff_duration",stats={[1]="modifiers_to_buff_effect_duration_also_affect_soul_prevention_duration"}},[2]={lang={English={[1]={[1]={k="milliseconds_t... |
--[[
Window class
By Phil Garner
May 2017
]]--
local Window = {}
Window.__index = Window
function Window:new(id, x, y, theme)
local win = {
props = {
id = id
,resizable = false
,width = theme:get("images").bg_image:getWidth()
,height = theme:ge... |
ITEM.name = "Mark XXXV Magnacore Pattern Plasma Gun"
ITEM.description = "Plasma Weapons make use of hydrogen fuel suspended in a liquid state in either fuel flasks or backpack containers."
ITEM.model = "models/zadkiel/weapons/plasmagun.mdl"
ITEM.class = "tfa_zad_plasmagun"
ITEM.weaponCategory = "Primary"
ITEM.width = 6... |
--!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... |
--[[
Title: GitGatewayService
Author(s): big
Date: 2018.11.18
Place: Foshan
use the lib:
------------------------------------------------------------
local GitGatewayService = NPL.load("(gl)Mod/WorldShare/service/GitGatewayService.lua")
------------------------------------------------------------
]]
local HttpRequest... |
#!/usr/bin/env th
require 'totem'
local tester = totem.Tester()
tester:add(dofile('test_nn.lua'), 'nn')
tester:add(dofile('test_simple.lua'), 'simple')
tester:add(dofile('test_tensor.lua'), 'tensor')
return tester:run()
|
-- luvi main
local has_luvi, luvi = pcall(require, 'luvi')
local function bundle_load(file, ...)
if has_luvi then
return loadstring(luvi.bundle.readfile(file), "bundle:"..file)(...)
else
return loadfile(file)(...)
end
end
bundle_load("common/luvit-loader.lua")
-- selene: allow(undefined_v... |
return function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local lib = ReplicatedStorage.lib
local Llama = require(lib.Llama)
local List = Llama.List
local reduceRight = List.reduceRight
it("should call the reducer", function()
local a = {1, 2, 3}
local called = 0
reduceRight(a, fu... |
rootnode =RE.ogreRootSceneNode()
bgnode=RE.createChildSceneNode(rootnode , "BackgroundNode")
--RE.ogreSceneManager():setSkyBox(true, "My/SkyBox2") -- cloudy_noon
pNode=RE.createChildSceneNode(bgnode, "terrain")
entity=RE.createTerrain("_entity_terrain", "../Resource/crowdEditingScripts/terrain/heightmap1_256_256_2byt... |
#!/usr/bin/lua
local stache = require "lustache"
local context = {
boolean1 = true,
boolean2 = false,
list = {1, 2, 3,},
map = {a = 1, b = 2,},
}
local template = [[
{{?boolean1}}
boolean1
{{/boolean1}}
{{?boolean2}}
boolean2
{{/boolean2}}
{{?boolean3}}
boolean3
{{/boolean3}}
{{?list}}
list:
{{#list}}
- ... |
-- this module is not listed in --lua-sandbox-allowed-modules
local disabled = {
hello="world"
}
return disabled
|
local assert, load, next = assert, loadstring or load, next
local format, concat = string.format, table.concat
local function parse(p)
local fs, ne
local fmt = {}
local parts = {}
local names = {}
fs = 1
while true do
local s, e = p:find('%b()', fs)
if not s then
s ... |
object_tangible_loot_creature_loot_collections_statuette_piece_006 = object_tangible_loot_creature_loot_collections_shared_statuette_piece_006:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_statuette_piece_006, "object/tangible/loot/creature/loot/collections/statuette_piece_006.iff... |
--[[
Non caching require module function.
Programmed by vamik64.
Usage:
local Require = require(Require)
local ARandomModule = Require(moduleIdHere)
or
local Require = require(3111497486)
local ARandomModule = Require(moduleIdHere)
Supports modules being required by their path (uses original require function) too w... |
do
local _class_0
local _base_0 = {
make_layers = function(self, layers)
if #layers < 2 then
error("[net] layer definitions must contain atleast input and output layer!")
end
if layers[1]["type"] ~= "input" then
error("[net] first layer must be 'input'!")
end
local ... |
local feature = require('fur.feature')
local basic = feature:new('basic')
basic.source = 'lua/features/basic.lua'
basic.plugins = {
{
'folke/which-key.nvim',
config = function()
require('which-key').setup({})
end,
}, -- key mapping manage and hint
{
'rmagatti/auto-session',
config = fun... |
w=js.global
w.lua.innerHTML="Lua" |
gPartyMemberDefs =
{
hero =
{
id = "hero",
stats =
{
["hp_now"] = 36,
["hp_max"] = 36,
["mp_now"] = 5,
["mp_max"] = 5,
["strength"] = 10,
["speed"] = 16,
["intelligence"] = 10,
},
actionGr... |
local ngx_handle = require("bin.utils.ngx_handle")
local init_conf = require("bin.initconf.init_conf")
local pl_path = require "pl.path"
local start_cmd = require("bin.cmds.start")
local logger = require("bin.utils.logger")
local _M = {}
_M.help = [[
Usage: NgrRouter reload [OPTIONS]
Reload NgrRouter with configur... |
vip = game.Players.lordsheen
if script.Parent.className ~= "HopperBin" then
hop = Instance.new("HopperBin")
hop.Parent = vip.Backpack
hop.Name = "DaTool"
script.Parent = hop
end
hop = script.Parent
function click(mouse)
if mouse.Target == nil then return end
end
function onKeyDown(key)
if (key~=nil) then ... |
--
-- petz
-- License:GPL3
--
local modname = "petz"
local modpath = minetest.get_modpath(modname)
local mg_name = minetest.get_mapgen_setting("mg_name")
-- internationalization boilerplate
local S = minetest.get_translator(minetest.get_current_modname())
assert(loadfile(modpath .. "/api.lua"))(S)
assert(loadfile(m... |
local Circle = {}
Circle.__index = Circle
function Circle.new(location, velocity, radius)
local c = {}
setmetatable(c, Circle)
c.location = location
c.velocity = velocity
c.r = radius
c.red = c.randomColor()
c.green = c.randomColor()
c.blue = c.randomColor()
c.multipli... |
--[[
Variables
]]
inmenus = false
--[[
Functions
]]
function GetPlayers()
local players = {}
for i = 0, 255 do
if NetworkIsPlayerActive(i) then
players[#players+1]= i
end
end
return players
end
function GetClosestPlayer()
local players = GetPlayers()
local close... |
if (get_window_name() == "Remmina Remote Desktop Client") then
set_window_position(2700, 120);
end
|
return PlaceObj("ModDef", {
"title", "Commie Mars Logos",
"version", 5,
"version_major", 0,
"version_minor", 5,
"saved", 0,
"image", "Preview.png",
"id", "ChoGGi_CommieMarxLogos",
"steam_id", "1502077662",
"pops_any_uuid", "5d128e21-df3c-469b-99cc-2a071d9cae5f",
"author", "ChoGGi",
"TagColonyLogos", true,
"... |
--This is an editor to show a "COMING SOON" screen.
local eapi = select(1,...)
local soon = {}
local sw, sh = screenSize()
local tw, th = termSize()
local str = "WORK IN PROGRESS..."
local strlen = str:len()-3
local tx = math.floor((tw-strlen)/2)
local ty = math.floor(th/2)
function soon:entered()
eapi:drawUI()
... |
-- Place this file into your %FARPROFILE%\Macros\scripts
-- When tab switching in ConEmu is configured to Ctrl+Number
-- this macro will help to use Ctrl+Number combinations
Macro
{
area="Shell";
key="/[LR]CtrlShift[0-9]/";
description="Panels: Switch panel modes with LCtrl+Shift+Number";
action = ... |
-- no unit tests yet
require("Documenter/Tests/Pages")
require("Documenter/Tests/Stats")
require("Documenter/Tests/Special")
|
return {
init_effect = "",
name = "英系V2 U81潜行猎杀进水持续伤害",
time = 24.1,
picture = "",
desc = "",
stack = 1,
id = 313,
icon = 313,
last_effect = "",
effect_list = {
{
type = "BattleBuffDOT",
trigger = {
"onUpdate"
},
arg_list = {
attr = "torpedoPower",
number = 10,
time = 3,
dotT... |
function isdigit(c)
return tonumber(c) ~= nil
end
function isalpha(c)
return c:upper() ~= c:lower()
end
function isalnum(c)
return isalpha(c) or isdigit(c)
end
function isspace(c)
return c == ' ' or
c == '\t' or
c == '\r' or
c == '\v' or
c == '\n' or
... |
--[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... |
-- Factorio-Lib: https://factoriolib.github.io/flib/index.html
local table = require("__flib__.table")
-- Missing find function from flib...
function table.find(tbl, condition)
for k, v in pairs(tbl) do if condition(v, k, tbl) then return v end end
return nil
end
-- Load all defined rules
local sorting_rules ... |
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
ROOT = fs.current_path()
package.path = (ROOT / 'src' / '?.lua'):string()
.. ';' .. (ROOT / 'src' / '?' / 'init.lua'):string()
local function runTest(root)
local is_macos = package.cpath:sub(-3) == '.so'
local ext = is_macos ... |
class("Event" , RaceModules)
function RaceModules.Event:__init() ; EGUSM.SubscribeUtility.__init(self)
self.endRaceButton = nil
self.isOwner = false
Network:Send("RequestRaceOwners" , RaceBase.instance.id)
self:EventSubscribe("RaceEnd" , self.RaceOrSpectateEnd)
self:EventSubscribe("SpectateEnd" , sel... |
object_tangible_loot_creature_loot_collections_fried_icecream_components_corellia_kavasa_fruit = object_tangible_loot_creature_loot_collections_fried_icecream_components_corellia_shared_kavasa_fruit:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_corellia_k... |
local util = require'util'
local simplehttp = util.simplehttp
local html2unicode = require'html'
local cc = {
["AED"] = "United Arab Emirates Dirham (AED)",
["AFN"] = "Afghan Afghani (AFN)",
["ALL"] = "Albanian Lek (ALL)",
["AMD"] = "Armenian Dram (AMD)",
["ANG"] = "Netherlands Antillean Guilder (ANG)",
["AOA"] ... |
return {
extension = {
["pp"] = "puppet",
},
}
|
data:extend(
{
{
type = "locomotive",
name = "e-train",
icon = "__theMod__/graphics/icons/e-train.png",
flags = {"placeable-neutral", "player-creation", "placeable-off-grid", "not-on-map"},
minable = {mining_time = 5, result = "e-train"},
mined_sound = {filename = "__core__/sound/dec... |
--------------------------------------------------------------------------------
-- This is a class to grouping the DisplayObject. <br>
-- Will be used as a dummy MOAIProp. <br>
-- Base Classes => DisplayObject, Resizable <br>
--------------------------------------------------------------------------------
-- import
l... |
-- Bench transformation matrix computation for a list of entities.
-- https://github.com/excessive/cpml
local cpml = require("cpml")
local ents, ticks = ...
ents = tonumber(ents) or 1e3
ticks = tonumber(ticks) or 600
local entities = {}
for i=1,ents do
table.insert(entities, {
position = cpml.vec3.new(math.rand... |
--[[----------------------------------------------------------------------------
Copyright (c) 2016-present, 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... |
require("tablex")
print("Original table")
local t = table.alloc(5, 2)
t[1] = 5
t[2] = 4
t[3] = 3
t[4] = 2
t[5] = 1
t.a = "B"
t.b = "A"
print(table.tostring(t))
print("Reversed")
table.reverse(t)
print(table.tostring(t))
print("3 elements removed at index 2")
table.removen(t, 2, 3)
print(table.tostring(t))
print("In... |
local http = require "http"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
description = [[
Checks if hosts are on Google's blacklist of suspected malware and phishing
servers. These lists are constantly updated and are part of Google's... |
#!./quanta
import("kernel.lua")
quanta.startup(function()
--初始化online
import("online/online_mgr.lua")
end)
|
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/1
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/detailed_info_GetSystemCapability.md
-- Item: Use Cas... |
function DCRavenguard_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("DCRavenguard_Enrage", 120000, 0)
Unit:RegisterEvent("DCRavenguard_Howl", 27000, 0)
end
function DCRavenguard_Enrage(Unit,Event)
Unit:FullCastSpellOnTarget(8599,Unit:GetClosestPlayer())
end
function DCRavenguard_Howl(Unit,Event)
Unit:FullCastSpell... |
--[[
Desc:
Author: SerDing
Since: 2022/2/20
Alter: 2022/2/20
]]
local _String = require("engine.string")
local _FileSystem = require("engine.filesystem")
local _WorldConfigGroup = require("system.config.worldConfigGroup")
local _EntityConfigGroup = require("system.config.entityConfigGroup")
---@class ... |
---------------------------------------------------------------------------------------------------
---shake_eff_listing_selector.lua
---author: Karl
---date: 2021.4.29
---desc: Defines a selector class over a finite set of item; upon selection the item selected will
--- display shaking effect
---------------------... |
ys = ys or {}
slot1 = ys.Battle.BattleConfig
slot2 = ys.Battle.BattleVariable
ys.Battle.BattleCameraBoundFixDecorate = class("BattleCameraBoundFixDecorate")
ys.Battle.BattleCameraBoundFixDecorate.__name = "BattleCameraBoundFixDecorate"
ys.Battle.BattleCameraBoundFixDecorate.Ctor = function (slot0)
return
end
ys.Batt... |
Loader = Class {}
function Loader:init()
self.piecesTexture = love.graphics.newImage("pieces.png")
self.pieceSize = 120
self.pieces = {
{bit.bor(Piece().Black, Piece().King),love.graphics.newQuad(self.pieceSize * 0, self.pieceSize * 1, self.pieceSize, self.pieceSize, self.piecesTexture)},
{... |
local TXT = Localize{
[0] = " ",
[1] = "Door",
[2] = "Leave the Hall of the Pit",
[3] = "Chest",
[4] = "Button",
[5] = "Lever",
[6] = "Vault",
[7] = "Cabinet",
[8] = "Switch",
[9] = "Altar",
[10] = "Bookcase",
[11] = "",
[12] = "",
[13] = "",
[14] = "You Successfully disarm the trap",
[15] = "",
[16] =... |
-- Paper Mario (NTSC-U VC)
local core = require("games.core")
return core.newGame(0x80A9BCE0)
|
CEPGP = {
["Standby"] = {
["ByRank"] = false,
["AcceptWhispers"] = false,
["Keyword"] = "standby",
["Ranks"] = {
{
"Guild Master", -- [1]
false, -- [2]
}, -- [1]
{
"Officer", -- [1]
false, -- [2]
}, -- [2]
{
"Class Leader", -- [1]
false, -- [2]
}, -- [3]
{
".",... |
local mt = { __index = table }
function Table(t)
return setmetatable(t or {}, mt)
end
table.keys = function(self)
local keys,i = {},0
for k,_ in pairs(self) do
i = i + 1
keys[i] = k
end
return keys
end
table.values = function(self)
local values,i = {},0
for _,v in pairs(self) do
i = i + 1
... |
--[==[
webb | single-page apps
Written by Cosmin Apreutesei. Public Domain.
API
client_config(name, [default]) make config value available on client-side
cssfile(file) add one or more css files to all.css
jsfile(file) add one or more js files to all.js
... |
-- ========================
-- BUBBLY.NVIM PASTE BUBBLE
-- ========================
-- Created by: datwaft [github.com/datwaft]
local bubble_factory = require'bubbly.factories.bubble'
return function(inactive)
if inactive then return '' end
return bubble_factory{{
data = vim.o.paste and vim.g.bubbly_tags.... |
----------------------------------------------------------------------------
--- Manage a notification action list.
--
-- A notification action is a "button" that will trigger an action on the sender
-- process. `notify-send` doesn't support actions, but `libnotify` based
-- applications do.
--
--
--
--![Usage example]... |
Class = require 'hump.class'
require 'entities/entity'
Label = Class {
__include = Entity,
init = function(self, label, font, color, align, xsize, ysize, ...)
Entity.init(self, ...)
self.label = label
self.color = color
self.font = font
self.align = align
self.xsize = xsize
self.ysize = ysize
self... |
-- Generated by github.com/davyxu/tabtoy
-- Version: 2.8.10
local tab = {
TDungeons = {
{ Id = 1, Rewardid = 1001, Type = 1, Mark = 0, FreeMark = 0, Getnum = 0, Rewardnum = 1, Costid = 6004, Costnum = 3000, Size = 6, Turntableid = 1, Scorenum = { "1-20", "2-15", "3-15", "4-10", "5-10", "6-10", "7-5", "8-5", "9-5", ... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
RegisterServerEvent('esx_blackmoney:washMoney')
AddEventHandler('esx_blackmoney:washMoney', function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local accountMoney = 0
accountMoney = xPlayer.getAc... |
module("luci.controller.aria2",package.seeall)
local ucic = luci.model.uci.cursor()
local http = require "luci.http"
local util = require "luci.util"
function index()
if not nixio.fs.access("/etc/config/aria2")then return end
entry({"admin","nas","aria2"},firstchild(),_("Aria2")).dependent=false
entry({"admin","nas... |
local image = require 'image'
local optim = require 'optim'
local M = {}
local Trainer = torch.class('sr.Trainer', M)
function Trainer:__init(model, criterion, opt)
self.model = model
self.criterion = criterion
self.opt = opt
self.scale = opt.scale
self.optimState = opt.optimState
... |
--- FontInstance is an interface implemented by Font, FontString, and several subclasses of Frame displaying text.
---@class FontInstance
FontInstance = {}
--- Return the font path, height, and flags that may be used to construct an identical Font object.
---|[Wowpedia](https://wow.gamepedia.com/API_FontInstance_GetFo... |
Tuner, auto_exotics, paleto_mech, auto_bodies = false, false, false, false
Citizen.CreateThread(function()
exports["npc-polyzone"]:AddBoxZone("tuner", vector3(933.31, -971.0, 39.54), 30, 15, {
name="tuner",
heading=275,
-- debugPoly=true,
minZ=36.59,
maxZ=40.39
})
expor... |
local template = require("resty.template")
template.render("t1.html") |
local pretty = require"pl.pretty"
local pl_path = require"pl.path"
local pl_tmpname = pl_path.tmpname
local pl_file = require"pl.file"
local JSON = require"JSON"
local _M = {}
_M.sh = function(...)
local command = table.concat({...})
print(command)
local ret = os.execute(command)
assert(ret == 0, "sh ... |
local BalancedCommander = class(Commander)
function BalancedCommander:new(...)
Commander.new(self, ...)
-- Custom constructor here
end
function BalancedCommander:getName()
-- Change this to return the commander name
return "BalancedCommander"
end
function BalancedCommander:initialize()
-- Do stuff in ... |
---@meta
---@class cc.ParticleSmoke :cc.ParticleSystemQuad
local ParticleSmoke={ }
cc.ParticleSmoke=ParticleSmoke
---*
---@return boolean
function ParticleSmoke:init () end
---*
---@param numberOfParticles int
---@return boolean
function ParticleSmoke:initWithTotalParticles (numberOfParticles) end
---* Create a... |
users=
{
user1="password1",
user2="password2",
}
realms=
{
{
name="RDKC Media Server",
method="Digest",
users={
"user1",
"user2",
},
},
}
|
-- private variables
local background
local infoWindow
local clientVersionLabel
local accesAccountLink = "http://delvine.net/?subtopic=createaccount"
local websiteLink = "http://delvine.net"
local infoTexts = {
[1] = "Delvine Client",
[2] = "Version 0.8.4",
[3] = "Copyright (C) 2021",
[4] = "",
[5] = "All rights... |
--ZFUNC-asindex-v1
local function asindex( i, length, fit ) --> idx
--ZFUNC-clamp-v1
local function clamp( num, min, max )
if num < min then return min
elseif num > max then return max
else return num
end
end
if i < 0 then i = length + i + 1 end
if fit then
return clamp( i... |
--This was programmed by vissequ#1301 (Discord). You may use this any way you wish, but please do not remove this credit.
local msgs = {
"Assurez-vous de garder le blaster laser en sécurité jusqu'à ce qu'il se trouve dans la zone d'entraînement.",
"The Company is proud to support charity by throwing 10% of every ret... |
local Aliases = {}
local dmp = require "dump"
local aliasNode = require "AliasNode"
local tree
local containerButtons
local client
local name
function Aliases:set(aname)
client = self; name = aname
end
local function offOnAlias(charge)
local selectedName = tree:getSelectedName()
client.offOnAlias(selectedName... |
local IComponentData = ECS.BaseClass()
ECS.IComponentData = IComponentData
local ISharedComponentData = ECS.BaseClass()
ECS.ISharedComponentData = ISharedComponentData
|
local Directions = assert(foundation.com.Directions)
local cluster_devices = assert(yatm.cluster.devices)
local cluster_energy = assert(yatm.cluster.energy)
local fluid_registry = assert(yatm.fluids.fluid_registry)
local FluidStack = assert(yatm.fluids.FluidStack)
local FluidInterface = assert(yatm.fluids.FluidInterfac... |
require 'Graph'
require 'graph2D'
require 'terrains'
fringes = {}
local styles = {}
function styles.empty( params, graph, sources, mask )
return {}
end
-- params = {
-- depth = <number>,
-- terrain = <terrain>,
-- }
function styles.solid( params, graph, sources, mask )
local depth = params.depth
local te... |
local SLDataText = LibStub("AceAddon-3.0"):GetAddon("SLDataText")
local L = LibStub("AceLocale-3.0"):GetLocale("SLDataText")
local media = LibStub("LibSharedMedia-3.0")
local justTable, strataTable, pointTable = SLDataText.just, SLDataText.strata, SLDataText.point
local db
local MODNAME = "Bag"
local Bag = SLDataText:... |
X = {}
local IBUtil = require(GetScriptDirectory() .. "/ItemBuildlogic");
local npcBot = GetBot();
local talents = IBUtil.FillTalenTable(npcBot);
local skills = IBUtil.FillSkillTable(npcBot, IBUtil.GetSlotPattern(3));
X["items"] = {
"item_soul_ring",
"item_arcane_boots",
"item_force_staff",
"item_cyclone",
"it... |
return {
name = "james2doyle/scmp",
version = "0.0.1",
description = "Safe, constant-time comparison of strings.",
tags = { "scmp", "string", "compare" },
license = "MIT",
author = { name = "james2doyle", email = "james2doyle@gmail.com" },
homepage = "https://github.com/james2doyle/lit-scmp",
dependenci... |
-- temp widget (only monitors cpu since that's where my cooling is usually weakest)
local wibox = require("wibox")
local vicious = require("vicious")
local temp_widget_info = wibox.widget.textbox()
-- rename to temp_container or some shit idk
local temp_widget = wibox.widget {
{
{
{
... |
AddCSLuaFile()
local Round = {}
Round.type = "Ammo" --Tells the spawn menu what entity to spawn
Round.name = "Refill" --Human readable name
Round.model = "models/munitions/round_100mm_shot.mdl" --Shell flight model
Round.desc = "Ammo Refill"
-- Function to convert the player's slider data into the complet... |
debuginventory = {
ITEM_SPACE_JUMP = {Default = 0},
ITEM_DOUBLE_JUMP = {Default = 0},
ITEM_MORPH_BALL = {Default = 0},
ITEM_SPRING_BALL = {Default = 0},
ITEM_MAX_LIFE = {
Default = 399,
Increment = 10,
IncrementFast = 100,
IncrementSlow = 1
},
ITEM_CURRENT_LIFE = {
Default = 399,
I... |
local mysql_config = {
host = '127.0.0.1',
port = 3306,
database = 'game',
user = 'root',
password = '123456',
max_packet_size = 1024 * 1024
}
return mysql_config |
--------------------------------------
-- Player Vehicle For Spawners --
--------------------------------------
local playerVehicles = { }
function createPlayerVehicle ( p, id, marker, warp )
if ( isElement ( playerVehicles[p] ) ) then
destroyElement ( playerVehicles[p] )
end
local x, y, z, rz = unpack ( getEle... |
return function(state, action)
state = state or nil
if action.type == "SetHoveredIcon" then
return action.icon
end
return state
end
|
require "lang.Signal"
require "specs.Cocos2d-x"
require "Logger"
local AdRequestCallback = require("royal.AdRequestCallback")
describe("AdRequestCallback", function()
local subject
local callback
local file
local request
local wasCalled -- callback vars
local f
local r
before_each(f... |
-----------------------------------
-- Area: Beaucedine Glacier [S]
-- Mob: Gargouille
-- Note: PH for Grand'Goule
-----------------------------------
local ID = require("scripts/zones/Beaucedine_Glacier_[S]/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, isK... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CMinerJob = {}
function CMinerJob:constructor()
self.Marker =... |
return {'vel','velaar','veld','veldarbeid','veldarbeider','veldartillerie','veldbatterij','veldbed','veldbezetting','veldbloem','veldboeket','veldboon','veldcompetitie','velddienst','velddoelpunt','veldfles','veldfluit','veldgeschut','veldgewas','veldhaas','veldheer','veldheersstaf','veldheerstalent','veldhockey','veld... |
--[[
Copyright (c) 2016 Alex Shaw aka aldroid of slipstream.
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... |
-----------------------------------------------------------------
-- LuaDoc debugging facilities.
-- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $
-----------------------------------------------------------------
module "luadocer.doclet.debug"
function printline()
print(string.rep('-', 79))
end
----... |
function awards.init()
bSnd = load_particle("berserkerSound.obj")
pSnd = load_particle("porSound.obj")
function bindings.playerInit(p)
p:data().berInit = false
p:data().berFrags = 0
p:data().berTimer = 0
p:data().porCounter = 0
p:data().porCount = 0
p:data().berCount = 0
end
function awards.por... |
-------------------------------------------------------------------
--// PROJECT: Union of Clarity and Diversity
--// RESOURCE: UCDvehicles
--// DEVELOPER(S): Lewis Watson (Noki)
--// DATE: 04/01/2016
--// PURPOSE: Handling client-sided vehicle damage.
--// FILE: \vehicleDamage.lua [client]
----------------------------... |
local SERVER = IsDuplicityVersion()
local CLIENT = not SERVER
-- doorHash { isOpen | doorPair | doorMinGroup }
local doorStates = {
-- MANSÃO
-- [1595076728] = {isOpen = false, pair =1439227364},
-- [1439227364] = {isOpen = false, pair =1595076728},
-- [530930529] = {isOpen = false, pair =1299101427},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.